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

duplicate symbols when compiling with clang 9

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.1
    • Component/s: Build
    • None
    • ALL
    • Dev Platform 2019-12-02

      Hi, mongodb 4.2.1 builds fine on macOS 10.13 when compiled with --libc++ using MacPorts clang 7, and also with clang 8 if I apply the fix fromĀ SERVER-44270. But using clang 9, the build fails with hundreds of thousands of duplicate symbol errors like this:

      duplicate symbol __ZN5mongo13error_details11isNamedCodeILi9EEE in:
      build/MP/mongo/shell/dbshell.o
      build/MP/mongo/shell/mongodbcr.o
      duplicate symbol __ZN5mongo13error_details11isNamedCodeILi199EEE in:
      build/MP/mongo/shell/dbshell.o
      build/MP/mongo/shell/mongodbcr.o
      duplicate symbol __ZN5mongo13error_details11isNamedCodeILi89EEE in:
      build/MP/mongo/shell/dbshell.o
      build/MP/mongo/shell/mongodbcr.o

      My compressed full build log is attached.

      Another user reported the same problem when using clang 9 to build mongodb 4.0.13 on OS X 10.11. Here is their compressed full build log if you'd like it.

        1. main.log.bz2
          343 kB
          Ryan Schmidt

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            ryandesign Ryan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: