Subject: Can't build tool chain
To: None <current-users@NetBSD.org>
From: Mark Kirby <mrk@coris.org.uk>
List: current-users
Date: 10/18/2003 14:50:38
Hi,

I'm trying to build current on an i386 machine and am having problems building 
the toolchain. I have downloaded the source code as of 18/10/03. However when 
i run ./build.sh tools it builds for some time then after installing gcc i 
get the following :- 

o/dist/heimdal/lib/asn1                 
-I/usr/src/crypto/dist/heimdal/lib/roken                -DKRB5=1                                
-DHAVE_CONFIG_H  -c -o getarg.lo.o 
/usr/src/crypto/dist/heimdal/lib/roken/getarg.c
mv getarg.lo.o getarg.lo
cc -O -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include  
-I/usr/src/tools/asn1_compile/../compat -DHAVE_CONFIG_H  
-D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -I.                              
-I/usr/src/include/heimdal      -I/usr/src/crypto/dist/heimdal/lib/asn1                 
-I/usr/src/crypto/dist/heimdal/lib/roken                -DKRB5=1                                
-DHAVE_CONFIG_H  -c -o print_version.lo.o 
/usr/src/crypto/dist/heimdal/lib/roken/print_version.c
/usr/src/crypto/dist/heimdal/lib/roken/print_version.c: In function 
`print_version':
/usr/src/crypto/dist/heimdal/lib/roken/print_version.c:45: invalid initializer

*** Failed target:  print_version.lo
*** Failed command: cc -O -I/usr/src/tools/compat/obj 
-I/usr/src/tools/compat/obj/include -I/usr/src/tools/asn1_compile/../compat 
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -I. 
-I/usr/src/include/heimdal -I/usr/src/crypto/dist/heimdal/lib/asn1 
-I/usr/src/crypto/dist/heimdal/lib/roken -DKRB5=1 -DHAVE_CONFIG_H -c -o 
print_version.lo.o /usr/src/crypto/dist/heimdal/lib/roken/print_version.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/asn1_compile

*** Failed target:  dependall
*** Failed command: cd /usr/src/tools/asn1_compile; 
/usr/src/tooldir.NetBSD-1.6.1-i386/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/asn1_compile

*** Failed target:  dependall-asn1_compile
*** Failed command: targ=dependall;dir=asn1_compile; case "$dir" in /*) echo 
"$targ ===> $dir"; cd "$dir"; /usr/src/tooldir.NetBSD-1.6.1-i386/bin/nbmake 
"_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd 
"/usr/src/tools/$dir"; /usr/src/tooldir.NetBSD-1.6.1-i386/bin/nbmake 
"_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools

ERROR: Failed to make tools
*** BUILD ABORTED ***

Am i missing some files?

Any help would be appreciated.

Mark