Subject: bin/14160: you can't build src/tools with an normal user and even NOT as the root user
To: None <gnats-bugs@gnats.netbsd.org, tv@netbsd.org>
From: None <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 10/05/2001 14:22:28
>Number: 14160
>Category: bin
>Synopsis: you can't build src/tools with an normal user and even NOT as the root user
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 05 05:23:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Bernd Ernesti
>Release: NetBSD-current 05-Oct-2001 12:00 GMT
>Organization:
>Environment:
System: NetBSD arresum.veego.de 1.5Y NetBSD 1.5Y (ARRESUM) #623: Fri Oct 5 12:34:46 CEST 2001 bernd@arresum.veego.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386
Architecture: i386
Machine: i386
>Description:
Try to build the tools in src/tools with an normal user and
notice that it fails in different ways.
>How-To-Repeat:
cd tools; make dependall
endall ===> binstall
CC=/home/work/obj_i386/tooldir.i386/bin/i386--netbsdelf-gcc /home/work/obj_i386/tooldir.i386/bin/mkdep -a -include /home/source/src/tools/binstall/../compat/compat_netbsd.h -Wall -I/home/source/src/tools/binstall/../../usr.bin/xinstall/../../bin/ls -nostdinc -idirafter /usr/include /home/source/src/tools/binstall/../../usr.bin/xinstall/../../bin/ls/stat_flags.c /home/source/src/tools/binstall/../../usr.bin/xinstall/xinstall.c /home/source/src/tools/binstall/../compat/nb_progname.c
/home/work/obj_i386/tooldir.i386/bin/mkdep: not found
*** Error code 127
Stop.
cd tools; make
[..]
binstall, gencat, mkdep, rpcgen, tsort and yacc build but:
all ===> lex
/home/work/obj_i386/tooldir.i386/bin/yacc -d -o parse.c /home/source/src/tools/lex/../../usr.bin/lex/parse.y
make: Exec of `/home/work/obj_i386/tooldir.i386/bin/yacc' failed (No such file or directory)
*** Error code 1
Next try after installing lex by hand:
cd tools; make
binstall, gencat, mkdep, rpcgen, tsort, yacc and lex build but:
all ===> compile_et
cc -O -include /home/source/src/tools/compile_et/../compat/compat_netbsd.h -Wall -I/home/source/src/tools/compile_et/../../usr.bin/compile_et/../../crypto/dist/heimdal/lib/roken -I. -I/home/source/src/tools/compile_et/../../usr.bin/compile_et/../../crypto/dist/heimdal/lib/com_err -I/home/source/src/tools/compile_et/../../usr.bin/compile_et/../../include/heimdal -I/usr/include/krb5 -DHAVE_CONFIG_H -o make-print-version /home/source/src/tools/compile_et/../../usr.bin/compile_et/../../crypto/dist/heimdal/lib/vers/make-print-version.c
./make-print-version print_version.h
/home/work/obj_i386/tooldir.i386/bin/lex /home/source/src/tools/compile_et/../../usr.bin/compile_et/../../crypto/dist/heimdal/lib/com_err/lex.l
make: Exec of `/home/work/obj_i386/tooldir.i386/bin/lex' failed (No such file or directory)
*** Error code 1
Ok, another try after install all the previous build programms:
all ===> toolchain
[..]
mkdir .libs
cc -W -Wall -O -o ld-new ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386nbsd.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$ /home/source/src/tools/toolchain/../../gnu/dist/toolchain/gcc/c-parse.gperf >tmp-gperf.h
gperf: not found
*** Error code 127
A make install doesn't install a 'gperf' so this build has NO chance to ever
finish.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: