Subject: compilation of cdboot?
To: None <port-i386@netbsd.org>
From: James Hartley <jjhartley@gmail.com>
List: port-i386
Date: 09/13/2007 14:15:33
I got the following error when attempting to compile cdboot in
/usr/src/sys/arch/i386/stand/cdboot:

$ cd /usr/src/sys/arch/i386/stand/cdboot
$ sudo make
rm -f machine
ln -s /usr/src/sys/arch/i386/stand/cdboot/../../../../arch/i386/include machine
rm -f x86
ln -s /usr/src/sys/arch/i386/stand/cdboot/../../../../arch/x86/include x86
#   compile  cdboot/cdboot.o
/usr/src/tooldir.NetBSD-4.0_RC1-i386/bin/i386--netbsdelf-gcc    -I.
-I/usr/src/sys/arch/i386/stand/cdboot/../lib
-I/usr/src/sys/arch/i386/stand/cdboot/../../../..
-DPRIMARY_LOAD_ADDRESS=0x600 -DSECONDARY_LOAD_ADDRESS=0x10000
-nostdinc -isystem /usr/include  -c -traditional-cpp    cdboot.S
sh: /usr/src/tooldir.NetBSD-4.0_RC1-i386/bin/i386--netbsdelf-gcc: not found
*** Error code 127

Stop.
make: stopped in /usr/src/sys/arch/i386/stand/cdboot
$

Having already built the toolchain somewhere else, I could get around
the error above by symlinking the appropriate directory in /usr/src,
but is this an indication of a deeper configuration problem on my
part?

Thanks for any candor which can be shared.

Jim