From owner-freebsd-current@FreeBSD.ORG Wed May 22 16:09:15 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F1498BF3 for ; Wed, 22 May 2013 16:09:15 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 30944FE for ; Wed, 22 May 2013 16:09:14 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.5/8.14.5) with ESMTP id r4MG9Dbe023893; Wed, 22 May 2013 11:09:13 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.5/8.14.5/Submit) id r4MG9Dgr023892; Wed, 22 May 2013 11:09:13 -0500 (CDT) (envelope-from brooks) Date: Wed, 22 May 2013 11:09:13 -0500 From: Brooks Davis To: Ivan Klymenko Subject: Re: Revision 250659 breaks down the build of the world Message-ID: <20130522160913.GB22925@lor.one-eyed-alien.net> References: <20130522110856.60f10889@nonamehost.local> <20130522143157.GA22925@lor.one-eyed-alien.net> <20130522185214.7528ede3@nonamehost.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline In-Reply-To: <20130522185214.7528ede3@nonamehost.local> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2013 16:09:16 -0000 --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 22, 2013 at 06:52:14PM +0300, Ivan Klymenko wrote: > ?? Wed, 22 May 2013 09:31:57 -0500 > Brooks Davis ??????????: >=20 > > On Wed, May 22, 2013 at 11:08:56AM +0300, Ivan Klymenko wrote: > > > ?? Tue, 21 May 2013 12:00:54 -0500 > > > Brooks Davis ??????????: > > >=20 > > > > I belive this is now fixed in r250859. Sorry about the breakage. > > > >=20 > > > > -- Brooks > > > >=20 > > > Unfortunately it did not fix the error when building the world. > > > I still watch an error like this: > > > --- /usr/bin/ld: this linker was not configured to use sysroots > > > clang: error: linker command failed with exit code 1 (use -v to see > > > invocation) *** [libc.so.7] Error code 1 > >=20 > > Please provide your make command like as well as any variables set in > > make.conf and src.conf. > >=20 > > -- Brooks >=20 > /etc/src.conf =3D NULL >=20 > /etc/make.conf > ###WITHOUT_CLANG_IS_CC=3Dyes > WRKDIRPREFIX=3D/usr/ports_build > KERNCONF=3Dmk10 > WITH_PKGNG=3Dyes > MALLOC_PRODUCTION=3Dyes > #CFLAGS+=3D-g >=20 > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D# > #For ccache > .if !defined(NO_CCACHE) > CCACHE_CPP2=3D1 > WITH_CCACHE_BUILD=3Dyes > .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) > CC:=3D${CC:C,^cc,/usr/local/libexec/ccache/world/clang,1} > CXX:=3D${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/clang++,1} > CPUTYPE?=3Dcorei7-avx > CFLAGS+=3D-O3 > CFLAGS+=3D-fcolor-diagnostics > .endif > .endif > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D# > # added by use.perl 2013-05-18 22:48:36 > PERL_VERSION=3D5.14.2 >=20 > make command > make buildkernel >=20 > ... > /usr/local/libexec/ccache/world/clang --sysroot=3D/usr/obj/usr/src/tmp > -B/usr/obj/usr/src/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing > -march=3Dcorei7-avx -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions > -Wmissing-include-dirs -fdiagnostics-show-option > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h > -fno-omit-frame-pointer -mno-aes -mno-avx -mcmodel=3Dkernel -mno-red-zone > -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables > -ffreestanding -fstack-protector -Werror config.c ctfconvert -L > VERSION -g config.o /usr/local/libexec/ccache/world/clang > --sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 > -pipe -fno-strict-aliasing -march=3Dcorei7-avx -std=3Dc99 -g -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-error-tautological-compare > -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. > -I/usr/src/sys -I/usr/src/sys/contrib/altq > -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS > -include opt_global.h -fno-omit-frame-pointer -mno-aes -mno-avx > -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -Werror env.c ctfconvert -L VERSION -g > env.o /usr/local/libexec/ccache/world/clang > --sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 > -pipe -fno-strict-aliasing -march=3Dcorei7-avx -std=3Dc99 -g -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-error-tautological-compare > -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. > -I/usr/src/sys -I/usr/src/sys/contrib/altq > -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS > -include opt_global.h -fno-omit-frame-pointer -mno-aes -mno-avx > -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -Werror hints.c ctfconvert -L VERSION -g > hints.o /usr/local/libexec/ccache/world/clang > --sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 > -pipe -fno-strict-aliasing -march=3Dcorei7-avx -std=3Dc99 -g -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-error-tautological-compare > -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. > -I/usr/src/sys -I/usr/src/sys/contrib/altq > -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS > -include opt_global.h -fno-omit-frame-pointer -mno-aes -mno-avx > -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -Werror vnode_if.c ctfconvert -L VERSION -g vnode_if.o :> > hack.c /usr/local/libexec/ccache/world/clang > --sysroot=3D/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -shared > -nostdlib hack.c -o hack.So /usr/bin/ld: this linker was not configured > to use sysroots clang: error: linker command failed with exit code 1 > (use -v to see invocation) *** Error code 1 The use of absolute paths in the ccache setup trips some of the external toolchain code which requires that you not use the system binutils. You could work around this in a couple ways. One would be to use a version of clang compiled to use binutils from ports since that one enables sysroot. Another would be a version of clang compiled with the cross tools binutils. Finally, the base binutils could be fixed to enable --sysroot support. The latter is the right answer, but no one has done the work yet. It should be relatively trivial, you just need to force the default sysroot to /. -- Brooks P.S. not mentioning the use of ccache was a sure way to waste developer time trying to fix your problems. --wq9mPyueHGvFACwf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFRnO2oXY6L6fI4GtQRAhx/AKCIljonPA4LBdgeegMpaQTNRLCLJQCg4mD1 bXSISyrMaYC+jRR7QgDbJ6w= =H/+1 -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--