Subject: Re: crossbuild of current failure
To: None <current-users@netbsd.org>
From: None <pasdiari@eupmt.es>
List: current-users
Date: 04/02/2003 08:44:51
> hi
> 
> am trying to build netbsd/sparc current on a freebsd box:
> 
> [dunc@null src]$ uname -a
> FreeBSD null.thirdeye.org 4.8-RC FreeBSD 4.8-RC #1: Sun Mar 30 04:05:44 BST 
2003    
root@null.thirdeye.org:/usr/src/sys/compile/NULL  i386
> 
> checked out at about 03:00GMT 2/4/2003

First of all, you must know tht it is the current-users mail list of NetBSD. In 
freebsd.org mailing lists you can see:

   freebsd-current Discussion concerning the use of FreeBSD-CURRENT 

> 
> ran build with:
> 
> [dunc@null src]$ ./build.sh -D /usr/home/dunc/netbsdcross/dist -m sparc -R
/usr/home/dunc/netbsdcross/release -T /usr/home/dunc/netbsdcross/tools -U 
release
> 
> 
> the tools don't build, with errors:
> 
> dependall ===> installboot
> rm -f ufs
> ln -f -s /usr/home/dunc/netbsdcross/src/tools/installboot/../../sys/ufs ufs
> /usr/home/dunc/netbsdcross/tools/bin/nbhost-mkdep -a -I.
-I/usr/home/dunc/netbsdcross/src/tools/installboot
-I/usr/home/dunc/netbsdcross/src/tools/installboot/../mips-elf2ecoff
-I/usr/home/dunc/netbsdcross/src/tools/compat/obj
-I/usr/home/dunc/netbsdcross/src/tools/compat/obj/include 
-I/usr/home/dunc/netbsdcross/src/tools/installboot/../compat -DHAVE_CONFIG_H 
-D_FILE_OFFSET_BITS=64 
-I/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot -
I.
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/inst
allboot.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/sum.
c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/mach
ines.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/fsty
pes.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/ffs.
c
/usr/home/dunc/netbsdcross/src/sys/ufs/ffs/ffs_bswap.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/bbin
fo.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/alpha.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/amiga.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/macppc.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/news.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/pmax.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/sparc.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/sparc64.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/sun68k.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/vax.c
/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/arch
/x68k.c
> 
> <*snip*>
> < lots of succesful cc's >
> cc -O -I. -I/usr/home/dunc/netbsdcross/src/tools/installboot
-I/usr/home/dunc/netbsdcross/src/tools/installboot/../mips-elf2ecoff
-I/usr/home/dunc/netbsdcross/src/tools/compat/obj
-I/usr/home/dunc/netbsdcross/src/tools/compat/obj/include 
-I/usr/home/dunc/netbsdcross/src/tools/installboot/../compat -DHAVE_CONFIG_H 
-D_FILE_OFFSET_BITS=64 
-I/usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot -
I.   -o
installboot installboot.lo sum.lo machines.lo fstypes.lo ffs.lo ffs_bswap.lo 
bbinfo.lo
alpha.lo amiga.lo macppc.lo news.lo pmax.lo sparc.lo sparc64.lo sun68k.lo 
vax.lo x68k.lo
-L/usr/home/dunc/netbsdcross/src/tools/compat/obj -lnbcompat -lz
> sum.lo: In function `set_sunsum':
> sum.lo(.text+0x9c): undefined reference to `be16toh'
> sum.lo(.text+0xb9): undefined reference to `be16toh'
> bbinfo.lo: In function `shared_bbinfo_setboot':
> bbinfo.lo(.text+0x4b4): undefined reference to `le32toh'
> bbinfo.lo(.text+0x4c3): undefined reference to `be32toh'
> bbinfo.lo(.text+0x5c0): undefined reference to `htole32'
> bbinfo.lo(.text+0x5cf): undefined reference to `htobe32'
> bbinfo.lo(.text+0x5ec): undefined reference to `htole32'
> bbinfo.lo(.text+0x5fe): undefined reference to `htobe32'
> bbinfo.lo(.text+0x62e): undefined reference to `htole32'
> bbinfo.lo(.text+0x63e): undefined reference to `htobe32'
> alpha.lo: In function `alpha_clearboot':
> alpha.lo(.text+0x1b4): undefined reference to `le64toh'
> alpha.lo(.text+0x1d7): undefined reference to `le64toh'
> alpha.lo(.text+0x27b): undefined reference to `le64toh'
> alpha.lo(.text+0x29e): undefined reference to `le64toh'
> alpha.lo: In function `alpha_setboot':
> alpha.lo(.text+0x69d): undefined reference to `htole64'
> alpha.lo(.text+0x6b0): undefined reference to `htole64'
> alpha.lo(.text+0x738): undefined reference to `le64toh'
> alpha.lo: In function `sun_bootstrap':
> alpha.lo(.text+0x9e4): undefined reference to `htobe16'
> alpha.lo: In function `check_sparc':
> alpha.lo(.text+0xb9b): undefined reference to `htobe16'
> alpha.lo(.text+0xbb2): undefined reference to `htobe16'
> amiga.lo: In function `chksum':
> amiga.lo(.text+0x2a0): undefined reference to `htobe32'
> macppc.lo: In function `writeapplepartmap':
> macppc.lo(.text+0x165): undefined reference to `htobe16'
> macppc.lo(.text+0x179): undefined reference to `htobe16'
> macppc.lo(.text+0x18d): undefined reference to `htobe32'
> macppc.lo(.text+0x1e5): undefined reference to `htobe16'
> macppc.lo(.text+0x1f6): undefined reference to `htobe32'
> macppc.lo(.text+0x209): undefined reference to `htobe32'
> macppc.lo(.text+0x219): undefined reference to `htobe32'
> macppc.lo(.text+0x22c): undefined reference to `htobe32'
> macppc.lo(.text+0x271): undefined reference to `htobe32'
> macppc.lo(.text+0x2c9): undefined reference to `htobe16'
> macppc.lo(.text+0x2da): undefined reference to `htobe32'
> macppc.lo(.text+0x2ed): undefined reference to `htobe32'
> macppc.lo(.text+0x300): undefined reference to `htobe32'
> macppc.lo(.text+0x316): undefined reference to `htobe32'
> macppc.lo(.text+0x355): undefined reference to `htobe32'
> macppc.lo(.text+0x394): more undefined references to `htobe32' follow
> pmax.lo: In function `pmax_clearboot':
> pmax.lo(.text+0x132): undefined reference to `le32toh'
> pmax.lo(.text+0x177): undefined reference to `htole32'
> pmax.lo: In function `pmax_setboot':
> pmax.lo(.text+0x412): undefined reference to `htole32'
> pmax.lo(.text+0x42f): undefined reference to `htole32'
> pmax.lo(.text+0x445): undefined reference to `htole32'
> pmax.lo(.text+0x459): undefined reference to `htole32'
> pmax.lo(.text+0x470): more undefined references to `htole32' follow
> pmax.lo: In function `pmax_setboot':
> pmax.lo(.text+0x4d3): undefined reference to `le32toh'
> pmax.lo(.text+0x4f2): undefined reference to `le32toh'
> pmax.lo(.text+0x511): undefined reference to `le32toh'
> pmax.lo(.text+0x530): undefined reference to `le32toh'
> pmax.lo: In function `load_bootstrap':
> pmax.lo(.text+0x6d2): undefined reference to `le32toh'
> pmax.lo(.text+0x725): more undefined references to `le32toh' follow
> pmax.lo: In function `load_bootstrap':
> pmax.lo(.text+0x7f3): undefined reference to `le16toh'
> pmax.lo(.text+0x814): undefined reference to `le32toh'
> sparc.lo: In function `sparc_setheader':
> sparc.lo(.text+0x19c): undefined reference to `htobe32'
> sparc.lo(.text+0x1ab): undefined reference to `htobe32'
> vax.lo: In function `vax_setboot':
> vax.lo(.text+0x488): undefined reference to `htole16'
> vax.lo(.text+0x49f): undefined reference to `htole16'
> vax.lo(.text+0x4f5): undefined reference to `htole32'
> vax.lo(.text+0x505): undefined reference to `htole32'
> vax.lo(.text+0x51b): undefined reference to `htole32'
> vax.lo(.text+0x532): undefined reference to `le32toh'
> vax.lo(.text+0x545): undefined reference to `le32toh'
> vax.lo(.text+0x555): undefined reference to `le32toh'
> vax.lo(.text+0x562): undefined reference to `htole32'
> vax.lo(.text+0x5c5): undefined reference to `le32toh'
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/dunc/netbsdcross/src/tools/installboot
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/dunc/netbsdcross/src/tools/installboot
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/dunc/netbsdcross/src/tools
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/dunc/netbsdcross/src
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/dunc/netbsdcross/src
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/home/dunc/netbsdcross/src
> 
> ERROR: failed to make release
> *** BUILD ABORTED ***
> 
> 
> can anyone help??
> 
> cheers,
> 
> Dunc
> 

Well, I have a similar error building NetBSD-current yesterday and I fixed it 
cleaning the /usr/src directory completely and then I got the sources by cvs 
checkout. I don't know if it's the best way, but today it goes on...;-)
Best regards,


-------------------------------------------------------------
Doble titulació a la Politècnica:
           http://www.eupmt.es/politecnica/doblet.pdf