cross build

Ruslan Ermilov ru at freebsd.org
Mon Apr 14 23:42:29 PDT 2003


On Tue, Apr 15, 2003 at 02:12:17PM +0900, Hidetoshi Shimokawa wrote:
> It was around Nov. 2002. I have upgraded the 4.x box to the latest
> stable but it still fails at the same point.
> 
> Ruslan, any ideas?
> 
Yes, this is a bug in src/tools/build/Makefile.  It should install
the version from src/tools/build/endian.h for RELENG_4.  I will
fix it shortly.  Thanks for the spot.

> /\ Hidetoshi Shimokawa
> \/  simokawa at sat.t.u-tokyo.ac.jp
> PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html
> 
> At Fri, 11 Apr 2003 15:56:29 -0400,
> Jake Burkholder wrote:
> > 
> > Apparently, On Fri, Apr 11, 2003 at 03:06:53PM +0900,
> > 	Hidetoshi Shimokawa said words to the effect of;
> > 
> > > 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
> > 
> > How old is your 4.x box?  You may have to upgrade to a recent -stable to
> > cross build.  There's been some dispute about what versions of 4.x cross
> > builds are to be supported on, and I think recently certain commits which
> > made it possible to cross build on older versions of 4.x were backed out.
> > 
> > If it doesn't work with top of tree -stable I suggest email ru at .
> > 
> > Thanks,
> > Jake
> 
> At Fri, 11 Apr 2003 15:06:53 +0900,
> Hidetoshi Shimokawa wrote:
> > --------------------------------------------------------------
> > >>> 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 at sat.t.u-tokyo.ac.jp
> > PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html

-- 
Ruslan Ermilov		Sysadmin and DBA,
ru at sunbay.com		Sunbay Software AG,
ru at FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-sparc64/attachments/20030415/38240802/attachment.bin


More information about the freebsd-sparc64 mailing list