Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15685

--libc++ require -lc++abi on some platforms

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 4.1 Desired
    • Affects Version/s: 2.7.7
    • Component/s: Build
    • Labels:
      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
      

            Assignee:
            alex.neben@mongodb.com Alex Neben
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: