Subject: Toolchain rebuild problems
To: None <>
From: Mark White <>
List: current-users
Date: 02/11/2002 13:09:22
I'm have difficulty rebuilding the i386 toolchain; I've
tried many things with a -current of a couple weeks ago, and
of today.

I get a range of different errors, depending exactly what I
do.  On "make UPDATE=1 build" it fails with:

   install ===> host-mkdep
   cp host-mkdep /home/src/toolchain/bin/nbhost-mkdep
   cp: /home/src/toolchain/bin/nbhost-mkdep: No such file or directory

which may be the root of problems.  If I create
toolchain/bin for it, it dies either at

   cc -O -I/home/src/src/tools/compat/obj -I/home/src/src/tools/compat/obj/include  -I/usr/src/tools/binstall/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I/usr/src/tools/binstall/../../usr.bin/xinstall/../../bin/ls   -o xinstall xinstall.lo -L/home/src/src/tools/compat/obj -lnbcompat -lutil -lz
    /usr/bin/ld: cannot find -lnbcompat
    collect2: ld returned 1 exit status

or (if I use at

    dependall ===> compat
    cc -O  -I. -I./include -I/home/src/src/tools/compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o pread.lo /home/src/src/tools/compat/pread.c
    /home/src/src/tools/compat/pread.c: In function `pread':
    /home/src/src/tools/compat/pread.c:56: `errno' undeclared (first use in this function)

Almost certainly I'm doing something stupid.  I've built
-current with toolchain lots of times on this machine; it
started going wrong mid-build one time, and since then I've
not been able to bootstrap it, despite updating, make
distcleaning and so on.

Any help appreciated.

Mark <><