From owner-freebsd-arch@FreeBSD.ORG Sun Nov 16 23:36:05 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A881C739; Sun, 16 Nov 2014 23:36:05 +0000 (UTC) Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (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 7245CA91; Sun, 16 Nov 2014 23:36:05 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id kq14so2104615pab.20 for ; Sun, 16 Nov 2014 15:36:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=McFk+VeP4UZ45MIdQolNE6vjxhjyzlsDn6WENoW6ijA=; b=rJuLRXIzQEOKlRky9S2releXJNOtrnWoZmE7XaAZlHmsC82FF8L2i6gBzfj+2lmdGB 1y6AMOhx7v1PEg0w6oXBIYXc//YHbdN9vLmMSQ4I9Pg5YKHSiTfQv4n46S7uTL4BJcM2 ZT+4janoWICpL19D1dcT+wn1ypZ/HGgaUmz1tmQGFMljh9MG2trppnJHbzbFCZtCdR31 bjdDteTAPCXKhK/d+XX/rt5/f/+GOvM12ORHGgzSgoyNcs9Z5whjZC9okpF4lT+Y9KZX FIWSYsCciqAkdylKS01zwS5guTr5noqjNyzc8GHQn5CCGN/BWe8a5MWmW3A4rKetOYel 6pUA== X-Received: by 10.70.43.176 with SMTP id x16mr25480198pdl.31.1416180964714; Sun, 16 Nov 2014 15:36:04 -0800 (PST) Received: from [192.168.20.5] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id xn4sm13193767pab.9.2014.11.16.15.36.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Nov 2014 15:36:04 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_2D6A05A7-0FCE-478C-AEF1-4D61DFF711C5"; 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: Garrett Cooper In-Reply-To: <1416179733.1098.1200.camel@bruno> Date: Sun, 16 Nov 2014 15:36:03 -0800 Message-Id: <735BCED8-EBC1-4B65-AA34-1866ECDF3070@gmail.com> References: <1416179733.1098.1200.camel@bruno> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1878.6) 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:36:05 -0000 --Apple-Mail=_2D6A05A7-0FCE-478C-AEF1-4D61DFF711C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 16, 2014, at 15:15, Sean Bruno wrote: > 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. 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 . 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: $ ./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 I believe clang is smart enough to compile/link because it is setup to = grok multiple formats, but I=92ll defer to the clang team to = definitively state whether or not that=92s the case. Thanks! --Apple-Mail=_2D6A05A7-0FCE-478C-AEF1-4D61DFF711C5 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 iQEcBAEBCgAGBQJUaTTjAAoJEMZr5QU6S73eN/IH/izZ0W+aWsLOLrSZsLeFYRgA DLKnZ24aSynyStdPzowUaisET5G8T/Pd5ccN3C2AgtugpW3B77niLggj0JyTOowZ gowt4K0rg+1kmA7d/nuMQG84lkcanJ2nU/7PZMpDPGr7aYUzQMRih7TzBGdLkcPf TxAfh3wdqv60U8E7c3UMma964ASxuciSZqFvpViVZV8fNt6Lm9GcDRhDJVSIAzZ5 nuDXntD6JTVHppt93uKJdkRpBhW8rOios5hzTav+tdmCtYAqIWV2wpHoRSALkhjD nR4yoaLa1ADZL19cwgwZ0192s2eZ4EAZrVeH9eLWbWExoWNCmqnX36lxcv4cxxk= =ir13 -----END PGP SIGNATURE----- --Apple-Mail=_2D6A05A7-0FCE-478C-AEF1-4D61DFF711C5--