<html>
<head>
<base href="https://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 --- - "unrecognized reloc 22" error linking libclang_rt.asan-x86_64.so with lld"
href="https://llvm.org/bugs/show_bug.cgi?id=26878">26878</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"unrecognized reloc 22" error linking libclang_rt.asan-x86_64.so with lld
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Attempting to build the asan runtime with lld as the linker on FreeBSD fails
with:
[3/4] Linking CXX shared library lib/c...lib/freebsd/libclang_rt.asan-x86_64.so
FAILED: : && /usr/bin/CC -fPIC -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor
-std=c++11 -fcolor-diagnostics -fdata-sections -Wall -std=c++11 -fuse-ld=lld
-Wl,-z,origin -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer
-funwind-tables -fno-stack-protector -fvisibility=hidden
-fvisibility-inlines-hidden -fno-lto -O3 -gline-tables-only -Wno-gnu
-Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti
-ftls-model=initial-exec
-Wl,--version-script,/tank/emaste/src/llvm/build-lld-selfhost2/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-x86_64.vers
-shared -Wl,-soname,libclang_rt.asan-x86_64.so -o
lib/clang/3.9.0/lib/freebsd/libclang_rt.asan-x86_64.so
projects/compiler-rt/lib/interception/CMakeFiles/RTInterception.x86_64.dir/interception_linux.cc.o
[...]
projects/compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_cxx.x86_64.dir/ubsan_type_hash_win.cc.o
-L/usr/local/lib -lc -lrt -lm -lpthread -lstdc++ -Wl,-rpath,"\$ORIGIN/../lib"
&& :
unrecognized reloc 22</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>