Subject: Re: port-i386/21615: Building bootblock blues
To: None <kwellsch@tampabay.rr.com>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 05/19/2003 10:47:13
On Sun, May 18, 2003 at 06:11:41PM +0100, David Laight wrote:
> > cc -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Os -mcpu=i386 \
> > -ffreestanding  -Werror \
> > -I/usr/src/sys/arch/i386/stand/lib/../../../..//lib/libsa \
> > -DBOOTXX \
> > -I /usr/src/sys/arch/i386/stand/bootxx/bootxx_ufs/../../lib \
> > -I /usr/src/sys/arch/i386/stand/bootxx/bootxx_ufs/obj \
> > -DBOOTXX_SECTORS=15 -DPRIMARY_LOAD_ADDRESS=0x600 \
> > -DSECONDARY_LOAD_ADDRESS=0x10000 \
> > -DX86_BOOT_MAGIC_1="('x' << 24 | 0x86b << 12 | 'm' << 4 | 1)" \
> > -DXXfs_open=ufs_open -DXXfs_close=ufs_close -DXXfs_read=ufs_read \
> > -DXXfs_stat=ufs_stat \
> > -nostdinc \

I wonder if that one is necessary?

> > -D_STANDALONE \
> > -I/usr/src/sys/arch/i386/stand/bootxx/bootxx_ufs/../../../../../ \
> > -DLIBSA_SINGLE_FILESYSTEM=xxfs -DLIBSA_NO_TWIDDLE \
> > -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_FS_WRITE \
> > -DLIBSA_NO_FS_SEEK -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET \
> > -DLIBSA_SINGLE_DEVICE=blkdev -DLIBKERN_OPTIMISE_SPACE \
> > -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" \
> > -D"devopen(f,n,fl)=(*(fl)=(void *)n,0)" \
> > -DLIBSA_NO_DISKLABEL_MSGS    \
> > -c /usr/src/sys/arch/i386/stand/lib/pcio.c

Try removing the -nostdinc from CPPFLAGS in stand/bootxx/Makefile.bootxx
(line 62).

It gets specified again later when building against DESTDIR.

	David

-- 
David Laight: david@l8s.co.uk