Closed armwdev closed 2 years ago
Can you check that the dev tools being used are all from xcode? I wonder if it's using ranlib/ar/gcc/clang from homebrew or similar which doesn't have the right support. If you can upload config.log that might have some details.
Thanks, I appreciate the quick reply. Not sure but I think it uses the default xcode-select. I've also installed the homebrew so not sure if they somehow conflict. The config.log is attached below.
Thanks a lot.
These binaries here are coming from /usr/local/opt
which might be homebrew. I guess /usr/bin
should be first in path, or perhaps there's a way to update/configure homebrew.
configure:3974: checking for aarch64-apple-darwin-ar
configure:4004: result: no
configure:4014: checking for ar
configure:4030: found /usr/local/opt/binutils/bin/ar
configure:4041: result: ar
configure:4066: checking for aarch64-apple-darwin-ranlib
configure:4096: result: no
configure:4106: checking for ranlib
configure:4122: found /usr/local/opt/binutils/bin/ranlib
configure:4133: result: ranlib
configure:4158: checking for aarch64-apple-darwin-strip
configure:4188: result: no
configure:4198: checking for strip
configure:4214: found /usr/local/opt/binutils/bin/strip
configure:4225: result: strip
Sorry for the late reply and thanks a lot for the help!
I was able to compile after uninstalling the homebrew and removing the /usr/local/opt/ path from the ~/.zshrc file.
I wonder if it's using a different compiler/linker to the normal ones from xcode commandline tools?
As far as I remember, it was the default ones from the xcode commandline tools. I also installed zig toolchain for cross-compiling but not sure if that has any effect since zig uses it's own commands for cross-compiling.
Just trying to compile this over MacOS 10.15. After ./configure and make, I received a compilation error as "Undefined symbols for architecture x86_64:"
I've also tried ./configure flags and some changes to the default_options.h but that didn't help.
The rest of the error message below:
Thanks for the reply.