[PATCH] Fix intermittent Ada bootstrap failures

Eric Botcazou ebotcazou@adacore.com
Wed Oct 19 19:52:00 GMT 2005


Hi,

So I've been getting these intermittent Ada bootstrap failures with GCC 4.x 
for a while now, typically:

Bootstrap complete - make "quickstrap" to redo last build,
"restage1" through "restage3" to rebuild specific stages,
"restrap" to redo the bootstrap from stage1, or
"cleanstrap" to redo the bootstrap from scratch.
make[1]: Leaving directory `/home/eric/build/gcc/native/gcc'
Comparing stage2 and stage3 of the compiler
make[1]: Entering directory `/home/eric/build/gcc/native/gcc'
rm -f .bad_compare
case "gnucompare" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo 
gnucompare | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in . ada cp fortran java objc objcp treelang build libgcc; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      case $file in \
        ./cc*-checksum.o | libgcc/* ) \
            tail +16c ./$file > tmp-foo1 \
            && tail +16c stage$stage/$file > tmp-foo2 \
            && ( cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 \
                 || echo warning: $file differs || true ) \
          ;; \
        *)  case "gnucompare" in \
          slowcompare* ) \
            tail +16c ./$file > tmp-foo1; \
            tail +16c stage$stage/$file > tmp-foo2 \
              && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 \
                  || echo $file differs >> .bad_compare) || true; \
            ;; \
          fastcompare* ) \
            cmp $file stage$stage/$file 16 16 > /dev/null 2>&1; \
            test $? -eq 1 && echo $file differs >> .bad_compare || true; \
            ;; \
          gnucompare* ) \
            cmp --ignore-initial=16 $file stage$stage/$file > /dev/null 2>&1; 
\
            test $? -eq 1 && echo $file differs >> .bad_compare || true; \
            ;; \
        esac ; \
      esac ; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "gnucompare" in *compare | *compare-lean ) stage=2 ;; * ) stage=`echo 
gnucompare | sed -e 's,^[a-z]*compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "gnucompare" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
fi
make[1]: Leaving directory `/home/eric/build/gcc/native/gcc'
Building runtime libraries
make[1]: Entering directory `/home/eric/build/gcc/native'
make[2]: Entering directory `/home/eric/build/gcc/native'
make[3]: Entering directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty'
make[4]: Entering directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty/testsuite'
make[3]: Leaving directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty'
make[3]: Entering directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/fixincludes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/fixincludes'
make[3]: Entering directory `/home/eric/build/gcc/native/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/eric/build/gcc/native/intl'
make[3]: Entering directory `/home/eric/build/gcc/native/libiberty'
make[4]: Entering directory `/home/eric/build/gcc/native/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/eric/build/gcc/native/libiberty/testsuite'
make[3]: Leaving directory `/home/eric/build/gcc/native/libiberty'
make[3]: Entering directory `/home/eric/build/gcc/native/libcpp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/eric/build/gcc/native/libcpp'
make[3]: Entering directory `/home/eric/build/gcc/native/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" 
"CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " 
"INSTALL=/usr/bin/install -c""INSTALL_DATA=/usr/bin/install -c -m 644" 
"INSTALL_PROGRAM=/usr/bin/install -c""INSTALL_SCRIPT=/usr/bin/install -c" 
"LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" 
"MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" 
"EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" 
"exec_prefix=/home/eric/install/gcc" "infodir=/home/eric/install/gcc/info" 
"libdir=/home/eric/install/gcc/lib" "prefix=/home/eric/install/gcc" 
"tooldir=/home/eric/install/gcc/x86_64-suse-linux" "AR=ar" "AS=as" "CC=gcc" 
"CXX=c++" 
"LD=/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld" 
"LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all 
multi-do # make
make[3]: Leaving directory `/home/eric/build/gcc/native/zlib'
make[2]: Leaving directory `/home/eric/build/gcc/native'
make[2]: Entering directory `/home/eric/build/gcc/native'
mkdir -p -- ./fastjar
Configuring in ./fastjar
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-suse-linux-gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for strip... /usr/bin/strip
checking for chmod... /bin/chmod
checking whether to enable maintainer-specific portions of Makefiles... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for stdlib.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for ftruncate... yes
checking for _chsize... no
checking for off_t... yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking if mkdir takes one argument... no
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking for long long... yes
checking for long long... (cached) yes
checking size of long long... 8
checking whether byte ordering is bigendian... no
checking whether to place generated files in the source directory... no
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating install-defs.sh
config.status: creating config.h
config.status: executing depfiles commands
make[3]: Entering directory `/home/eric/build/gcc/native/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" 
"CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " 
"INSTALL=/usr/bin/install -c""INSTALL_DATA=/usr/bin/install -c -m 644" 
"INSTALL_PROGRAM=/usr/bin/install -c""INSTALL_SCRIPT=/usr/bin/install -c" 
"LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" 
"MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" 
"EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" 
"exec_prefix=/home/eric/install/gcc" "infodir=/home/eric/install/gcc/info" 
"libdir=/home/eric/install/gcc/lib" "prefix=/home/eric/install/gcc" 
"tooldir=/home/eric/install/gcc/x86_64-suse-linux" "AR=ar" "AS=as" "CC=gcc" 
"CXX=c++" 
"LD=/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld" 
"LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all 
multi-do # make
make[3]: Leaving directory `/home/eric/build/gcc/native/zlib'
make[3]: Entering directory `/home/eric/build/gcc/native/libiberty'
make[4]: Entering directory `/home/eric/build/gcc/native/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/eric/build/gcc/native/libiberty/testsuite'
make[3]: Leaving directory `/home/eric/build/gcc/native/libiberty'
make[3]: Entering directory `/home/eric/build/gcc/native/fastjar'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" 
"CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " 
"INSTALL=/usr/bin/install -c""INSTALL_DATA=/usr/bin/install -c -m 644" 
"INSTALL_PROGRAM=/usr/bin/install -c""INSTALL_SCRIPT=/usr/bin/install -c" 
"JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " 
"MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 
--split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" 
"exec_prefix=/home/eric/install/gcc" "infodir=/home/eric/install/gcc/info" 
"libdir=/home/eric/install/gcc/lib" "prefix=/home/eric/install/gcc" "AR=ar" 
"AS=as" "CC=gcc" "CXX=c++" 
"LD=/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld" 
"LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=""RANLIB=ranlib" "DESTDIR=" all-am
make[4]: Entering directory `/home/eric/build/gcc/native/fastjar'
(echo "@set version-GCC 4.1.0"; \
 if [ "experimental" = "experimental" ]; \
 then echo "@set DEVELOPMENT"; \
 else echo "@clear DEVELOPMENT"; \
 fi) > gcc-vers.texiT
mv -f gcc-vers.texiT gcc-vers.texi
restore=: && backupdir=".am$$" && \
rm -rf $backupdir && mkdir $backupdir && \
for f in fastjar.info fastjar.info-[0-9] fastjar.info-[0-9][0-9] 
fastjar.i[0-9]fastjar.i[0-9][0-9]; do \
  if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
if makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000  
-I /home/eric/cvs/gcc/fastjar/../gcc/doc/include  
-I /home/eric/cvs/gcc/fastjar \
 -o fastjar.info `test -f 'fastjar.texi' || echo 
'/home/eric/cvs/gcc/fastjar/'`fastjar.texi; \
then \
  rc=0; \
else \
  rc=$?; \
  $restore $backupdir/* `echo "./fastjar.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include -DWITH_SHIFT_DOWN  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
fastjar-jartool.o -MD -MP -MF ".deps/fastjar-jartool.Tpo" -c -o 
fastjar-jartool.o `test -f 'jartool.c' || echo 
'/home/eric/cvs/gcc/fastjar/'`jartool.c; \
then mv -f ".deps/fastjar-jartool.Tpo" ".deps/fastjar-jartool.Po"; else rm -f 
".deps/fastjar-jartool.Tpo"; exit 1; fi
/home/eric/cvs/gcc/fastjar/jartool.c: In function `help':
/home/eric/cvs/gcc/fastjar/jartool.c:2240: warning: string length `594' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fastjar/jartool.c:2240: warning: string length `593' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fastjar/jartool.c: In function `list_jar':
/home/eric/cvs/gcc/fastjar/jartool.c:2020: warning: pointer targets in passing 
arg 1 of `__builtin_puts' differ in signedness
/home/eric/cvs/gcc/fastjar/jartool.c:2027: warning: pointer targets in passing 
arg 1 of `__builtin_puts' differ in signedness
/home/eric/cvs/gcc/fastjar/jartool.c:2166: warning: pointer targets in passing 
arg 1 of `__builtin_puts' differ in signedness
/home/eric/cvs/gcc/fastjar/jartool.c:2173: warning: pointer targets in passing 
arg 1 of `__builtin_puts' differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include -DWITH_SHIFT_DOWN  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
fastjar-dostime.o -MD -MP -MF ".deps/fastjar-dostime.Tpo" -c -o 
fastjar-dostime.o `test -f 'dostime.c' || echo 
'/home/eric/cvs/gcc/fastjar/'`dostime.c; \
then mv -f ".deps/fastjar-dostime.Tpo" ".deps/fastjar-dostime.Po"; else rm -f 
".deps/fastjar-dostime.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include -DWITH_SHIFT_DOWN  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
fastjar-compress.o -MD -MP -MF ".deps/fastjar-compress.Tpo" -c -o 
fastjar-compress.o `test -f 'compress.c' || echo 
'/home/eric/cvs/gcc/fastjar/'`compress.c; \
then mv -f ".deps/fastjar-compress.Tpo" ".deps/fastjar-compress.Po"; else rm 
-f".deps/fastjar-compress.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include -DWITH_SHIFT_DOWN  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
fastjar-pushback.o -MD -MP -MF ".deps/fastjar-pushback.Tpo" -c -o 
fastjar-pushback.o `test -f 'pushback.c' || echo 
'/home/eric/cvs/gcc/fastjar/'`pushback.c; \
then mv -f ".deps/fastjar-pushback.Tpo" ".deps/fastjar-pushback.Po"; else rm 
-f".deps/fastjar-pushback.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include -DWITH_SHIFT_DOWN  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
fastjar-shift.o -MD -MP -MF ".deps/fastjar-shift.Tpo" -c -o fastjar-shift.o 
`test -f 'shift.c' || echo '/home/eric/cvs/gcc/fastjar/'`shift.c; \
then mv -f ".deps/fastjar-shift.Tpo" ".deps/fastjar-shift.Po"; else rm -f 
".deps/fastjar-shift.Tpo"; exit 1; fi
gcc -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes 
-Wwrite-strings-g -O2   -o fastjar  fastjar-jartool.o fastjar-dostime.o 
fastjar-compress.o fastjar-pushback.o fastjar-shift.o ./../zlib/libz.a 
-L/../zlib/ ../libiberty/libiberty.a
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT jargrep.o 
-MD -MP -MF ".deps/jargrep.Tpo" -c -o 
jargrep.o /home/eric/cvs/gcc/fastjar/jargrep.c; \
then mv -f ".deps/jargrep.Tpo" ".deps/jargrep.Po"; else rm -f 
".deps/jargrep.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT dostime.o 
-MD -MP -MF ".deps/dostime.Tpo" -c -o 
dostime.o /home/eric/cvs/gcc/fastjar/dostime.c; \
then mv -f ".deps/dostime.Tpo" ".deps/dostime.Po"; else rm -f 
".deps/dostime.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
compress.o -MD -MP -MF ".deps/compress.Tpo" -c -o 
compress.o/home/eric/cvs/gcc/fastjar/compress.c; \
then mv -f ".deps/compress.Tpo" ".deps/compress.Po"; else rm -f 
".deps/compress.Tpo"; exit 1; fi
/home/eric/cvs/gcc/fastjar/compress.c: In function `write_data':
/home/eric/cvs/gcc/fastjar/compress.c:142: warning: unused parameter `ze'
if gcc -DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fastjar -I.  -I. 
-I/home/eric/cvs/gcc/fastjar -I/home/eric/cvs/gcc/fastjar/../zlib 
-I/home/eric/cvs/gcc/fastjar/../include  -W -Wall -pedantic 
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -MT 
pushback.o -MD -MP -MF ".deps/pushback.Tpo" -c -o 
pushback.o/home/eric/cvs/gcc/fastjar/pushback.c; \
then mv -f ".deps/pushback.Tpo" ".deps/pushback.Po"; else rm -f 
".deps/pushback.Tpo"; exit 1; fi
gcc -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes 
-Wwrite-strings-g -O2   -o grepjar  jargrep.o dostime.o compress.o 
pushback.o ./../zlib/libz.a-L/../zlib/ ../libiberty/libiberty.a
perl /home/eric/cvs/gcc/fastjar/../contrib/texi2pod.pl -D 
fastjar /home/eric/cvs/gcc/fastjar/fastjar.texi > fastjar.pod
(pod2man --center="GNU" --release="gcc-4.1.0" --section=1 fastjar.pod > 
fastjar.1.T$$ && \
        mv -f fastjar.1.T$$ fastjar.1) || \
        (rm -f fastjar.1.T$$ && exit 1)
perl /home/eric/cvs/gcc/fastjar/../contrib/texi2pod.pl -D 
grepjar /home/eric/cvs/gcc/fastjar/fastjar.texi > grepjar.pod
(pod2man --center="GNU" --release="gcc-4.1.0" --section=1 grepjar.pod > 
grepjar.1.T$$ && \
        mv -f grepjar.1.T$$ grepjar.1) || \
        (rm -f grepjar.1.T$$ && exit 1)
rm fastjar.pod grepjar.pod
make[4]: Leaving directory `/home/eric/build/gcc/native/fastjar'
make[3]: Leaving directory `/home/eric/build/gcc/native/fastjar'
mkdir -p -- ./fixincludes
Configuring in ./fixincludes
configure: creating cache ./config.cache
checking build system type... x86_64-suse-linux-gnu
checking host system type... x86_64-suse-linux-gnu
checking target system type... x86_64-suse-linux-gnu
checking for x86_64-suse-linux-gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc supports -W... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wold-style-definition... no
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -pedantic -Wno-long-long... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... yes
checking for fgetc_unlocked... yes
checking for fgets_unlocked... yes
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... yes
checking for fputs_unlocked... yes
checking for fread_unlocked... yes
checking for fwrite_unlocked... yes
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking whether abort is declared... yes
checking whether errno is declared... no
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgetc_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking for an ANSI C-conforming const... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h
make[3]: Entering directory `/home/eric/build/gcc/native/fixincludes'
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/fixincl.c
In file included from /home/eric/cvs/gcc/fixincludes/fixincl.c:101:
/home/eric/cvs/gcc/fixincludes/fixincl.x:76: warning: string length `4662' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fixincludes/fixincl.x:224: warning: string length `552' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fixincludes/fixincl.x:269: warning: string length `532' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fixincludes/fixincl.x:313: warning: string length `808' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fixincludes/fixincl.x:399: warning: string length `5139' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fixincludes/fixincl.x:2419: warning: string length `729' is 
greater than the length `509' ISO C89 compilers are required to support
/home/eric/cvs/gcc/fixincludes/fixincl.x:7184: warning: string length `575' is 
greater than the length `509' ISO C89 compilers are required to support
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/fixtests.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/fixfixes.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/server.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/procopen.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/fixlib.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes-Wmissing-format-attribute -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -I. -I/home/eric/cvs/gcc/fixincludes -I../include 
-I/home/eric/cvs/gcc/fixincludes/../include /home/eric/cvs/gcc/fixincludes/fixopts.c
gcc -g -O2  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o 
fixlib.o fixopts.o ../libiberty/libiberty.a
echo timestamp > full-stamp
srcdir="/home/eric/cvs/gcc/fixincludes" /bin/sh /home/eric/cvs/gcc/fixincludes/mkfixinc.sh 
x86_64-suse-linux-gnu
sed -e 's/@gcc_version@/4.1.0/' < mkheaders.almost > mkheadersT
mv -f mkheadersT mkheaders
make[3]: Leaving directory `/home/eric/build/gcc/native/fixincludes'
make[3]: Entering directory `/home/eric/build/gcc/native/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/eric/build/gcc/native/intl'
make[3]: Entering directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty'
make[4]: Entering directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty/testsuite'
make[3]: Leaving directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/libiberty'
make[3]: Entering directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/fixincludes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory 
`/home/eric/build/gcc/native/build-x86_64-suse-linux/fixincludes'
make[3]: Entering directory `/home/eric/build/gcc/native/libcpp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/eric/build/gcc/native/libcpp'
make[3]: Entering directory `/home/eric/build/gcc/native/gcc'
gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H  
gcov.o intl.o version.o 
errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a -o gcov
gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H  
gcov-dump.oversion.o errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a 
-o gcov-dump
gnatbind -C -I- -I. -Iada -I/home/eric/cvs/gcc/gcc/ada -o ada/b_gnat1.c -n 
ada/gnat1drv.ali
fatal error: file gnat1drv.ali is incorrectly formatted
make sure you are using consistent versions of gcc/gnatbind
9.   P SS
        |
make[3]: *** [ada/b_gnat1.c] Error 4
make[3]: Leaving directory `/home/eric/build/gcc/native/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory `/home/eric/build/gcc/native'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eric/build/gcc/native'
make: *** [bootstrap] Error 2


I had thought this was quite a subtle problem that would require me to dig 
really deep and finally bit the bullet today... only to stumble on an obvious 
thinko in the toplevel Makefile that is the cause of the problem.   Is that 
obvious enough for me to install on mainline and 4.0 branch?


2005-10-19  Eric Botcazou  <ebotcazou@adacore.com>

	* Makefile.in (TARGET-gcc): Fix thinko.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toplevel_gcc_rule.diff
Type: text/x-diff
Size: 800 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20051019/29fbb1af/attachment.bin>


More information about the Gcc-patches mailing list