From owner-freebsd-arch@FreeBSD.ORG Mon Nov 17 10:52:43 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 AEE83774 for ; Mon, 17 Nov 2014 10:52:43 +0000 (UTC) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) (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 7B27C1C4 for ; Mon, 17 Nov 2014 10:52:43 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id et14so7258529pad.29 for ; Mon, 17 Nov 2014 02:52:42 -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=8bhg6n5X6fesgjx7UXlu97Bw/dCCjvVZ3ZD7LwM5eHo=; b=JZFFioN3HWw4Y8hNNlgxF4XnNac4LAolFZinjOizBg/2Z0exGWCaVvS/lyQtrZrBfa GUxY8JrRALkpkCNJMsSrux3M0YXG/yNqBQT1rGe3XfcEdkUEbkyRek7mhVlsQU3ZW/cC 2Ymf0UJ0EApUJ7f4E5La71iC2reW3sqAloEreI4dsvKRkftaBIj8bh/0az2fJGGy4+lU cj2fzCdIucsopTl+ZkWCyYIwIzIV9d8TMTsYkc1K8hreGvzu9h2N82n1eR4XfPHpI3jG YjKXqyiITUluWBye9k9bx/Ud7AMK+Nh172A2reBt3bX6Dp1Ue4GohmQhI7BElKBNqAKc gvwQ== X-Gm-Message-State: ALoCoQlpOWXhgtPsPVMb1/hVisOd8Miu+GHchIimy7MwFpM51UHIn6tyAGbliw/nRIXs4eZDar3X X-Received: by 10.70.45.233 with SMTP id q9mr28994074pdm.24.1416221562692; Mon, 17 Nov 2014 02:52:42 -0800 (PST) Received: from lgwl-achen.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id w5sm34834043pds.25.2014.11.17.02.52.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 02:52:41 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_B3F433B6-AB72-4EB3-82CE-CC64D3C9492C"; 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: <1416193104.1098.1207.camel@bruno> Date: Mon, 17 Nov 2014 03:52:33 -0700 Message-Id: References: <1416179733.1098.1200.camel@bruno> <2A2AD781-06B3-4450-9631-D83822016D0B@bsdimp.com> <1416183055.1098.1205.camel@bruno> <7C1D8D61-0486-4783-A3E2-73189AE83023@bsdimp.com> <1416193104.1098.1207.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: Mon, 17 Nov 2014 10:52:43 -0000 --Apple-Mail=_B3F433B6-AB72-4EB3-82CE-CC64D3C9492C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1253 On Nov 16, 2014, at 7:58 PM, Sean Bruno wrote: > On Sun, 2014-11-16 at 17:15 -0700, Warner Losh wrote: >> On Nov 16, 2014, at 5:10 PM, Sean Bruno = wrote: >>=20 >>> On Sun, 2014-11-16 at 16:55 -0700, Warner Losh wrote: >>>> On Nov 16, 2014, at 4:15 PM, 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 >>>> Let=92s start with the first question: How are you seeing this? >>>>=20 >>>> Warner >>>>=20 >>>=20 >>>=20 >>> Setup a qemu-user enabled jail for mips based on head. Start = poudriere >>> building audio/speex (nice, short depend chain). >>>=20 >>> While all this is running, I have a "ps auwxxx|grep qemu" running = that >>> catches some of the invocations of qemu that are happening. When >>> running a mips jail I see the tool chain being invoked, partially, >>> from /usr/bin instead of /nxb-bin/usr/bin. >>>=20 >>> http://dpaste.com/12SD5TE >>>=20 >>> This is just a primitive profile attempt on my part. This shows = that >>> qemu is being invoked *a lot* to get cc1 and as running via = emulation. >>=20 >> If you are building ports, chances are those settings won=92t do what = you think they will. Do you have build logs I could look at? >>=20 >> Warner >=20 >=20 > More verbose output, not super useful. Except that the configure = output > shows that /nxb-bin/usr/bin/cc wants to use /usr/bin/ld ... I think = this > means we're not setting up the build flags for gcc correctly? >=20 > = http://crack.ysv.freebsd.org/data/11-mips-test-default/2014-11-17_02h37m39= s/logs/speex-1.2.r1_7,1.log Perhaps. But when I wrote those targets, I assumed they=92d replace the = target-native binaries with host-native binaries, now that I think about = it, rather than live in a side directory. You=92d need to make CC be = something more like CC=3D$PATH/usr/bin/cc -B$PATH/lib/exec or some such. Is there a good reason to not replace the binaries? I noticed you = keeping them separate, but wasn=92t sure if that was just a =93well, = that=92s what the target does=94 thing or a =93I had to do it because X=94= thing. Warner --Apple-Mail=_B3F433B6-AB72-4EB3-82CE-CC64D3C9492C 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 iQIcBAEBCgAGBQJUadNxAAoJEGwc0Sh9sBEA9a4P/iEdibt8dPpNkEW/YTxsiApj g8dx25DC7PEy7hZsFN3TCYHsi6cXrS/su8G4DW3/wCB1o4TBPiNYCwbem2R+610J mazJVGZ4vG6P9R21GhmlaJyH0ih95HLOnZuLErDWQ1MYXRQzzfalWejSm2duswFN 7HB2aJGrQ5mNSRhyveyxkC75Y4387o63HQHHDjIriFISxJFDpektL/wzMcOd01Ds anUakexFQfdzyUDKRN4mOhFqFYjK1eQ/+TvGnSRVLgAFJf9jBxED6SZcQo8TA1OV O7wtdtDe3KnPa06McMo7iCZ8AYLXDMmT2d+7e2CtLxDTR4qck7+iYQuLflwqNXhK YwamsBwlmq7uKfLk7FPeviYuba01+AmRzgoDVTeWE0WvAlyDc3fmKYh3aCKHs6sC l6SDMYbD8FXTSQnURvWkXGSxheFu1W9YT2dNqMWKtxYky87/OT0OrS6koYTwuqE1 ChSNf9Qo6owvXI5u5kWrZ2E0icQfsAxdFoxNAmyEgJcX+5W2rgBGe9940Z0Q/18f 3LEMl8xKicMXJn4wSlA3KUh7hTkTJKUI7TyK0nlhpuwPIPmRkrVy1onno29T7P4B 3AiTdnG0B8wjXczvvdfruN2Jqhc65Lylz4bLjFjqRB9ih+DgvkDLbq6IANdwXLF+ bdZ94/VPc11YnNd2jW/N =iNcH -----END PGP SIGNATURE----- --Apple-Mail=_B3F433B6-AB72-4EB3-82CE-CC64D3C9492C--