compile userland with llvm-clang gives some errors

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Amit Kulkarni
Date: Friday, November 5, 2010 - 3:21 pm

Index: lib/libc/gen/sigsetops.c
===================================================================
RCS file: /cvs/src/lib/libc/gen/sigsetops.c,v
retrieving revision 1.5
diff lib/libc/gen/sigsetops.c
34c34
< #include <signal.h>
---


to fix

/usr/src/lib/libc/gen/sigsetops.c:57:1: error: redefinition of a
'extern inline' function 'sigaddset' is not supported in C99 mode
sigaddset(sigset_t *set, int signo)
^
In file included from /usr/src/lib/libc/gen/sigsetops.c:34:
/usr/include/signal.h:67:19: note: previous definition is here
__only_inline int sigaddset(sigset_t *set, int signo) {
                  ^
/usr/src/lib/libc/gen/sigsetops.c:68:1: error: redefinition of a
'extern inline' function 'sigdelset' is not supported in C99 mode
sigdelset(sigset_t *set, int signo)
^
In file included from /usr/src/lib/libc/gen/sigsetops.c:34:
/usr/include/signal.h:78:19: note: previous definition is here
__only_inline int sigdelset(sigset_t *set, int signo) {
                  ^
/usr/src/lib/libc/gen/sigsetops.c:79:1: error: redefinition of a
'extern inline' function 'sigismember' is not supported in C99 mode
sigismember(const sigset_t *set, int signo)




Index: lib/libpthread/arch/amd64/uthread_machdep.c
===================================================================
RCS file: /cvs/src/lib/libpthread/arch/amd64/uthread_machdep.c,v
retrieving revision 1.3
diff lib/libpthread/arch/amd64/uthread_machdep.c
56c56
<       __asm__("mov %%" #reg ", %0" : "=g"(lval))
---

to fix

/usr/src/lib/libpthread/arch/amd64/uthread_machdep.c:72:2: error:
ambiguous instructions require an explicit suffix (could be 'movw',
'movl', or
 'movq')
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
compile userland with llvm-clang gives some errors, Amit Kulkarni, (Fri Nov 5, 3:21 pm)
Re: compile userland with llvm-clang gives some errors, Philip Guenther, (Fri Nov 5, 10:31 pm)