NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/48785: Error in __libc_thr_exit_stub when building with clang
>Number: 48785
>Category: lib
>Synopsis: Error in __libc_thr_exit_stub when building with clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 05 16:45:00 +0000 2014
>Originator: Jan Danielsson
>Release: netbsd-6
>Organization:
La Cosa Nostra
>Environment:
NetBSD gauss 6.1_STABLE NetBSD 6.1_STABLE (GAUSS) #0: Sat Aug 31 16:26:22 CEST
2013
jan@gauss:/home/jan/tmp/sysbuild/obj.amd64/usr/src/sys/arch/amd64/compile/GAUSS
amd64
>Description:
When building netbsd-6 using clang an error is generated when building
lib/libc/thread-stub/thread-stub.c because __libc_thr_exit_stub is dead.
>How-To-Repeat:
Build netbsd-6 using:
export MKLLVM=yes
export HAVE_LLVM=yes
>Fix:
deadify function.
Index: lib/libc/thread-stub/thread-stub.c
==================================================================
--- lib/libc/thread-stub/thread-stub.c
+++ lib/libc/thread-stub/thread-stub.c
@@ -408,11 +408,11 @@
DIE();
return (EOPNOTSUPP);
}
-void
+__dead void
__libc_thr_exit_stub(void *v)
{
/* LINTED deliberate lack of effect */
(void)v;
exit(0);
Home |
Main Index |
Thread Index |
Old Index