Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2003 15:06:53 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        freebsd-sparc@freebsd.org
Subject:   cross build
Message-ID:  <ybsel4936v6.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | raw e-mail | index | archive | help
Is cross compile for sparc64 binaries on FreeBSD-4 i386 supported?

I could do it a weeks ago but now I failed with the following error.

TARGET_ARCH=sparc64 make -j2 buildworld

--------------------------------------------------------------
>>> stage 3: cross tools
....
===> usr.bin/elf2aout
/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/export/dpt/FreeBSD/FreeBSD-current/src/usr.bin/elf2aout created for /export/dpt/FreeBSD/FreeBSD-current/src/usr.bin/elf2aout
rm -f .depend
mkdep -f .depend -a    -I/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/legacy/usr/include  /export/dpt/FreeBSD/FreeBSD-current/src/usr.bin/elf2aout/elf2aout.c
echo elf2aout: /usr/lib/libc.a /usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/legacy/usr/lib/libegacy.a >> .depend
cc -O -pipe -I/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/legacy/usr/include    -c /export/dpt/FreeBSD/FreeBSD-current/src/usr.bin/elf2aout/elf2aout.c
cc -O -pipe -I/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/legacy/usr/include    -L/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/legacy/usr/lib -static -o elf2aout elf2aout.o -legacy
elf2aout.o: In function `main':
elf2aout.o(.text+0x20b): undefined reference to `be64toh'
elf2aout.o(.text+0x257): undefined reference to `be64toh'
elf2aout.o(.text+0x346): undefined reference to `be64toh'
elf2aout.o(.text+0x395): undefined reference to `be64toh'
elf2aout.o(.text+0x3f9): undefined reference to `be64toh'
*** Error code 1

/\ Hidetoshi Shimokawa
\/  simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html



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