I tried to install gcc-4.2-20061121 and gcc-4.3-20061118. Both failed at 
exactly the same point. The steps I used to install them were:

# cd /common/src
# tar xjf gcc-4.2-20061121.tar.bz2
# cd /common/compilers/linux/gcc-4.2
# /common/src/gcc-4.2-20061121/configure
--prefix=/common/compilers/linux/gcc-4.2/ --program-suffix=-4.2
--enable-languages=c,c++,fortran
# make -j5 CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap-lean

the same for gcc-4.3.X

both failed at:
===============

x-gnu/bits/stdtr1c++.h.gch/O2g.gch
/common/src/gcc-4.2-20061121/libstdc++-v3/include/precompiled/stdtr1c++.h:30:25:
warning:
/common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O0g.gch:
not used because `__NO_INLINE__' not defined
touch ./x86_64-unknown-linux-gnu/bits/stdtr1c++.h
if [ ! -d "./x86_64-unknown-linux-gnu/bits/extc++.h.gch" ]; then \
  mkdir -p ./x86_64-unknown-linux-gnu/bits/extc++.h.gch; \
fi; \
/common/compilers/linux/gcc-4.2/./gcc/xgcc -shared-libgcc
-B/common/compilers/linux/gcc-4.2/./gcc -nostdinc++
-L/common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/bin/
-B/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/lib/ -isystem
/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/include -isystem
/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/sys-include
-Winvalid-pch -Wno-deprecated -x c++-header -g -O2  -D_GNU_SOURCE
-I/common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/common/src/gcc-4.2-20061121/libstdc++-v3/libsupc++ -O2 -g
/common/src/gcc-4.2-20061121/libstdc++-v3/include/precompiled/extc++.h -o
x86_64-unknown-linux-gnu/bits/extc++.h.gch/O2g.gch
touch ./x86_64-unknown-linux-gnu/bits/extc++.h
make[2]: Leaving directory
`/common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libstdc++-v3/include'
make[1]: Leaving directory `/common/compilers/linux/gcc-4.2'
make: *** [bootstrap-lean] Error 2
===============

Are we, or aren't we allowed to compile bootstrap with make -jX when building 
gcc? 

Then, I reconfigured and recompiled using a single CPU.
For both I got the following error:

=========================================
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu/libmudflap
Running configure in multilib subdir 32
pwd: /common/compilers/linux/gcc-4.2/x86_64-unknown-linux-gnu
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
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 --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-linux-gnu-gcc...
/common/compilers/linux/gcc-4.2/./gcc/xgcc
-B/common/compilers/linux/gcc-4.2/./gcc/
-B/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/bin/
-B/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/lib/ -isystem
/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/include -isystem
/common/compilers/linux/gcc-4.2//x86_64-unknown-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] Error 1
make[1]: Leaving directory `/common/compilers/linux/gcc-4.2'
make: *** [bootstrap-lean] Error 2

# gcc --version
gcc (GCC) 4.1.1 (Gentoo 4.1.1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

=========================================

here is the config.log
======================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:614: checking host system type
configure:635: checking target system type
configure:653: checking build system type
configure:708: checking for a BSD compatible install
configure:761: checking whether ln works
configure:785: checking whether ln -s works
configure:1850: checking for gcc
configure:1963: checking whether the C compiler (gcc  ) works
configure:1979: gcc -o conftest    conftest.c  1>&5
configure:2005: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2010: checking whether we are using GNU C
configure:2038: checking whether gcc accepts -g
configure:2105: checking for gnatbind
configure:2170: checking whether compiler driver understands Ada
configure:2202: checking how to compare bootstrapped objects
configure:2306: checking for correct version of gmp.h
configure:2319: gcc -c -g -O2   conftest.c 1>&5
configure:2332: checking for correct version of mpfr.h
configure:2346: gcc -c -g -O2   conftest.c 1>&5
configure:2360: checking for any version of mpfr.h
configure:2370: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:3481: checking for bison
configure:3521: checking for bison
configure:3560: checking for gm4
configure:3599: checking for flex
configure:3639: checking for flex
configure:3678: checking for makeinfo
configure:3731: checking for expect
configure:3772: checking for runtest
configure:3820: checking for x86_64-unknown-linux-gnu-ar
configure:3895: checking for x86_64-unknown-linux-gnu-as
configure:3970: checking for x86_64-unknown-linux-gnu-dlltool
configure:4001: checking for dlltool
configure:4045: checking for x86_64-unknown-linux-gnu-ld
configure:4120: checking for x86_64-unknown-linux-gnu-lipo
configure:4151: checking for lipo
configure:4195: checking for x86_64-unknown-linux-gnu-nm
configure:4270: checking for x86_64-unknown-linux-gnu-ranlib
configure:4340: checking for x86_64-unknown-linux-gnu-strip
configure:4410: checking for x86_64-unknown-linux-gnu-windres
configure:4441: checking for windres
configure:4485: checking for x86_64-unknown-linux-gnu-objcopy
configure:4560: checking for x86_64-unknown-linux-gnu-objdump
configure:4940: checking for x86_64-unknown-linux-gnu-gcj
configure:4971: checking for gcj
configure:5187: checking for ar
configure:5340: checking for as
configure:5493: checking for dlltool
configure:5547: checking for x86_64-unknown-linux-gnu-dlltool
configure:5578: checking for dlltool
configure:5646: checking for ld
configure:5799: checking for lipo
configure:5853: checking for x86_64-unknown-linux-gnu-lipo
configure:5884: checking for lipo
configure:5952: checking for nm
configure:6105: checking for objdump
configure:6258: checking for ranlib
configure:6411: checking for strip
configure:6564: checking for windres
configure:6618: checking for x86_64-unknown-linux-gnu-windres
configure:6649: checking for windres
configure:6697: checking where to find the target ar
configure:6730: checking where to find the target as
configure:6763: checking where to find the target cc
configure:6796: checking where to find the target c++
configure:6832: checking where to find the target c++ for libstdc++
configure:6868: checking where to find the target dlltool
configure:6901: checking where to find the target gcc
configure:6934: checking where to find the target gcj
configure:6970: checking where to find the target gfortran
configure:7006: checking where to find the target ld
configure:7039: checking where to find the target lipo
configure:7062: checking where to find the target nm
configure:7095: checking where to find the target objdump
configure:7128: checking where to find the target ranlib
configure:7161: checking where to find the target strip
configure:7194: checking where to find the target windres
configure:7255: checking whether to enable maintainer-specific portions of
Makefiles
configure:7304: checking whether -fkeep-inline-functions is supported
configure:7313: gcc -c -g -O2 -fkeep-inline-functions  conftest.c 1>&5

======================


-- 
           Summary: bootstrap failure on Linux AMD64
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dkouroun at cc dot uoi dot gr


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

Reply via email to