[llvm-bugs] [Bug 35227] New: [ThinLTO] Core dump - "Expected a single module"
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 7 10:38:47 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35227
Bug ID: 35227
Summary: [ThinLTO] Core dump - "Expected a single module"
Product: new-bugs
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: russell_gallop at sn.scee.net
CC: llvm-bugs at lists.llvm.org
Tested at master (r317500) and release50 (r316607).
$ cat test.cpp
struct C {
virtual void m_fn1();
};
struct D : C {
// void m_fn1();
} a;
$ clang -o test.o -flto-thin -c test.cpp
$ llvm-lto --thinlto-action=run test.o
error: can't create module summary index for buffer: Expected a single module
LLVMSymbolizer: error reading file: No such file or directory
...
Stack dump:
0. Program arguments: llvm-lto --thinlto-action=run test.cpp.o
Segmentation fault (core dumped)
Note that the following warning is given for this file by -Weverything
$ clang -Weverything -c test.cpp
test.cpp:4:8: warning: 'D' has no out-of-line virtual method definitions; its
vtable will be emitted in every translation unit [-Wweak-vtables]
struct D : C {
^
When fixed (uncomment line 5 in test.cpp) the above example builds okay.
--
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/20171107/53e924eb/attachment.html>
More information about the llvm-bugs
mailing list