https://bugs.llvm.org/show_bug.cgi?id=34068

            Bug ID: 34068
           Summary: [Modules TS] libc++ multiple symbol definitions
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangb...@nondot.org
          Reporter: bo...@codesynthesis.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

When trying to link two object files corresponding to two module implementation
units I get duplicate symbol errors like this:

libbutl/sha256.so.o:(.rodata+0x1a): multiple definition of
`std::__1::adopt_lock'
libbutl/base64.so.o:(.rodata+0x1a): first defined here
libbutl/sha256.so.o:(.rodata+0x18): multiple definition of
`std::__1::defer_lock'
libbutl/base64.so.o:(.rodata+0x18): first defined here
libbutl/sha256.so.o:(.rodata+0x19): multiple definition of
`std::__1::try_to_lock'
libbutl/base64.so.o:(.rodata+0x19): first defined here
libbutl/sha256.so.o:(.rodata+0x1b): multiple definition of
`std::__1::placeholders::_1'
libbutl/sha256.so.o:(.rodata+0x10): multiple definition of
`std::__1::__find_detail::__ambiguous'
libbutl/base64.so.o:(.rodata+0x10): first defined here
libbutl/sha256.so.o:(.rodata+0x8): multiple definition of
`std::__1::__find_detail::__not_found'
libbutl/base64.so.o:(.rodata+0x8): first defined here
libbutl/sha256.so.o:(.rodata+0x1): multiple definition of
`std::__1::allocator_arg'
libbutl/base64.so.o:(.rodata+0x1): first defined here
libbutl/sha256.so.o:(.rodata+0x0): multiple definition of
`std::__1::piecewise_construct'
libbutl/base64.so.o:(.rodata+0x0): first defined here

Making a reproducer is quite tedious (modules are a real pain without good
build system support). But I could give a link to the sources as well as the
entire compilation log if that would be helpful.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to