[llvm-bugs] [Bug 42951] New: "Expected at most one ThinLTO module per bitcode files" when linking in two files with same name (but different files)
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 9 15:20:15 PDT 2019
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: unassignedbugs at nondot.org
Reporter: markus.boeck02 at gmail.com
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190809/014ef48c/attachment-0001.html>
More information about the llvm-bugs
mailing list