From owner-freebsd-arch@FreeBSD.ORG Mon Nov 17 00:01:12 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 3946919A for ; Mon, 17 Nov 2014 00:01:12 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 06978CFC for ; Mon, 17 Nov 2014 00:01:11 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id lj1so20965699pab.36 for ; Sun, 16 Nov 2014 16:01:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=BpYAGtJFLb+ODUIcG3bjqWf/cN/YiP/+WeA4IPoQsAE=; b=Ysvphwom/oNUGusIE8EcC72NsdLS+IupN7zO7nrp6loAkB/v6ZcL7/THFXFuRFk71o 1IkWEk5ofNu6H8uEQ0y9GOPVSAPCsLKmz5InfiRu+klr3jQSj7Zlw+Y7XnBJR3iFptqz 1HzLYXW/ZT6L9zmzQ6Y3i61/BrXnsF6Xlap5yKvElSTpU1ftHBjBfj/P/sKAq6viHpYJ /D+ivSUTHkUNAd7XBGhB6wsrDLoRFBCwcMMU5OKC58HahUqElmxh87+HNpL0nyJ+94oe wSHOxqvtXk74SvvEIb54aa6mbQOwhdAAMynBgczxeSKXHwwPwDROOVmH7RdOnynyDWMz lgig== X-Gm-Message-State: ALoCoQn226oAoNRR+vERIU6UfcWqgI6bz+sUPuct91IbpkeKsa+7VvuU9Pa4iCBwwLj0UvfRr8K0 X-Received: by 10.70.126.194 with SMTP id na2mr26114083pdb.39.1416182471002; Sun, 16 Nov 2014 16:01:11 -0800 (PST) Received: from lgwl-achen.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id id2sm33237569pbb.65.2014.11.16.16.01.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Nov 2014 16:01:10 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_748C79DF-EEBB-4E94-A68F-3677CC817DEA"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: mips misbehaving, not respecting make.conf From: Warner Losh In-Reply-To: <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com> Date: Sun, 16 Nov 2014 17:01:01 -0700 Message-Id: References: <1416179733.1098.1200.camel@bruno> <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com> To: Garrett Cooper X-Mailer: Apple Mail (2.1878.6) Cc: sbruno@freebsd.org, 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: Mon, 17 Nov 2014 00:01:12 -0000 --Apple-Mail=_748C79DF-EEBB-4E94-A68F-3677CC817DEA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 16, 2014, at 4:36 PM, Garrett Cooper = wrote: > On Nov 16, 2014, at 15:15, Sean Bruno wrote: >=20 >> I have set make.conf to use AS=3D/nxb-bin/usr/bin/as and >> CC=3D/nxb-bin/usr/bin/cc >>=20 >> Yet, while monitoring, I still see the ports build process >> using /usr/bin/as and /usr/bin/ld and /usr/libexec/cc1 >>=20 >> I don't see this on armv6 when building in a jail + qemu. >>=20 >> I'm trying to understand what is missing from our gcc toolchain here >> that is causing the builds to ignore my directives. >=20 > 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=3D192394 . I=92ve never seen this happen in the decade or so I=92ve been doing = cross builds. I=92ve seen gcc breakage, but always from stupid C or C++ = tricks, not from how we have things setup. > The prefixing/sysroot isn=92t 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 the 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 = and libdir > $ svn info configure | grep ^URL: > URL: svn+ssh://ngie@svn.freebsd.org/base/head/contrib/gcc/configure The native-xtools builds should be setup to use the right binaries. I = don=92t think this is sean=92s problem. Warner --Apple-Mail=_748C79DF-EEBB-4E94-A68F-3677CC817DEA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUaTq+AAoJEGwc0Sh9sBEA8agQAIhc/TRjvQ8+uCU/bYipiRjz L1jhzW9J7as48Ob3N2nMS5CVrFY/GZ18i+Dq4JsBKHKGoo6C7e5ELMJ+ZRHjEEAb T1WVCTzYDTAwj3+6JDhcgynTYdpeb8BhZmckwceaSuKWRyQCpcmqdKbqva5dgix8 +X/u+hmRET9/fde3HZfINqDeeKB3wUsOZvT1dQMxn9VRYnx0H9lsrxhrc+Y5KyhH U4NYTY8FfPsjPYEaTaJ1+TevszvvtACc3cS/eT4Ocu7A9W9oGxtB8ximj9BpzlYA pOkjf3b56dlEuU4O9wMW+Ukhkb4i/z0CEReyRPaeZKc3LdY67MDpqXF+1ytBkZhc O52APjZ+ma1XiZ9ibnnvedvxLQVw+tE2S2u41PrDa6peOUWMTTVWD5IYOy9FeugN m9EBUMV9AB263KvzatM0ARfpj883ar+eDl8/4jhUMxoru/kCQU9EpayRB9xIbED6 aY4JTyu1r+CyRsvgynA+fSXFpBPrTJKu8YZW6qEn4sE8idwy8QEiwd/27Wo2V9T9 8b7cx3BTm0egBjzvgtp5MDbZc6KOwJ/erPZNZvddBmhjRpWXPqGtE5dP1n8ZKRDe EnD1TnqiOItonV0gpjPi6x12MeManSB9UhT2IwEUZkiJTOCsaLPFMnV4LWEJVC2l /UuaBj/haZz0NioPumt5 =L8ke -----END PGP SIGNATURE----- --Apple-Mail=_748C79DF-EEBB-4E94-A68F-3677CC817DEA--