Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 09:56:00 -0800
From:      Sean Bruno <sbruno@ignoranthack.me>
To:        Garrett Cooper <yaneurabeya@gmail.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: mips misbehaving, not respecting make.conf
Message-ID:  <1416246960.1248.22.camel@bruno>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

> > 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

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-----
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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1416246960.1248.22.camel>