From owner-freebsd-questions@FreeBSD.ORG Thu Feb 2 20:12:36 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73401106566C for ; Thu, 2 Feb 2012 20:12:36 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id F3BE88FC1E for ; Thu, 2 Feb 2012 20:12:35 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3290573wib.13 for ; Thu, 02 Feb 2012 12:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=i4kqvUtTTYt/7+Bdhg3jZ8W2+z125qboJwZbL0bqhRE=; b=E37/TmTJtfIQITuqoeU+igIfKaTVyneJWau7jj9O1LVnpVQWcsKsKazFwI2I32mIvb vnI0a3aCpy7eSH5k2aKk43OF1zBYWN17VXVIUTL4tyQ81q1FS9tD5QBz8doDfbNmEzSS mZfYumbR8Pv3ppoNfP0VfhNoiO+MQeEvc9ScU= MIME-Version: 1.0 Received: by 10.180.107.68 with SMTP id ha4mr7024394wib.9.1328213555053; Thu, 02 Feb 2012 12:12:35 -0800 (PST) Received: by 10.216.21.193 with HTTP; Thu, 2 Feb 2012 12:12:34 -0800 (PST) In-Reply-To: <34badd4c885c87df2c7895cccecb0ca5@www.dweimer.net> References: <34badd4c885c87df2c7895cccecb0ca5@www.dweimer.net> Date: Thu, 2 Feb 2012 15:12:34 -0500 Message-ID: From: "illoai@gmail.com" To: dweimer@dweimer.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 9 buildworld with clang failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 20:12:36 -0000 On 2 February 2012 14:43, Dean E. Weimer wrote: > 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. = =A0This > machine was already rebuilt from source using gcc, here are the options I > have set in make.conf and src.conf. =A0The lines I added to enable clang,= and > the steps I took to compile. > > Options in /etc/src.conf > WITHOUT_BIND_DNSSEC=3D"YES" > WITHOUT_BIND_LIBS_LWRES=3D"YES" > WITHOUT_BIND_NAMED=3D"YES" > WITHOUT_BIND_UTILS=3D"YES" > WITHOUT_NTP=3D"YES" > WITHOUT_PROFILE=3D"YES" > > Options already in /etc/make.conf > WITH_OPENSSL_PORT=3Dyes > WITHOUT_X11=3Dyes > CFLAGS=3D -O -pipe > PERL_VERSION=3D5.12.4 > > Added to /etc/make.conf > .if !defined(USE_GCC) > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3Dclang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3Dclang++ > .endif > .if !defined(CPP) || ${CPP} =3D=3D "cpp" > CPP=3Dclang-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: > > =3D=3D=3D> lib/libc (obj,depend,all,install) > clang -O -pipe =A0-I/usr/src/lib/libc/include > -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS > =A0-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET= 6 > -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=3Dgnu99 -fstack-protector -Wsystem-headers -Werr= or > -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 > =A0 =A0 =A0'sigsetjmp' [-Werror] > int =A0 =A0 sigsetjmp(sigjmp_buf, int); > =A0 =A0 =A0 =A0^ > /usr/src/lib/libc/../../include/setjmp.h:58:5: note: 'sigsetjmp' is a > builtin with type > =A0 =A0 =A0'int (struct _jmp_buf *, int)' > 1 error generated. > *** Error code 1 > > Stop in /usr/src/lib/libc. > *** Error code 1 Might try: Commenting out CFLAGS=3D Setting NO_WERROR=3D in /etc/make.conf --=20 --