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/18/2003 18:11:41
> 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 \
> -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

My build have additionally '-nostdinc -isystem /bsd/dest/usr/include'
(twice) just before the last line...

This is enough to find stdint.h

I haven't dug enough to see where it cod=mes from!

fvdl in the expert on the x86/i386/amd64 stuff.

	David

(did you mean yo raise this twice?

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