Subject: Revert from 4_Stable to 3_Stable Build Problems
To: None <netbsd-users@netbsd.org>
From: None <yancm@sdf.lonestar.org>
List: netbsd-users
Date: 09/17/2006 10:38:38
I'm doing some testing on a VMware i386 machine, though I suspect
my problems are not architecture/virtual machine related.

I've been using a VMWare virtual machine to build and test
the 4_Stable release branch.

I would like to revert the machine back to 3_Stable.

I had no difficulty reverting the CVS tree. That was the easy part.

But when I try to rebuild, I fail in just building tools.

commands in /usr to sync cvs to 3_Stable:
cvs -q up -rnetbsd-3 -PAd src
rm -rf /usr/obj /usr/tools

Build command in /usr/src:
./build.sh -O ../obj -T ../tools -u tools

Ultimately I fail building: /usr/obj/tools/binutils/build/gas
  Making all in po

  cc -DHAVE_CONFIG_H -I.
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas
  -I. -D_GNU_SOURCE -I.
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas
  -I../bfd -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/config
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../include
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/..
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../bfd
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../intl -I../intl
  -DLOCALEDIR="\"/usr/src/../tools/share/locale\""    -W -Wall
  -Wstrict-prototypes -Wmissing-prototypes -O -c
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/app.c
  In file included from
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/as.h:94,
                 from
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/app.c:30:
/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../include/getopt.h:116:
  warning: function declaration isn't a prototype
  In file included from ./targ-cpu.h:1,
                 from
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/config/obj-elf.h:42,
                 from ./obj-format.h:1,
                 from
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/config/te-nbsd.h:24,
                 from ./targ-env.h:1,
                 from
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/as.h:626,
                 from
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/app.c:30:
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/config/tc-i386.h:451:
  error: array type has incomplete element type

  *** Failed target:  app.o

  *** Failed command: cc -DHAVE_CONFIG_H -I.
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas -I. -D_GNU_SOURCE -I.
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas -I../bfd
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/config
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../include
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/..
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../bfd
  -I/usr/src/tools/binutils/../../gnu/dist/binutils/gas/../intl -I../intl
  -DLOCALEDIR="\"/usr/src/../tools/share/locale\"" -W -Wall
  -Wstrict-prototypes -Wmissing-prototypes -O -c
  /usr/src/tools/binutils/../../gnu/dist/binutils/gas/app.c
  *** Error code 1

  Stop.
  nbmake: stopped in /usr/obj/tools/binutils/build/gas


Here are some other errors I'm seeing:
Configuring in gas
configure: creating cache ./config.cache
checking build system type... i386-unknown-netbsdelf4.0.
checking host system type... i386-unknown-netbsdelf4.0.
checking target system type... i386--netbsdelf
checking for i386-unknown-netbsdelf4.0.-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/src/../tools/bin/nbinstall
-c -p -r
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether /usr/src/../tools/bin/nbmake sets $(MAKE)... yes
checking for style of include used by /usr/src/../tools/bin/nbmake... GNU
checking dependency style of cc... none
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... match_pattern
/lib[^/\.]+\.so$
checking for i386-unknown-netbsdelf4.0.-ranlib... ranlib
checking for i386-unknown-netbsdelf4.0.-strip... no
checking for strip... strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... yes
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
finding the maximum length of command line arguments... 98305
checking if cc supports -c -o file.o... yes
checking if cc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking command to parse nm output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
configure: loading cache ./config.cache
checking for i386-unknown-netbsdelf4.0.-gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ANSI C... (cached) none needed
checking for bison... /usr/src/../tools/bin/nbyacc
checking for flex... /usr/src/../tools/bin/nblex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for i386-unknown-netbsdelf4.0.-ranlib... (cached) ranlib
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for ANSI C header files... yes

Help appreciated!
--gene