Date: Mon, 17 Nov 2014 14:46:43 -0700 From: Warner Losh <imp@bsdimp.com> To: sbruno@freebsd.org Cc: Garrett Cooper <yaneurabeya@gmail.com>, freebsd-arch@freebsd.org Subject: Re: mips misbehaving, not respecting make.conf Message-ID: <E232943F-1319-4C6C-9261-7D9A75DC851B@bsdimp.com> In-Reply-To: <1416246960.1248.22.camel@bruno> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Nov 17, 2014, at 10:56 AM, Sean Bruno <sbruno@ignoranthack.me> wrote: > >>> http://crack.ysv.freebsd.org/data/11-mips-test-default/2014-11-17_02h37m39s/logs/speex-1.2.r1_7,1.log >> >> Thatīs my guess too, based on the configure output from libffi. >> >> ... >> "LD=/usr/bin/ld" "NM=/usr/bin/nm -B" "RANLIB=ranlib >> ... >> >> 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! > > > 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 > > 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: $? = 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: $? = 0 > configure:3392: /nxb-bin/usr/bin/cc -V >&5 > cc: '-V' option must have argument > configure:3403: $? = 1 > configure:3392: /nxb-bin/usr/bin/cc -qversion >&5 > cc: unrecognized option '-qversion' > cc: No input files specified > configure:3403: $? = 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: $? = 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. */ > | > | int > | main () > | { > | > | ; > | 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 > [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E232943F-1319-4C6C-9261-7D9A75DC851B>
