Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Feb 2012 14:43:19 -0500
From:      "Dean E. Weimer" <dweimer@dweimer.net>
To:        <freebsd-questions@freebsd.org>
Subject:   FreeBSD 9 buildworld with clang failure
Message-ID:  <34badd4c885c87df2c7895cccecb0ca5@www.dweimer.net>

next in thread | raw e-mail | index | archive | help
I am trying to rebuild everything in a development machine with clang 
to test for production, and ran into a problem on the buildworld 
process.  This machine was already rebuilt from source using gcc, here 
are the options I have set in make.conf and src.conf.  The lines I added 
to enable clang, and the steps I took to compile.

Options in /etc/src.conf
WITHOUT_BIND_DNSSEC="YES"
WITHOUT_BIND_LIBS_LWRES="YES"
WITHOUT_BIND_NAMED="YES"
WITHOUT_BIND_UTILS="YES"
WITHOUT_NTP="YES"
WITHOUT_PROFILE="YES"

Options already in /etc/make.conf
WITH_OPENSSL_PORT=yes
WITHOUT_X11=yes
CFLAGS= -O -pipe
PERL_VERSION=5.12.4

Added to /etc/make.conf
.if !defined(USE_GCC)
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
.endif


Did the cleanup process from previous build and currently installed 
setup.
chflags -R noschg /usr/obj/usr
rm -rf /usr/obj/usr
cd /usr/src
make cleandir
make cleandir

Then ran make buildworld, it died on libc with the following output:

===> lib/libc (obj,depend,all,install)
clang -O -pipe  -I/usr/src/lib/libc/include 
-I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS  
-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 
-I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE 
-DPOSIX_MISTAKE -I/usr/src/lib/libc/../../contrib/tzcode/stdtime 
-I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES 
-DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING 
-DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers 
-Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c 
/usr/src/lib/libc/gen/setjmperr.c
In file included from /usr/src/lib/libc/gen/setjmperr.c:44:
/usr/src/lib/libc/../../include/setjmp.h:58:5: error: incompatible 
redeclaration of library function
       'sigsetjmp' [-Werror]
int     sigsetjmp(sigjmp_buf, int);
         ^
/usr/src/lib/libc/../../include/setjmp.h:58:5: note: 'sigsetjmp' is a 
builtin with type
       'int (struct _jmp_buf *, int)'
1 error generated.
*** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Anyone have any idea where I went wrong?

-- 
Thanks,
  Dean E. Weimer
  http://www.dweimer.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34badd4c885c87df2c7895cccecb0ca5>