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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs