[LLVMbugs] [Bug 21424] New: Linker error related to RTTI? for -fsanitize=undefined with clang 3.6.0
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 31 01:00:40 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21424
Bug ID: 21424
Summary: Linker error related to RTTI? for -fsanitize=undefined
with clang 3.6.0
Product: compiler-rt
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: tm at ayena.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
clang/llvm build:
~/llvm/bin/clang -v
clang version 3.6.0
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Subversion Revision: 220930
Trying to link an application I get this error:
[4/1337] LINK 3rdParty/Boost/bcp
FAILED: /Users/tobias/llvm/bin/clang -o 3rdParty/Boost/bcp
3rdParty/Boost/src/tools/bcp/add_path.o
3rdParty/Boost/src/tools/bcp/add_dependent_lib.o
3rdParty/Boost/src/tools/bcp/bcp_imp.o 3rdParty/Boost/src/tools/bcp/copy_path.o
3rdParty/Boost/src/tools/bcp/file_types.o
3rdParty/Boost/src/tools/bcp/fileview.o
3rdParty/Boost/src/tools/bcp/licence_info.o
3rdParty/Boost/src/tools/bcp/output_licence_info.o
3rdParty/Boost/src/tools/bcp/path_operations.o
3rdParty/Boost/src/tools/bcp/scan_cvs_path.o
3rdParty/Boost/src/tools/bcp/scan_licence.o 3rdParty/Boost/bcp.o
-fsanitize=undefined -L3rdParty/Boost -lSwiften_Boost -lresolv -lpthread -ldl
-lm -lc -lstdc++ -framework IOKit -framework AppKit -framework
SystemConfiguration -framework Security -framework SecurityInterface
Undefined symbols for architecture x86_64:
"__ZTIN10__cxxabiv117__class_type_infoE", referenced from:
__ZN7__ubsan16checkDynamicTypeEPvS0_m in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
__ZL21isDerivedFromAtOffsetPKN10__cxxabiv117__class_type_infoES2_l in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
__ZL16findBaseAtOffsetPKN10__cxxabiv117__class_type_infoEl in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
"__ZTIN10__cxxabiv120__si_class_type_infoE", referenced from:
__ZL21isDerivedFromAtOffsetPKN10__cxxabiv117__class_type_infoES2_l in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
__ZL16findBaseAtOffsetPKN10__cxxabiv117__class_type_infoEl in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
"__ZTIN10__cxxabiv121__vmi_class_type_infoE", referenced from:
__ZL21isDerivedFromAtOffsetPKN10__cxxabiv117__class_type_infoES2_l in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
__ZL16findBaseAtOffsetPKN10__cxxabiv117__class_type_infoEl in
libclang_rt.ubsan_osx.a(ubsan_type_hash.cc.o)
ld: symbol(s) not found for architecture x86_64
clang-3.6: error: linker command failed with exit code 1 (use -v to see
invocation)
--
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/20141031/9d12e7b3/attachment.html>
More information about the llvm-bugs
mailing list