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

            Bug ID: 42951
           Summary: "Expected at most one ThinLTO module per bitcode
                    files" when linking in two files with same name (but
                    different files)
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: COFF
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Seen bug reports for this for ELF that have been resolved as well as commits
suggesting this may be solved for COFF but this seems to not be the case. When
using ThinLTO and linking together two object files that have the same name but
different paths it will fail with the error "Expected at most one ThinLTO
module per bitcode files" and then list undefined references to all the files
contained in the second object file. I tested this with current trunk version
of LLVM, lld and clang using MinGW. To reproduce great following project
layout:
-main.cpp
-test1/Object.hpp
-test1/Object.cpp
-test2/Object.hpp
-test2/Object.cpp

Then create a function in each Object.cpp's that are used in main and compile
and link all 3 together.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to