[llvm-bugs] [Bug 34499] New: PDB emission fails with thin-lto
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 6 04:07:55 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34499
Bug ID: 34499
Summary: PDB emission fails with thin-lto
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: Alberto.Magni at microsoft.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19107
--> https://bugs.llvm.org/attachment.cgi?id=19107&action=edit
Reproducer
Given the reproducer attached, the following sequence of commands
clang-cl /c /Zi /O2 -flto=thin foo.c
clang-cl /c /Zi /O2 -flto=thin main.c
lld-link /OUT:prog.exe /DEBUG /PDB:prog.pdb /subsystem:CONSOLE /entry:main
foo.obj main.obj
produces this error:
Native PDB Error: The entry already exists. The specified module already
exists
The following commands, with full LTO, work correctly:
clang-cl /c /Zi /O2 -flto foo.c
clang-cl /c /Zi /O2 -flto main.c
lld-link /OUT:prog.exe /DEBUG /PDB:prog.pdb /subsystem:CONSOLE /entry:main
foo.obj main.obj
I am using:
https://github.com/llvm-mirror/clang.git
3f0db6ed816c5fae9bf6a7b2b1711e8fc57b8589
https://github.com/llvm-mirror/llvm.git
aba02efc6c6441eddd72388638f70cbb17e39b96
https://github.com/llvm-mirror/lld.git:
d470133e80e2090b7281880320ddead759c7fa2d
--
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/20170906/5b902b62/attachment.html>
More information about the llvm-bugs
mailing list