Subject: toolchain/24441: tools/installboot/ffs.lo build fails
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <chuck_tuffli@agilent.com>
List: netbsd-bugs
Date: 02/16/2004 01:08:56
>Number: 24441
>Category: toolchain
>Synopsis: tools/installboot/ffs.lo build fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 16 01:10:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Chuck Tuffli
>Release: -current
>Organization:
Agilent Technologies
>Environment:
FreeBSD cre85086tuf.rose.agilent.com 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Nov 13 09:48:07 PST 2002 root@cre85086tuf.rose.agilent.com:/usr/src/sys/compile/SND i386
>Description:
Building tools for -current on FreeBSD 4.7 fails in tools/installboot because the file
usr.sbin/installboot/ffs.c
picks up <sys/types.h> from the host and runs into a redefinition of `ufs_daddr_t'.
There are also subsequent errors about `SBLOCKSIZE' undeclared. Build output below
...
# compile installboot/fstypes.lo
cc -O -I. -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../mips-elf2ecoff -I/usr/home/ctuffli/dev/netbsd/src/tools/compat/obj -I/usr/home/ctuffli/dev/netbsd/src/tools/compat/obj/include -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot -I. -c -o fstypes.lo.o /usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/fstypes.c
mv fstypes.lo.o fstypes.lo
# compile installboot/ffs.lo
cc -O -I. -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../mips-elf2ecoff -I/usr/home/ctuffli/dev/netbsd/src/tools/compat/obj -I/usr/home/ctuffli/dev/netbsd/src/tools/compat/obj/include -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot -I. -c -o ffs.lo.o /usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c
In file included from /usr/home/ctuffli/dev/netbsd/src/tools/installboot/../compat/ufs/ufs/dinode.h:3,
from /usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c:61:
/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../compat/ufs/ufs/../../../../sys/ufs/ufs/dinode.h:69: redefinition of `ufs_daddr_t'
/usr/include/sys/types.h:91: `ufs_daddr_t' previously declared here
/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c: In function `ffs_find_disk_blocks_ufs1':
/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c:116: `SBLOCKSIZE' undeclared (first use in this function)
/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c:116: (Each undeclared identifier is reported only once
/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c:116: for each function it appears in.)
...
*** Failed target: ffs.lo
*** Failed command: cc -O -I. -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../mips-elf2ecoff -I/usr/home/ctuffli/dev/netbsd/src/tools/compat/obj -I/usr/home/ctuffli/dev/netbsd/src/tools/compat/obj/include -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -I/usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot -I. -c -o ffs.lo.o /usr/home/ctuffli/dev/netbsd/src/tools/installboot/../../usr.sbin/installboot/ffs.c
*** Error code 1
Stop.
nbmake: stopped in /usr/home/ctuffli/dev/netbsd/src/tools/installboot
*** Failed target: dependall
*** Failed command: cd /usr/home/ctuffli/dev/netbsd/src/tools/installboot; /usr/home/ctuffli/dev/netbsd/src/tooldir.FreeBSD-4.7-RELEASE-i386/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /usr/home/ctuffli/dev/netbsd/src/tools/installboot
*** Failed target: dependall-installboot
*** Failed command: targ=dependall;dir=installboot; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/home/ctuffli/dev/netbsd/src/tooldir.FreeBSD-4.7-RELEASE-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/home/ctuffli/dev/netbsd/src/tools/$dir"; /usr/home/ctuffli/dev/netbsd/src/tooldir.FreeBSD-4.7-RELEASE-i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /usr/home/ctuffli/dev/netbsd/src/tools
ERROR: Failed to make tools
*** BUILD ABORTED ***
>How-To-Repeat:
./build.sh -U -D /opt/netbsd -m i386 -V MKCATPAGES=no -V MKDOC=no -V MKINFO=no -V MKMAN=no tools
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: