From owner-freebsd-arch@FreeBSD.ORG Sun Nov 16 23:42:56 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C355181F for ; Sun, 16 Nov 2014 23:42:56 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A09ABB58 for ; Sun, 16 Nov 2014 23:42:55 +0000 (UTC) Received: from [192.168.200.212] (unknown [50.136.155.142]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id AFEA3193964; Sun, 16 Nov 2014 23:42:54 +0000 (UTC) Subject: Re: mips misbehaving, not respecting make.conf From: Sean Bruno Reply-To: sbruno@freebsd.org To: Garrett Cooper In-Reply-To: <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com> References: <1416179733.1098.1200.camel@bruno> <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-W3/JMude3f8dCFyi6TKF" Date: Sun, 16 Nov 2014 15:42:53 -0800 Message-ID: <1416181373.1098.1201.camel@bruno> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 23:42:56 -0000 --=-W3/JMude3f8dCFyi6TKF Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable > It all kinds of boils down to this bug with the configuration of our base= system copy of gcc: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D19= 2394 . >=20 > The prefixing/sysroot isn=A2t being setup properly, which means that you = have to use $PATH to tell gcc and friends which tool you want to use (which= make buildworld, etc does). One way to fix this (if we used autoconf in th= e base system build) would be to reconfigure it with a particular sysroot: >=20 > $ ./configure --help | grep -A 3 sysroot > --with-build-sysroot=3Dsysroot > use sysroot as the system root during the build > --with-sysroot=3DDIR Search for usr/lib, usr/include, et al, within DIR= . > --with-gnu-ld assume the C compiler uses GNU ld default=3Dno > --with-libiconv-prefix[=3DDIR] search for libiconv in DIR/include and = DIR/lib > --without-libiconv-prefix don't search for libiconv in includedir a= nd libdir > $ svn info configure | grep ^URL: > URL: svn+ssh://ngie@svn.freebsd.org/base/head/contrib/gcc/configure >=20 > I believe clang is smart enough to compile/link because it is setup to gr= ok multiple formats, but I=A2ll defer to the clang team to definitively sta= te whether or not that=A2s the case. >=20 > Thanks! In my scenario, I'm using the native-xtools target, which may/may not be doing this? If you understand make-foo, can you look at the target and see if this is DTRT? sean --=-W3/JMude3f8dCFyi6TKF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJUaTZ9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5knk0H/RckUKrgbzDcZB7S4PY9+Y3p ULmeUNPC2YsusB8iJTj4ymn5YLxG5jk84gsssNsTJA+8YWvXNis1VfQpAI2YQWv9 kTZZJkxqrLqdS3kuoaoXdH0u6GrloBbMXCL/hv0H1yOvarP8MaIJP5M3qBJPebDm 0ayWb4+38JZ8FlToVav9vHfSI0DdQRNUIE9LVKn60D6hdmPJpBiN7lc61doL6aoG auNsvFiNPnDSnTllluMmmg46emjYXxigRMpPmvA8+D/sMI/CuDMyITIdZtVY/SqW 8u7oR0vg1NNkA5KqCbLGYwlomQ1ZxDV8SdfOOyMeiKDfoxMrXkDU4+MIDIuTtX4= =AQnm -----END PGP SIGNATURE----- --=-W3/JMude3f8dCFyi6TKF--