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 ro...@null.thirdeye.org:/usr/src/sys/compile/NULL i386
checked out at about 03:00GMT 2/4/2003
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/installboot.c /usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/sum.c /usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/machines.c /usr/home/dunc/netbsdcross/src/tools/installboot/../../usr.sbin/installboot/fstypes.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/bbinfo.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
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
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
> am trying to build netbsd/sparc current on a freebsd box:
[...]
> 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
I don't think you can do build.sh -U release on freebsd because of
toolchain/20051 (not sure about doing a priviliged build.sh release).
Building distribution should be ok, though (e.g. I built a sparc one
on Mar 31).
SY, Uwe
--
u...@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen
> > 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
> ro...@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
>
Errr, I am building NetBSD as I explained. Surely I shouldn't ask freebsd-current why it didn't work just beacause the host machine is freebsd (not freebsd current i might add)
Dunc
root@prefect:src # ./build.sh -D /store/netbsd/crossbuild/dist -m sparc -R /store/netbsd/crossbuild/release -T /store/netbsd/crossbuild/tools distribution
still fails at the same point, namely:
cc -O -I. -I/store/netbsd/crossbuild/src/tools/installboot -I/store/netbsd/crossbuild/src/tools/installboot/../mips-elf2ecoff -I/store/netbsd/crossbuild/src/tools/compat/obj -I/store/netbsd/crossbuild/src/tools/compat/obj/include -I/store/netbsd/crossbuild/src/tools/installboot/../compat -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/store/netbsd/crossbuild/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/store/netbsd/crossbuild/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'
etc.....
Any ideas?
Dunc
> 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'
> etc.....
Hmm...
$ cd path/to/src-current
$ egrep '[bl]e(16|32)toh' sys/sys/*
sys/sys/endian.h:#define be16toh(x) htobe16(x)
sys/sys/endian.h:#define be32toh(x) htobe32(x)
sys/sys/endian.h:#define le16toh(x) htole16(x)
sys/sys/endian.h:#define le32toh(x) htole32(x)
and on a NetBSD host <sys/endian.h> is pulled in by <sys/types.h>.
For other platforms we have this in tools/compat/compat_defs.h:
#ifndef HAVE_SYS_ENDIAN_H
#if WORDS_BIGENDIAN
#define htobe16(x) (x)
...
#else
#define htobe16(x) bswap16((u_int16_t)(x))
...
#endif
#define be16toh(x) htobe16(x)
...
#endif
and FreeBSD doesn't have <sys/endian.h>
I'll cvs update and try building tools. I have 4.6-STABLE as of
mid-summer 2002, but I don't think that should be relevant.
At least if that indeed have been broken, we know it's been broken
within the past few days (as I said, I did a successful sparc build on
> Any ideas?
Might be better if you first try with the source that is sure to be
made successfully.
I usually look at autobuild.
http://releng.netbsd.org/ab/B_HEAD/arch.html
--
Kei Tsuji
> I'll cvs update and try building tools. I have 4.6-STABLE as of
> mid-summer 2002, but I don't think that should be relevant.
FYI: I just have built tools from the freshly updated -current without
a problem.
>> I'll cvs update and try building tools. I have 4.6-STABLE as of
>> mid-summer 2002, but I don't think that should be relevant.
>
> FYI: I just have built tools from the freshly updated -current without
> a problem.
Feh, it is relevant. I updated to 4.8-STABLE and now they do have
sys/endian.h and i see the failure now. Building with
ac_cv_header_sys_endian_h=no
in the environment seems to work around the problem though.