[LLVMbugs] [Bug 16272] New: Using wrong compiler when linking Lsan-x86_64-Test (and maybe elsewhere)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 7 12:45:47 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16272
Bug ID: 16272
Summary: Using wrong compiler when linking Lsan-x86_64-Test
(and maybe elsewhere)
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: andyg1001 at hotmail.co.uk
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling compiler-rt using cmake, the just-built version of clang is used
to compile source files (e.g. lsan_dummy_unittest.cc.x86_64.o), but when it
comes to linking (e.g. Lsan-x86_64-Test), the compiler used for linking is the
system one.
On my system, this causes the build to fail on linking Lsan-x86_64-Test with
"undefined reference to `std::ios_base::Init::Init()'" since the source file is
compiled against libstdc++11 but being linked against libc++11.
I expect there is a simple solution, i.e. to ensure that the same compiler is
used for compiling and for linking, but I am not familiar with compiler-rt so
can't provide a fix myself.
I also don't know whether this problem occurs elsewhere -- it may just be
fortunate that the conflict arises here!
--
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/20130607/97a8c693/attachment.html>
More information about the llvm-bugs
mailing list