Cross-build failure on sparc64 for TARGET=amd64

Nathaniel W Filardo nwf at cs.jhu.edu
Fri Oct 29 20:11:14 UTC 2010


Running
> sudo make TARGET_ARCH=amd64 TARGET=amd64 DESTDIR=/usr/x86_64 -j4 buildworld 
on
> FreeBSD sparcslave.priv.oc.ietfng.org 8.1-STABLE FreeBSD 8.1-STABLE #2 r214092=9050e7b-dirty: Thu Oct 21 01:25:54 UTC 2010 root at t@sparcslave.priv.oc.ietfng.org:/usr/obj/usr/src/sys/SLAVKERN  sparc64
with /usr/src at e32025d from git://gitorious.org/freebsd/freebsd.git (svn
http://svn.freebsd.org/base/stable/8@214488) fails with
> cc -O2 -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/amd64/usr/src/tmp/usr\" -DCROSS_COMPILE -I/usr/obj/amd64/usr/src/tmp/usr /src/gnu/usr.bin/cc/cc/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcclibs/libdecnumber -DGCC_DRIVER  -DDEFAULT_TARGET_VERSION=\"4.2.1\" -DDEFAULT_TARGET_MACHINE=\"amd64-undermydesk-freebsd\" -DENABLE_SHARED_LIBGCC   -I/usr/obj/amd64/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/gccspec.c
> /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c: In function 'host_detect_local_cpu':
> /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c:96: error: impossible constraint in 'asm'
> /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c:103: error: impossible constraint in 'asm'
> /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c:113: error: impossible constraint in 'asm'
> /usr/src/gnu/usr.bin/cc/cc/../../../../contrib/gcc/config/i386/driver-i386.c:117: error: impossible constraint in 'asm'
> {standard input}: Assembler messages:
> {standard input}:92: Error: Unknown opcode: `pushfl'
> {standard input}:92: Error: Unknown opcode: `pushfl'
> {standard input}:92: Error: Unknown opcode: `popl'
> {standard input}:92: Error: Illegal operands
> {standard input}:92: Error: Unknown opcode: `xorl'
> {standard input}:92: Error: Unknown opcode: `pushl'
> {standard input}:92: Error: Unknown opcode: `popfl'
> {standard input}:92: Error: Unknown opcode: `pushfl'
> {standard input}:92: Error: Unknown opcode: `popl'
> {standard input}:92: Error: Unknown opcode: `popfl'
> *** Error code 1
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
which looks like it's trying to build some x86 code with the host toolchain,
not the cross tools.

Help? :)
Thanks.
--nwf;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-sparc64/attachments/20101029/06f31ff2/attachment.pgp


More information about the freebsd-sparc64 mailing list