GCC package which contains static libstdc++ and headers: It's unlikely but possible that one of our patches has caused it:
> defined at libstdc++.a(functexcept.o)Ĭlang++: error: linker command failed with exit code 1 (use -v to see invocation) Lld-link: error: duplicate symbol: typeinfo for std::runtime_error Lld-link: error: duplicate symbol: typeinfo name for std::runtime_error > defined at libstdc++.a(eh_personality.o) > defined at C:\Users\mateusz\AppData\Local\Temp\try_catch-b86566.o $ clang++ -static try_catch.cpp -fuse-ld=lld Lld-link: error: undefined symbol: std::basic_streambuf::imbue(std::locale const&) It's not compatible with the project due to other errors (which I've so far failed to create a test case for) I've tried using libc++ and while it works for this testĬlang++ t.cpp -fuse-ld=lld -static -stdlib=libc++ Lld: error: unknown argument: -allow-multiple-definition Normally with clang++ we use -allow-multiple-definition but it isn't supportedĬlang++ t.cpp -fuse-ld=lld -static -Wl,-allow-multiple-definition Lld-link: error: duplicate symbol: typeinfo name for std::exceptionĭefined at C:\Users.\AppData\Local\Temp\t-c0fb17.o I've attached some source which highlights the issue. I'm trying to link a project to lld because it's substantially faster & it works fine with g++, but not clang++