Skip to content

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

Open
@barracuda156

Description

@barracuda156

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions