From owner-freebsd-arch@FreeBSD.ORG Mon Nov 17 17:56:02 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 B1076368 for ; Mon, 17 Nov 2014 17:56:02 +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 765A3C83 for ; Mon, 17 Nov 2014 17:56:02 +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 52AF5193964; Mon, 17 Nov 2014 17:56:01 +0000 (UTC) Subject: Re: mips misbehaving, not respecting make.conf From: Sean Bruno Reply-To: sbruno@freebsd.org To: Garrett Cooper In-Reply-To: <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> <80ABD62A-DF08-4CF6-A4C6-B2AFC6E3CF21@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Qqt28R7ILJyt1cOGHUfk" Date: Mon, 17 Nov 2014 09:56:00 -0800 Message-ID: <1416246960.1248.22.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: Mon, 17 Nov 2014 17:56:02 -0000 --=-Qqt28R7ILJyt1cOGHUfk Content-Type: text/plain; charset="iso-8859-13" Content-Transfer-Encoding: quoted-printable > > http://crack.ysv.freebsd.org/data/11-mips-test-default/2014-11-17_02h37= m39s/logs/speex-1.2.r1_7,1.log >=20 > That=FFs my guess too, based on the configure output from libffi. >=20 > ... > "LD=3D/usr/bin/ld" "NM=3D/usr/bin/nm -B" "RANLIB=3Dranlib=A1 > ... >=20 > 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 wo= rk. >=20 > Cheers! This does indeed point gcc to the right tool chain. However, it immediately fails as it cannot find a crt1.o in /nxb-bin ... as we don't want to use an amd64 version we want to use the jail crt1.o sean configure:3154: result: /nxb-bin/usr/bin/cc configure:3383: checking for C compiler version configure:3392: /nxb-bin/usr/bin/cc --version >&5 cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3403: $? =3D 0 configure:3392: /nxb-bin/usr/bin/cc -v >&5 Using built-in specs. Target: mips-undermydesk-freebsd Configured with: FreeBSD/mips system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] configure:3403: $? =3D 0 configure:3392: /nxb-bin/usr/bin/cc -V >&5 cc: '-V' option must have argument configure:3403: $? =3D 1 configure:3392: /nxb-bin/usr/bin/cc -qversion >&5 cc: unrecognized option '-qversion' cc: No input files specified configure:3403: $? =3D 1 configure:3423: checking whether the C compiler works configure:3445: /nxb-bin/usr/bin/cc -O2 -pipe -fno-strict-aliasing conftest.c >&5 /nxb-bin/usr/bin/ld: crt1.o: No such file: No such file or directory configure:3449: $? =3D 1 configure:3487: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "pkg" | #define PACKAGE_TARNAME "pkg" | #define PACKAGE_VERSION "1.3.8" | #define PACKAGE_STRING "pkg 1.3.8" | #define PACKAGE_BUGREPORT "https://github.com/freebsd/pkg" | #define PACKAGE_URL "" | #define PACKAGE "pkg" | #define VERSION "1.3.8" | /* end confdefs.h. */ |=20 | int | main () | { |=20 | ; | return 0; | } configure:3492: error: in `/usr/ports/ports-mgmt/pkg/work/pkg-1.3.8': configure:3495: error: C compiler cannot create executables See `config.log' for more details --=-Qqt28R7ILJyt1cOGHUfk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJUajawXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kar4H/R6xa3H/LYb9aaLhhHLRQhKB 1nw+1Eb6V3eqLoQ/wvQsji9eUxfkNiiHssvv6czedeubN4M0VFIHR85X1cUV5cmu HjX+iwZkeHopJFiUS+GXTOC9U6ED7LYvUHxO9ACx/RwBVfV/LojRhP2DLQI9L44Z S9M7xqfrnlb0GBfMM8HCZj94wWqWwnp/AAsgo1qBdvnzvEMGFe9gBReamjLws50x y8XIIVUrkV4esCYpfEbD2qnz7/PYg8Q+yCCOq1p49R3qnawmEtOjeoXIjORgIJPC ldCX1WC0S+Gioh5S8ytBx1RGGfVs3ib4RhoRJhUJ1XMfyJt7hrlaq0hpJFkB1G4= =TGGi -----END PGP SIGNATURE----- --=-Qqt28R7ILJyt1cOGHUfk--