From owner-freebsd-current@FreeBSD.ORG Thu May 1 13:34:05 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D704A5F0; Thu, 1 May 2014 13:34:05 +0000 (UTC) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 454021BF8; Thu, 1 May 2014 13:34:05 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.7/8.14.7) with ESMTP id s41DIU7e009642; Thu, 1 May 2014 08:18:30 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.7/8.14.7/Submit) id s41DIU4U009641; Thu, 1 May 2014 08:18:30 -0500 (CDT) (envelope-from brooks) Date: Thu, 1 May 2014 08:18:30 -0500 From: Brooks Davis To: Warner Losh Subject: Re: POLA.. missing --sysroot option in ld? Message-ID: <20140501131830.GA9578@lor.one-eyed-alien.net> References: <536061A9.7030502@freebsd.org> <53607ABD.1000605@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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: Thu, 01 May 2014 13:34:05 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 30, 2014 at 11:02:31PM -0600, Warner Losh wrote: >=20 > On Apr 29, 2014, at 10:23 PM, Julian Elischer wrote: >=20 > > On 4/30/14, 10:36 AM, Julian Elischer wrote: > >> In our 8.0 based systems at $JOB our build environment made heavy use = of the --sysroot option in gcc and ld. > >>=20 > >> We are trying to move up to a newer release but suddenly the --sysroot= option has disappeared. > >>=20 > >> we get the message "/usr/bin/ld: this linker was not configured to use= sysroots" > > more spefically the following command (from 'configure') fails on "near= 9" > > and succeeds on 8.0. > >=20 > > configure:3352: /usr/bin/gcc -Wall -Wno-unused-parameter -nostdinc -is= ystem /usr/build/buildroot/tools/x86_gcc4.2.4/usr/include --sysroot /usr/bu= ild/buildroot/tools/x86_gcc4.2.4 -Wall -Wno-unused-parame > > ter -nostdinc -isystem /usr/build/buildroot/tools/x86_gcc4.2.4/usr/inc= lude --sysroot /usr/build/buildroot/tools/x86_gcc4.2.4 --sysroot /usr/buil= d/buildroot/tools/x86_gcc4.2.4 -L/usr/build/buildroot/too > > ls/x86_gcc4.2.4/lib -L/usr/build/buildroot/tools/x86_gcc4.2.4/usr/lib c= onftest.c >&5 > >>=20 > >> Does anyone know what happened? and when, and by who? > >> I have looked in the Makefiles and configuration files in SVN and I ca= n't see a change that would have done this.. > >> of course the building of these tools is rather complex so I may have = missed some place.. >=20 > Yea, I looked too and don?t see anything. I thought it was broken in more= like 2005 not 2011. You?re only hope is to bisect the tree down to the cha= nge that caused it? It's been broken since at least the last binutils import and probably longer since the inane ld behavior of activating --sysroot only when built with a specified sysroot is from upstream. The fix is trivial, just merge r257268 and r257530 to the branch you are using. -- Brooks --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iKYEARECAGYFAlNiSaZfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDY1NUQ1MTlDMjZBNzgyRTcyNTI5OUJGMDVE OEU4QkU5RjIzODFBRDQACgkQXY6L6fI4GtSUuwCfQ2Nz6YJ4HgYusrNSoArrpSK8 LEIAn2Bd8gDAxqU2qHYWT8VTLXOh3kcX =t2pm -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--