<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 --- - [LTO] duplicated symbols in libc.a and libpthread.a (FreeBSD)"
href="https://llvm.org/bugs/show_bug.cgi?id=28256">28256</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[LTO] duplicated symbols in libc.a and libpthread.a (FreeBSD)
</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>All
</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>davide@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>This happens while building the clang provided in FreeBSD, with (pretty much)
every symbol like _pthread*
duplicate symbol: _pthread_exit in
usr/home/buildbot/obj/usr/home/buildbot/freebsd/tmp/usr/lib/libpthread.a(thr_exit.o)
and
usr/home/buildbot/obj/usr/home/buildbot/freebsd/tmp/usr/lib/libc.a(_pthread_stub
s.o)
[...]
thr_exit.o contains:
module asm ".weak pthread_exit"
module asm ".equ pthread_exit, _pthread_exit"
; Function Attrs: noreturn uwtable
define void @_pthread_exit(i8* %status) #0 {
entry:
tail call void @_pthread_exit_mask(i8* %status, %struct.__sigset* null) #6
unreachable
}
and _pthread_stubs.o
module asm ".weak _pthread_exit"
module asm ".equ _pthread_exit, pthread_exit_int"
define internal void @pthread_exit_int(i8* %p0) #2 {
entry:
%0 = load void (i8*)*, void (i8*)** bitcast (i32 ()** getelementptr inbounds
([66 x [2 x i32 ()*]], [66 x [2 x i32 ()*]]* @__thr_jtable, i64 0, i64 30, i64
1) to void (i8*)**), align 8, !tbaa !1
tail call void %0(i8* %p0) #5
ret void
}
Reproduce coming.</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>