[LLVMbugs] [Bug 21424] 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 17:28:31 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21424

Tobias Markmann <tm at ayena.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Tobias Markmann <tm at ayena.de> ---
Thanks...I missed the usage of clang++ for linking in the docs. However, even
when using clang++ for linking, I get about the same error:

tobias at ruediger ~/d/r/swift-work-clean> ninja -j 1
[3/1386] 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)
ninja: build stopped: subcommand failed.

Any further ideas what else I could look at?

-- 
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/20141101/613dc026/attachment.html>


More information about the llvm-bugs mailing list