Subject: upgrading gcc build.sh tools from July to October
To: None <current-users@NetBSD.org>
From: William Allen Simpson <wsimpson@greendragon.com>
List: current-users
Date: 10/03/2003 08:29:39
I received a private report that the current build.sh isn't working for 
those with somewhat older -currents.  Due to the amazing amount of 
build problems during the summer, a number of folks (including myself) 
didn't upgrade until things quieted a bit in September.  I was lucky 
that I upgraded on Sep 18, and again on Sep 25/26 -- just before and 
after the GCC switch.

Here's an example report.  Any ideas?

===
  cd /NetBSD2/20030927/src
  ./build.sh -O ../obj -T ../tools tools >& ~/build.20030927.tools &

========================================================================
===> build.sh command: ./build.sh -O ../obj -T ../tools tools
===> build.sh started: Thu Oct  2 10:12:05 EDT 2003
===> Bootstrapping nbmake
checking for sh... /bin/sh
checking for gcc... cc

<snip ... things go smoothly until building gcc>

dependall ===> gcc
Configuring for a i386-unknown-netbsdelf1.6U host.
Created "Makefile" in /NetBSD2/20030927/src/../obj/tools/gcc/build
Configuring libiberty...
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo

<snip ... configure for libiberty goes fine>

checking for working mmap... yes
checking for working strncmp... yes
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
Configuring gcc...
loading cache ../config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking host system type... i386-unknown-netbsdelf1.6U
checking target system type... i386--netbsdelf
checking build system type... i386-unknown-netbsdelf1.6U
checking for gcc... (cached) cc
checking whether the C compiler (cc -O ) works... yes
checking whether the C compiler (cc -O ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
checking whether cc understands -c and -o together... (cached) yes
checking for gnatbind... no
checking for compiler driver that understands Ada... no
checking whether cc accepts -Wno-long-long... yes
checking how to run the C preprocessor... (cached) cc -E
checking for inline... (cached) inline
checking for volatile... yes
checking for long double... yes
checking for long long int... yes
checking for __int64... no
checking for built-in _Bool... no
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking execution character set... ASCII
checking whether make sets ${MAKE}... yes
checking whether a default assembler was specified... no
checking whether a default linker was specified... no
checking for GNU C library... no
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking whether ln works... yes
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... /NetBSD2/20030927/src/../tools/bin/nbinstall -c
-r
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for working stdbool.h... no
checking whether string.h and strings.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for limits.h... (cached) yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/times.h... yes
checking for sys/stat.h... (cached) yes
checking for direct.h... no
checking for malloc.h... (cached) yes
checking for langinfo.h... yes
checking for thread.h... no
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking byte ordering... little-endian
checking floating point format... configure: error: Unknown floating point format
Configure in /NetBSD2/20030927/obj/tools/gcc/build/gcc failed, exiting.

*** Failed target:  .configure_done
*** Failed command: (cd build && CC=cc CFLAGS=-O CPPFLAGS= CXX=c++ CXXFLAGS=-O
INSTALL=/NetBSD2/20030927/src/../tools/bin/nbinstall\ -c\ \ -r LDFLAGS=
LEX=/NetBSD2/20030927/src/../tools/bin/nblex
PATH="/NetBSD2/20030927/src/../tools/bin:$PATH"
YACC=/NetBSD2/20030927/src/../tools/bin/nbyacc sh
/NetBSD2/20030927/src/tools/gcc/../../gnu/dist/gcc/configure --target=i386--netbsdelf
--disable-nls --enable-long-long --disable-multilib --enable-threads
--program-transform-name="s,^,i386--netbsdelf-," --enable-languages="c c++ objc f77"
--prefix=/NetBSD2/20030927/src/../tools --disable-shared)
*** Error code 1

Stop.
nbmake: stopped in /NetBSD2/20030927/src/tools/gcc

*** Failed target:  dependall
*** Failed command: cd /NetBSD2/20030927/src/tools/gcc;
/NetBSD2/20030927/src/../tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /NetBSD2/20030927/src/tools/gcc

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

Stop.
nbmake: stopped in /NetBSD2/20030927/src/tools

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