On my x86_64 system, sometimes but not all the time, the following happens:

$ configure --prefix=/home/guerby/work/gcc/install/install-20041211T175809
--enable-languages=c --enable-__cxa_atexit --disable-nls --enable-threads=posix
--enable-checking

$ make bootstrap
[...]
stage1/xgcc -Bstage1/
-B/home/guerby/work/gcc/install/install-20041211T175809/x86_64-unknown-linux-gnu/bin/
  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H  gcov.o intl.o
version.o errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a -o gcov
stage1/xgcc -Bstage1/
-B/home/guerby/work/gcc/install/install-20041211T175809/x86_64-unknown-linux-gnu/bin/
  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H  gcov-dump.o
version.o errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a -o gcov-dump
[...]
stage2/xgcc -Bstage2/
-B/home/guerby/work/gcc/install/install-20041211T175809/x86_64-unknown-linux-gnu/bin/
  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H  gcov.o intl.o
version.o errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a -o gcov
stage2/xgcc -Bstage2/
-B/home/guerby/work/gcc/install/install-20041211T175809/x86_64-unknown-linux-gnu/bin/
  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H  gcov-dump.o
version.o errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a -o gcov-dump
[...]
make[2]: Entering directory 
`/home/guerby/work/gcc/build/build-20041211T175809/gcc'
gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes  -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  -fno-common   -DHAVE_CONFIG_H  gcov-dump.o version.o
errors.o ../libcpp/libcpp.a   ../libiberty/libiberty.a -o gcov-dump
[...]

gcov and gcov-dump are relinked with the base compiler which seems wrong.
As explained in http://gcc.gnu.org/ml/gcc/2004-12/msg00106.html
when ada is enabled, gnat1drv relink with the base compiler is retried
which leads to a bootstrap failure.

This never happened before 20041120.

Is anyone seeing this? Just grep your build log with:

$ cat log|grep gcov|grep libi

and look at the last lines.

-- 
           Summary: x86_64 spurious relink of gcov and gcov-dump with the
                    base compiler
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laurent at guerby dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18939

Reply via email to