Subject: Crosscompile from FreeBSD -> NetBSD
To: None <tech-ports@NetBSD.ORG>
From: Gerd Truschinski <gt@freebsd.first.gmd.de>
List: tech-ports
Date: 04/14/1996 10:42:04
Hi there,
I am running a FreeBSD system and want to build a SPARC NetBSD system.
I use the latest GNU utils (gcc-2.7.2, binutils-2.6) configured with
--target=sparc-netbsd1.1 --host=i386-freebsd --prefix=/home/cross
but the kernel compile died during the build of libkern. To be more
specific:
sparc-netbsd1.1-gcc -g -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototype
s -I../../../../../../lib/libkern/arch/sparc -I../../. -I../../../../../../arch
-I../../../../../.. -DSUN4M -DTIMEZONE=0 -DDST=0 -DSWAPPAGER -DVNODEPAGER -DDEV
PAGER -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_SUNOS -DCOMPAT_SVR4 -DCOMP
AT_43 -DDDB -DDIAGNOSTIC -DDEBUG -DFFS -DNFSSERVER -DNFSCLIENT -DKERNFS -DFIFO -
DMFS -DFDESC -DUNION -DINET -DTCP_COMPAT_42 -DRASTERCONSOLE -DBLINK -c ../../../
../../../lib/libkern/divdi3.c -o divdi3.o.o
-- divdi3.o.o is OK
sparc-netbsd1.1-ld -x -r divdi3.o.o -o divdi3.o
but divdi3.o is broken, i.e.
/home/cross/sparc-netbsd1.1/bin/nm: divdi3.o: File truncated
The hexdump of this file is added. 'libbfd' try to read 0x1000000 bytes
from divdi3.o in an attempt to read the symbols.
If you need more informations to help me, I will send them to you.
If there is a better newsgroup or mailing list I will try it there.
BTW. the From line in the mailing list archives is broken. My news reader
(elm) could only read the first mail in the latest archive.
/gT/
0000000 008a 0107 0000 0070 | 0000 0000 0000 0000 .......p........
0000010 0000 0018 0000 0000 | 0000 0000 0000 0000 ................
0000020 9de3 bf98 9010 0018 | 9210 0019 9410 001a ................
0000030 9610 001b 80a2 2000 | 1680 0005 b410 2000 ...... ....... .
0000040 92a0 0009 9060 0008 | b410 2001 80a2 a000 .....`.... .....
0000050 1680 0005 0100 0000 | 96a0 000b 9460 000a .............`..
0000060 b41e a001 4000 0000 | 9810 2000 80a6 a000 ....@..... .....
0000070 0280 0004 0100 0000 | 92a0 0009 9060 0008 .............`..
0000080 b010 0008 b210 0009 | 81c7 e008 81e8 0000 ................
0000090 0000 0044 0000 01d0 | 0000 0004 0500 0000 ...D............
00000a0 0000 0000 0000 000e | 0100 0000 0000 0000 ................
00000b0 0000 0019 5f5f 5f64 | 6976 6469 3300 5f5f ....___divdi3.__
00000c0 5f71 6469 7672 656d | 00 _qdivrem.
--
Gerd Truschinski | Yes, this is the sort of scenario I
gt@freebsd.first.gmd.de | think up to amuse myself in the evenings.
emma@cs.tu-berlin.de | -- with confirmation from Larisa