Constellation / iv

ECMAScript Lexer / Parser / Interpreter / VM / method JIT written in C++
BSD 2-Clause "Simplified" License
417 stars 33 forks source link

[macOS, Clang] ld: multiple SYMDEF member files found in an archive #108

Open barracuda156 opened 8 months ago

barracuda156 commented 8 months ago

I cannot get around the following (tried different Clangs, tried both Ninja and Makefiles, same error):

FAILED: iv/lv5/lv5 
: && /opt/local/bin/clang++-mp-15 -pipe -Os -DNDEBUG -I/opt/local/include -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -std=c++11 -stdlib=libc++ -fno-operator-names -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk iv/lv5/CMakeFiles/lv5.dir/main.cc.o -o iv/lv5/lv5 -L/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_iv/iv/work/iv-64c3a9c7c517063f29d90d449180ea8f6f4d946f/iv/lv5/third_party/netlib_dtoa   -L/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_iv/iv/work/iv-64c3a9c7c517063f29d90d449180ea8f6f4d946f/iv/lv5/third_party/v8_dtoa -Wl,-rpath,/opt/local/lib  iv/lv5/liblv5.a  /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/lib/libm.tbd  /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/lib/libc++.tbd && :
ld: multiple SYMDEF member files found in an archive in '/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_iv/iv/work/build/iv/lv5/liblv5.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

@Constellation Any solution?

P. S. This does not affect a build with GCC, at least on my PowerPC system with gcc 13.2.0.