Subject: Re: Can't build tool chain
To: None <mark@coris.org.uk>
From: Glendon M. Gross <ggross@socal.rr.com>
List: current-users
Date: 10/18/2003 20:09:50
I was finally able to build.sh distribution as of today after my
previously reported problem in which 
the build.sh output was complaining of lack of a working c++ compiler. 
I'm sure my methods were unconventional
and possibly suspect, but because it was so easy, I want to tell you
what I did in the event that it helps
others as a last resort.

1.)  I found an old 1.6.1 CD I had sitting around and installed comp.tgz
and base.tgz over my working system.  I did
     not replace my running kernel, which is 1.6ZC compiled with SMP
support.
2.)  I reran cvs update -dP in /usr/src.
3.)  Presto, build.sh distribution completed and seems to have built
everything but kernels for 1.6ZC.  The Toolchain
     build appears to have been successful.   On my dual-processor P-II
233 Mhz system with 256 MB RAM, the build took
     approximately 10 hours.
4.)  A kernel build of GENERIC is now in progress.

Regards,

Glendon Gross



Mark Kirby wrote:
> 
> 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