From owner-freebsd-arch@FreeBSD.ORG Mon Nov 17 12:20:18 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 CB8053F9; Mon, 17 Nov 2014 12:20:18 +0000 (UTC) Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [IPv6:2607:f8b0:400e:c02::229]) (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 91BC9CED; Mon, 17 Nov 2014 12:20:18 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id fp1so3794260pdb.0 for ; Mon, 17 Nov 2014 04:20:18 -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=c8x9u3CyLCK2VvNSWu71vDi7wnfxMZLbZuM6EAhJdpI=; b=yQb9Ed2tqjZWbDvNJAVk7dCiLwBUY5YcJinZfHSRCwE5zHqfPV9wLyfJKnCvv9hcUd hvnFkZqhryUhu1uJdfzJw+mDwiDyiASxtYh7wsXWQSgTIqfRGZwSAdEl+f+YiY5Dwf6E IuZULtqEBd8rM+aB4uy81V6+hoodSuK8Ihhz+kg0FX4CVmdHwf7ZegF3xSB1AMYstI7i invFKvr9b0QWcjUDzmJ3bl6Cm0wQVuPFMDpIYG+YjHiefgWLjJUzFo5xvGuNMax1kfoH RQ4vVWnp47+MW4J9oglGwPD5T3bOhGbif2Nh73rIcuOZyTAtgadGUuGvIBFKp52spwPI aXjw== X-Received: by 10.66.157.39 with SMTP id wj7mr4175358pab.117.1416226818100; Mon, 17 Nov 2014 04:20:18 -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 c4sm35025868pdh.53.2014.11.17.04.20.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 04:20:17 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_637AA305-32A8-474A-B2DA-8FDD364A94F8"; 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: <1416193104.1098.1207.camel@bruno> Date: Mon, 17 Nov 2014 04:20:15 -0800 Message-Id: <80ABD62A-DF08-4CF6-A4C6-B2AFC6E3CF21@gmail.com> 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 12:20:18 -0000 --Apple-Mail=_637AA305-32A8-474A-B2DA-8FDD364A94F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1253 On Nov 16, 2014, at 18:58, 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 > 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 That=92s my guess too, based on the configure output from libffi. ... "LD=3D/usr/bin/ld" "NM=3D/usr/bin/nm -B" "RANLIB=3Dranlib=94 ... The easiest path forward would be to set TOOLS_PREFIX in Makefile.inc1 = to an appropriate prefix (see XMAKE in Makefile.inc1, etc). I suspect if = you add this variable to NXBENV and tweak it appropriately, things will = just work. Cheers! --Apple-Mail=_637AA305-32A8-474A-B2DA-8FDD364A94F8 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 iQEcBAEBCgAGBQJUaef/AAoJEMZr5QU6S73eGYgH/2eyIcc5PxKBmgHrGUV8elA8 3Rs8YXXr12WyAnj9aQV+fjB+AeLJLZXbykov4wjg6r++YASVsxbGaSSY7lpoSGuc 3T0WIyTqAunikNRNzlY5arJ80BnyIO19Nf1ZNwJNImPCUvWJ8uIKF9ATPXR12Bkm lIqCxkwM0VJH8JDMILlrpTCY47/HNCyIiwnyzbf/sesde1JaVMYxJtsKopTjv2le GsZOfrAsA3j/8xgCspYbS5bJa9QdhZ6mNb80tK+mmwwptdLJRBhA11+NyjcLEpnH S9K63Aa9rxior2g/V1X55KW9US4kwWyhOgxHwy6CTS8voVpUsoKcsyxatDOoxHE= =6pmp -----END PGP SIGNATURE----- --Apple-Mail=_637AA305-32A8-474A-B2DA-8FDD364A94F8--