-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 2.7.7
-
Component/s: Build
-
None
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
It seems that recent libc++ require -lc++abi on some platforms (I'm seeing it on up to date arch).
The fix is an extra configure check that adds -lc++abi to the linker flags if needed.
The error in question:
/bin/ld: build/linux2/allocator_system/cc_clang/cxx_clang++/dbg_on/libc++/sanitize_address_leak/mongo/logger/rotatable_file_writer.o: undefined reference to symbol '_ZNSt8bad_castC1Ev'
/usr/lib/libc++abi.so.1: error adding symbols: DSO missing from command line
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [build/linux2/allocator_system/cc_clang/cxx_clang++/dbg_on/libc++/sanitize_address_leak/mongo/base/owned_pointer_vector_test] Error 1