Subject: Re: Problem building "netbsd-2" cvs extraction on 1.6
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Paul Newhouse <newhouse@rockhead.com>
List: netbsd-help
Date: 09/12/2005 12:25:34
> On Sun, Sep 11, 2005 at 06:27:00PM -0700, Paul Newhouse wrote:
> > > On Sun, Sep 11, 2005 at 07:19:36AM -0700, Paul Newhouse wrote:
> > 
> > ERROR: Failed to make obj-tools
> > *** BUILD ABORTED ***
> > 
> > Where did I go wrong?
> 
> Maybe try to remove this .depend file and try again ?
> 
> -- 
> Manuel Bouyer <bouyer@antioche.eu.org>
>      NetBSD: 26 ans d'experience feront toujours la difference
> --

Thanks, that made it go much farther. Then it hits this:

cc    -O -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long   -DHAVE_CONFIG_H  -o cc1  c-parse.o c-lang.o c-pretty-print.o 
attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o  c-convert.o 
c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o  c-objc-common.o 
c-dump.o libcpp.a  main.o libbackend.a   ../libiberty/libiberty.a
libbackend.a(timevar.o): In function `get_time':
timevar.o(.text+0x2f): undefined reference to `__times13'

*** Failed target:  cc1
*** Failed command: cc -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long -DHAVE_CONFIG_H -o cc1 c-parse.o c-lang.o c-pretty-print.o 
attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o 
c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o 
c-dump.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/tools/gcc/build/gcc

*** Failed target:  all-gcc
*** Failed command: if [ -f ./gcc/Makefile ] ; then r=`${PWDCMD-pwd}`; export 
r; s=`cd /usr/src/tools/gcc/../../gnu/dist/gcc; ${PWDCMD-pwd}`; export s; (cd 
gcc; /usr/src/tooldir.NetBSD-1.6-i386/bin/nbmake -f 
/usr/src/tools/gcc/../Makefile.gnuwrap "AR_FLAGS=rc" "AR_FOR_TARGET=` if [ -f 
$r/binutils/ar ] ; then echo $r/binutils/ar ; else if [ 
'i386-unknown-netbsdelf1.6' = 'i386--netbsdelf' ] ; then echo ar; else t='-e 
s,^,i386--netbsdelf-,'; echo ar | sed -e 's/x/x/' $t ; fi; fi`" 
"AS_FOR_TARGET=` if [ -f $r/gas/as-new ] ; then echo $r/gas/as-new ; elif [ -f 
$r/gcc/xgcc ]; then $r/gcc/xgcc -B$r/gcc/ -B/usr/src/tooldir.NetBSD-1.6-i386/i3
86--netbsdelf/bin/ -B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ 
-isystem /usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include 
-print-prog-name=as ; else if [ 'i386-unknown-netbsdelf1.6' = 
'i386--netbsdelf' ] ; then echo as; else t='-e s,^,i386--netbsdelf-,'; echo as 
| sed -e 's/x/x/' $t ; fi; fi`" "BISON=true" "CC_FOR_BUILD=cc" "CC_FOR_TARGET= 
$r/gcc/xgcc -B$r/gcc/ -B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/bin/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ -isystem 
/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include" "CFLAGS=-O" 
"CFLAGS_FOR_TARGET=-O2 -O" "GCJ_FOR_TARGET= $r/gcc/gcj -B$r/gcc/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/bin/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ -isystem 
/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include" "CXX_FOR_BUILD=c++" 
"CXXFLAGS=-O" "CXXFLAGS_FOR_TARGET=-O" "CXX_FOR_TARGET= $r/gcc/`case $dir in 
libstdc++-v3 | libjava) echo xgcc -shared-libgcc ;; *) echo g++ ;; esac` 
-B$r/gcc/ -nostdinc++ `case $dir in libstdc++-v3 | libjava) ;; *) test ! -f 
$r/i386--netbsdelf/libstdc++-v3/testsuite_flags || /bin/sh 
$r/i386--netbsdelf/libstdc++-v3/testsuite_flags --build-includes;; esac` 
-L$r/i386--netbsdelf/libstdc++-v3/src -L$r/i386--netbsdelf/libs
tdc++-v3/src/.libs -B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/bin/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ -isystem 
/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include" "DESTDIR=" 
"DLLTOOL_FOR_TARGET=` if [ -f $r/binutils/dlltool ] ; then echo 
$r/binutils/dlltool ; else if [ 'i386-unknown-netbsdelf1.6' = 
'i386--netbsdelf' ] ; then echo dlltool; else t='-e s,^,i386--netbsdelf-,'; 
echo dlltool | sed -e 's/x/x/' $t ; fi; fi`" "INSTALL=/usr/src/tooldir.NetBSD-1
.6-i386/bin/nbinstall -c -r" "INSTALL_DATA=/usr/src/tooldir.NetBSD-1.6-i386/bin
/nbinstall -c -r -m 644" "INSTALL_PROGRAM=/usr/src/tooldir.NetBSD-1.6-i386/bin/
nbinstall -c -r " "INSTALL_SCRIPT=/usr/src/tooldir.NetBSD-1.6-i386/bin/nbinstal
l -c -r" "LDFLAGS=" "LEX=`if [ -f $r/flex/flex ] ; then echo $r/flex/flex ; 
else echo flex ; fi`" "LD_FOR_TARGET=` if [ -f $r/ld/ld-new ] ; then echo 
$r/ld/ld-new ; elif [ -f $r/gcc/xgcc ]; then $r/gcc/xgcc -B$r/gcc/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/bin/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ -isystem 
/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include -print-prog-name=ld ; 
else if [ 'i386-unknown-netbsdelf1.6' = 'i386--netbsdelf' ] ; then echo ld; 
else t='-e s,^,i386--netbsdelf-,'; echo ld | sed -e 's/x/x/' $t ; fi; fi`" 
"LIBCFLAGS=-O" "LIBCFLAGS_FOR_TARGET=-O2 -O" "LIBCXXFLAGS=-O 
-fno-implicit-templates" "LIBCXXFLAGS_FOR_TARGET=-O -fno-implicit-templates" 
"M4=`if [ -f $r/m4/m4 ] ; then echo $r/m4/m4 ; else echo m4 ; fi`" 
"MAKE=/usr/src/tooldir.NetBSD-1.6-i386/bin/nbmake -f 
/usr/src/tools/gcc/../Makefile.gnuwrap" "MAKEINFO=/usr/src/tooldir.NetBSD-1.6-i
386/bin/nbmakeinfo --no-split" "NM_FOR_TARGET=` if [ -f $r/binutils/nm-new ] ; 
then echo $r/binutils/nm-new ; elif [ -f $r/gcc/xgcc ]; then $r/gcc/xgcc 
-B$r/gcc/ -B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/bin/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ -isystem 
/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include -print-prog-name=nm ; 
else if [ 'i386-unknown-netbsdelf1.6' = 'i386--netbsdelf' ] ; then echo nm; 
else t='-e s,^,i386--netbsdelf-,'; echo nm | sed -e 's/x/x/' $t ; fi; fi`" 
"RANLIB_FOR_TARGET=` if [ -f $r/binutils/ranlib ] ; then echo 
$r/binutils/ranlib ; else if [ 'i386-unknown-netbsdelf1.6' = 'i386--netbsdelf' 
] ; then if [ x'ranlib' != x ]; then echo ranlib; else echo ranlib; fi; else 
t='-e s,^,i386--netbsdelf-,'; echo ranlib | sed -e 's/x/x/' $t ; fi; fi`" 
"RPATH_ENVVAR=LD_LIBRARY_PATH" "SHELL=/bin/sh" "EXPECT=`if [ -f 
$r/expect/expect ] ; then echo $r/expect/expect ; else echo expect ; fi`" 
"RUNTEST=`if [ -f $s/dejagnu/runtest ] ; then echo $s/dejagnu/runtest ; else 
echo runtest ; fi`" "RUNTESTFLAGS=" "TARGET_SUBDIR=i386--netbsdelf" 
"WINDRES_FOR_TARGET=` if [ -f $r/binutils/windres ] ; then echo 
$r/binutils/windres ; else if [ 'i386-unknown-netbsdelf1.6' = 
'i386--netbsdelf' ] ; then echo windres; else t='-e s,^,i386--netbsdelf-,'; 
echo windres | sed -e 's/x/x/' $t ; fi; fi`" "YACC=`if [ -f $r/bison/bison ] ; 
then echo $r/bison/bison -y -L $s/bison/ ; elif [ -f $r/byacc/byacc ] ; then 
echo $r/byacc/byacc ; else echo yacc ; fi`" "bindir=/usr/src/tooldir.NetBSD-1.6
-i386/bin" "datadir=/usr/src/tooldir.NetBSD-1.6-i386/share" 
"exec_prefix=/usr/src/tooldir.NetBSD-1.6-i386" "includedir=/usr/src/tooldir.Net
BSD-1.6-i386/include" "infodir=/usr/src/tooldir.NetBSD-1.6-i386/info" 
"libdir=/usr/src/tooldir.NetBSD-1.6-i386/lib" "libexecdir=/usr/src/tooldir.NetB
SD-1.6-i386/libexec" "lispdir=" "libstdcxx_incdir=" 
"libsubdir=/usr/src/tooldir.NetBSD-1.6-i386/lib/gcc-lib/i386--netbsdelf/3.3.3" 
"localstatedir=/usr/src/tooldir.NetBSD-1.6-i386/var" 
"mandir=/usr/src/tooldir.NetBSD-1.6-i386/man" "oldincludedir=/usr/include" 
"prefix=/usr/src/tooldir.NetBSD-1.6-i386" "sbindir=/usr/src/tooldir.NetBSD-1.6-
i386/sbin" "sharedstatedir=/usr/src/tooldir.NetBSD-1.6-i386/com" 
"sysconfdir=/usr/src/tooldir.NetBSD-1.6-i386/etc" "tooldir=/usr/src/tooldir.Net
BSD-1.6-i386/i386--netbsdelf" "build_tooldir=/usr/src/tooldir.NetBSD-1.6-i386/i
386--netbsdelf" "gxx_include_dir=/usr/src/tooldir.NetBSD-1.6-i386/include/c++/3
.3.3" "gcc_version=3.3.3" "gcc_version_trigger=/usr/src/gnu/dist/gcc/gcc/versio
n.c" "target_alias=i386--netbsdelf" 'AR=ar' 'AS=as' 'CC=cc' 'CXX=c++' 
'DLLTOOL=$(DLLTOOL_FOR_TARGET)' 'HOST_CC=cc' 'BUILD_PREFIX=' 
'BUILD_PREFIX_1=loser-' 'NM=nm' "`echo 'RANLIB=ranlib' | sed -e 
s/.*=$/XFOO=/`" 'WINDRES=$(WINDRES_FOR_TARGET)' "GCC_FOR_TARGET= $r/gcc/xgcc 
-B$r/gcc/ -B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/bin/ 
-B/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/lib/ -isystem 
/usr/src/tooldir.NetBSD-1.6-i386/i386--netbsdelf/include" 
"CFLAGS_FOR_BUILD=-O" "`echo 'LANGUAGES=' | sed -e s/.*=$/XFOO=/`" "`echo 
'STMP_FIXPROTO=' | sed -e s/.*=$/XFOO=/`" "`echo 'LIMITS_H_TEST=' | sed -e 
s/.*=$/XFOO=/`" "`echo 'LIBGCC2_CFLAGS=' | sed -e s/.*=$/XFOO=/`" "`echo 
'LIBGCC2_DEBUG_CFLAGS=' | sed -e s/.*=$/XFOO=/`" "`echo 'LIBGCC2_INCLUDES=' | 
sed -e s/.*=$/XFOO=/`" "`echo 'ENQUIRE=' | sed -e s/.*=$/XFOO=/`" "`echo 
'STAGE1_CFLAGS=' | sed -e s/.*=$/XFOO=/`" "`echo 'BOOT_CFLAGS=' | sed -e 
s/.*=$/XFOO=/`" all); else true; fi
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/tools/gcc/build

*** Failed target:  .build_done
*** Failed command: (cd build && /usr/src/tooldir.NetBSD-1.6-i386/bin/nbmake 
-f /usr/src/tools/gcc/../Makefile.gnuwrap MACHINE= 
MAKEINFO=/usr/src/tooldir.NetBSD-1.6-i386/bin/nbmakeinfo LIBGCC= LIBGCC1= 
LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS 
BISON=true DESTDIR= INSTALL=/usr/src/tooldir.NetBSD-1.6-i386/bin/nbinstall\ 
-c\ \ -r all-gcc)
*** Error code 1

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

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

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

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

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

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

Thanks,
Paul