mips misbehaving, not respecting make.conf
Warner Losh
imp at bsdimp.com
Mon Nov 17 21:47:02 UTC 2014
On Nov 17, 2014, at 10:56 AM, Sean Bruno <sbruno at 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20141117/17d43754/attachment.sig>
More information about the freebsd-arch
mailing list