9-STABLE doesn't build with clang/llvm

Dr. Baud drbaud at yahoo.com
Fri Jun 22 11:47:28 UTC 2012



    Anybody else having trouble building r237440 with clang:

/usr/bin/clang  -O2 -pipe  -I/usr/home/bketchum/kernels/stable-9/lib/libc/includ
e -I/usr/home/bketchum/kernels/stable-9/lib/libc/../../include -I/usr/home/bketc
hum/kernels/stable-9/lib/libc/amd64 -DNLS  -D__DBINTERFACE_PRIVATE -I/usr/home/b
ketchum/kernels/stable-9/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/home/bketch
um/kernels/obj/stable-9/usr/home/bketchum/kernels/stable-9/lib/libc -I/usr/home/
bketchum/kernels/stable-9/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/
home/bketchum/kernels/stable-9/lib/libc/../../contrib/tzcode/stdtime -I/usr/home
/bketchum/kernels/stable-9/lib/libc/stdtime -I/usr/home/bketchum/kernels/stable-
9/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/home/bketchum/kern
els/stable-9/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Qunu
sed-arguments -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-unin
itialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautologic
al-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno
-conversion -Wno-switch -Wno-switch-enum -c /usr/home/bketchum/kernels/stable-9/
lib/libc/db/btree/bt_close.c -o bt_close.o
In file included from /usr/home/bketchum/kernels/stable-9/lib/libc/db/btree/bt_c
lose.c:44:
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/stdlib.h:82:1: error:

      unknown type name '_Noreturn'
_Noreturn void   abort(void);
^
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/stdlib.h:82:11: error
:
      expected identifier or '('
_Noreturn void   abort(void);
          ^
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/stdlib.h:92:1: error:

      unknown type name '_Noreturn'
_Noreturn void   exit(int);
^
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/stdlib.h:92:11: error
:
      expected identifier or '('
_Noreturn void   exit(int);
          ^
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/stdlib.h:151:1: error
:
      unknown type name '_Noreturn'
_Noreturn void   _Exit(int);
^
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/stdlib.h:151:11: erro
r:
      expected identifier or '('
_Noreturn void   _Exit(int);
          ^
In file included from /usr/home/bketchum/kernels/stable-9/lib/libc/db/btree/bt_c
lose.c:46:
/usr/home/bketchum/kernels/stable-9/lib/libc/../../include/unistd.h:482:20: erro
r:
      expected function body after function declarator
pid_t    vfork(void) __returns_twice;
                     ^
7 errors generated.
*** Error code 1

Stop in /usr/home/bketchum/kernels/stable-9/lib/libc.
*** Error code 1

Stop in /usr/home/bketchum/kernels/stable-9.
*** Error code 1

Stop in /usr/home/bketchum/kernels/stable-9.
*** Error code 1

Stop in /usr/home/bketchum/kernels/stable-9.
*** Error code 1

Stop in /usr/home/bketchum/kernels/stable-9.


More information about the freebsd-stable mailing list