From owner-freebsd-arch@FreeBSD.ORG Mon Nov 17 21:47: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 D7E6A296 for ; Mon, 17 Nov 2014 21:47:02 +0000 (UTC) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) (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 A3C43B37 for ; Mon, 17 Nov 2014 21:47:02 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id rd3so9469549pab.21 for ; Mon, 17 Nov 2014 13:46:56 -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=DJ44Th3m1tifZgp1uFsb5NZ70AMCHuqpz+MZQSt3+wQ=; b=FazviUpMG2faP1Cs6YZXJt6puE9hbMFesNwANcxFUTFMI6yxq9RavSXBIK6YoISzIS 3qPdUc7hWSDEs/+VLulISdZqdpIKKNPuO7abfVb9MTW+7/4PhXuZ8takqKlsBiHOe/i0 uClndTlXYzlFPdQ74Si1EuMkRJ6evjEtpz8JmMqFHw4PTcBLMYKjHRL6k3EHfJuUUsHv zWZnqlvAhFJV8QmF/jSRhODsVvZqu+ZaZ5Qywl8QzmKAWJXOL2sKDrsVUuwNgQNeAxDy z2lqS0DLpvT5hl0w5tJE7dxd7vqWPAfvgI3PNiKYkAeqlxly/BOj/IZsbu9Xhn4AuK+D oNkA== X-Gm-Message-State: ALoCoQkZRv4GJsfL8gLAtCIqG+VrLggcZagsvV4MarDiKQ0SPGWr2hnqLRB8IOCOdTb/uCFgQW9D X-Received: by 10.68.57.225 with SMTP id l1mr11018910pbq.87.1416260815900; Mon, 17 Nov 2014 13:46:55 -0800 (PST) Received: from lgwl-achen.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id hc10sm11566283pbd.78.2014.11.17.13.46.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 13:46:55 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_202D21B5-08EE-450C-BC44-254A4ED15CA7"; 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: <1416246960.1248.22.camel@bruno> Date: Mon, 17 Nov 2014 14:46:43 -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> <80ABD62A-DF08-4CF6-A4C6-B2AFC6E3CF21@gmail.com> <1416246960.1248.22.camel@bruno> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1878.6) Cc: Garrett Cooper , 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 21:47:02 -0000 --Apple-Mail=_202D21B5-08EE-450C-BC44-254A4ED15CA7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 17, 2014, at 10:56 AM, Sean Bruno wrote: >=20 >>> = http://crack.ysv.freebsd.org/data/11-mips-test-default/2014-11-17_02h37m39= s/logs/speex-1.2.r1_7,1.log >>=20 >> That=B4s my guess too, based on the configure output from libffi. >>=20 >> ... >> "LD=3D/usr/bin/ld" "NM=3D/usr/bin/nm -B" "RANLIB=3Dranlib=94 >> ... >>=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 work. >>=20 >> Cheers! >=20 >=20 > 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 This is one of the many reasons I expected you to copy these binaries over the native ones rather than have them in a side tree. Warner > sean >=20 > 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. >=20 > 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 >=20 --Apple-Mail=_202D21B5-08EE-450C-BC44-254A4ED15CA7 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 iQIcBAEBCgAGBQJUamzEAAoJEGwc0Sh9sBEAK1EQANL29dG1g+kJCdLjUacrv+d2 TsyQecEMgV5xEBkfawAG5iV7anvXPbG8oFMrY91xovFO2hFCTfWPhNf8lVg8i9AT L/l3r7I9W4N6z6TNPWq7fbbz9dmyeMDA0Sqn+GIWzECN2l7PeTOfxhNLbH+k7stP OdeaQDnJ0RMPp9QsUpo9iB4SCyQCZfLTi3ld5LjigSJQ0hV7YDFvyeWesmCRaAP4 PJCHqR3Fa+0S/dSX9U/X0KYzm2cbYIEEYrVa1vlfzyrfVH+iu7At2jw/7nw+TOfi jisdjDZ3hzwhFTxZKOHNQeh+YQFMUdv3Cf2XLUwQQWlCHlhQBy9pWyY1KD5aMKfp mYA11DMTfIFgqsw910qyBHqDwAn9TyojVwVaNK8sL7kHWbQ2pKSwQ63SSvz72MzT E++L9bf1tLeYbezqCoubNddtJIZPL9z6+aG5aPOASWWhvHsDWfjI5cNBcltcJaDg Qp8xyAs89gEm+Qq/0qn0LKMwT7s9K0r2Z2jvmhM+7qKetdMlouqyeuOCYjBVIki5 B1C3NPuUfI1qYY2S91REaCDJi8CJxEnXmWolFKne20c/4V6JNY28d1DppI8Quk6F uUUJJtNzkb12wAbp8PlCqvRXWRlBC/fPilUnpPB0x+W2WI4yq4HOfASie1Vaqe3X 9XB+Whj0nO2maOgdj8Ax =ATl/ -----END PGP SIGNATURE----- --Apple-Mail=_202D21B5-08EE-450C-BC44-254A4ED15CA7--