<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Linker error related to RTTI? for -fsanitize=undefined with clang 3.6.0"
href="http://llvm.org/bugs/show_bug.cgi?id=21424">21424</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linker error related to RTTI? for -fsanitize=undefined with clang 3.6.0
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tm@ayena.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>