nim-lang / csources_v1

CSources compiled from Nim version 1. Supports more CPU/OS combinations than the older csources repository.
MIT License
15 stars 9 forks source link

sh build.sh --cpu arm64 results in linker command failure. #1

Closed ghost closed 3 years ago

ghost commented 3 years ago

With the resulting error code

OS: macosx CPU: arm clang -o ../bin/nim -ldl -lm Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Araq commented 3 years ago

What does sh build.sh produce? It should detect the CPU now automatically.

ghost commented 3 years ago

What does sh build.sh produce? It should detect the CPU now automatically.

It still produces the same error.

Araq commented 3 years ago

Ok, thanks. Bummer.

Araq commented 3 years ago

It works on my M1, closing. Please reopen if still a problem for you.