Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building on macosx-arm64 #16

Closed
wants to merge 0 commits into from
Closed

Conversation

brendo-m
Copy link
Contributor

Supporting cross compiling from an M1 mac.

I had to disable the sqlite_from_macosx-arm64_to_linux-amd64-gnu.2.27 test, it fails with error

ld.lld: error: undefined symbol: fcntl64
>>> referenced by sqlite3.c
>>>               /Users/brendan/.cache/nim/main_d/sqlite3.c.o:(aSyscall)
Error: execution of an external program failed: '/Users/brendan/workspace/nim/brendo-m/nimxc/_tests/toolchains/zig-macos-aarch64-0.9.0/zigcc   -o /Users/brendan/workspace/nim/brendo-m/nimxc/_tests/tests/sqlite_from_macosx-arm64_to_linux-amd64-gnu.2.27/main  /Users/brendan/.cache/nim/main_d/sqlite3.c.o /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@sstd@[email protected] /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@[email protected] /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@[email protected] /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@spure@[email protected] /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@[email protected] /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@[email protected] /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@spure@sdb_common.nim.c.o /Users/brendan/.cache/nim/main_d/@m..@s..@s..@s..@s..@s..@s..@s..@s..@sopt@shomebrew@sCellar@[email protected]@snim@slib@simpure@sdb_sqlite.nim.c.o /Users/brendan/.cache/nim/main_d/@mmain.nim.c.o  -pthread -lpthread  -target x86_64-linux-gnu.2.27 -fno-sanitize=undefined  -ldl'
# rc = 1
/Users/brendan/workspace/nim/brendo-m/nimxc/tests/test_everything.nim(69, 17): Check failed: rc == 0
rc was 1
[FAILED] sqlite_from_macosx-arm64_to_linux-amd64-gnu.2.27

This is an issue in ziglang itself and might be fixed in the next few releases. ziglang/zig#9485

@brendo-m
Copy link
Contributor Author

closed in favor of #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant