gcc 4.2.3 : make: *** [bootstrap] Error 2
\ Dennis Clarke (11 Mar 2008)

2 msgminor mistake in http://gcc.gnu.org/gcc-4.3/cha...
15 msglibtool for shared objects?
1 msganeurin chandras hammond griswold
1 msgAdding new section attribute
3 msgThe effects of closed loop SSA and Scalar Evolu...
2 msghowto run cross testings with help of translators
1 msggcc-4.1-20080310 is now available
6 msgGNAT on SVN Trunk
2 msgCRX and CR16 port maintainer
2 msgNew picoChip port and maintainers
11 msgvectorizer default in 4.3.0 changes document mi...
2 msgGCC 4.3.0-20080228 (powerpc-linux-gnuspe) ICE o...
10 msgRTL definition
7 msgPossible gcc-4.3 regression wrt bootstrapping t...
19 msg[tuples] gimple_assign_subcode for GIMPLE_SINGL...
3 msgCombine repeats matching on insn pairs and will...
1 msggcc-4.4-20080307 is now available
1 msgNeed link ln -s ../lib64/libgomp.spec libgomp.s...
15 msgRFC: Idea for code size reduction
Subject:gcc 4.2.3 : make: *** [bootstrap] Error 2
Group:Gcc
From:Dennis Clarke
Date:11 Mar 2008



I had sent this to the wrong maillist I think. Yet another error. :-\

In any case .. here it is :

-------------------------------------------------------------------
Subject: gcc 4.2.3 : make: *** [bootstrap] Error 2
From: "Dennis Clarke" <dclarke>
Date: Tue, March 11, 2008 16:02

This error occurs well into the stage 2 of the bootstrap process.

Here are the specifics :

configure line used was

../gcc-4.2.3/configure --with-as=/home/dclarke/local/bin/as
--with-ld=/home/dclarke/local/bin/ld --enable-threads=posix --disable-nls
--prefix=/home/dclarke/local --with-local-prefix=/home/dclarke/local
--enable-shared --enable-languages=c,c++,objc,fortran
--with-gmp=/home/dclarke/local --with-mpfr=/home/dclarke/local
--enable-bootstrap

GNU Binutils 2.18
GNU Make 3.81
flex 2.5.35
autoconf (GNU Autoconf) 2.61
automake (GNU automake) 1.10.1

Both GMP and MPFR are built and pass all tests and the libraries are created
fine :

gmp-4.2.2
mpfr-2.3.1

dclarke$ ls -lap
$HOME/local/lib | grep -E "gmp|mpfr"
-rw-r--r-- 1 dclarke csw 592016 Mar 9 17:48 libgmp.a
-rwxr-xr-x 1 dclarke csw 794 Mar 9 17:48 libgmp.la
lrwxrwxrwx 1 dclarke csw 15 Mar 9 17:48 libgmp.so -> libgmp.so.3.4.2
lrwxrwxrwx 1 dclarke csw 15 Mar 9 17:48 libgmp.so.3 -> libgmp.so.3.4.2
-rwxr-xr-x 1 dclarke csw 317869 Mar 9 17:48 libgmp.so.3.4.2
-rw-r--r-- 1 dclarke csw 1812424 Mar 9 22:06 libmpfr.a
-rwxr-xr-x 1 dclarke csw 985 Mar 9 22:06 libmpfr.la
lrwxrwxrwx 1 dclarke csw 16 Mar 9 22:06 libmpfr.so -> libmpfr.so.1.1.1
lrwxrwxrwx 1 dclarke csw 16 Mar 9 22:06 libmpfr.so.1 -> libmpfr.so.1.1.1
-rwxr-xr-x 1 dclarke csw 985371 Mar 9 22:06 libmpfr.so.1.1.1
dclarke$



existing GCC was :

dclarke$ gcc -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --disable-softfloat
--enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32
--enable-checking=release powerpc-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Stage 1 of the bootstrap process resulted in this :

dclarke$
/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/gcc/xgcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.2.3/configure --with-as=/home/dclarke/local/bin/as
--with-ld=/home/dclarke/local/bin/ld --enable-threads=posix --disable-nls
--prefix=/home/dclarke/local --with-local-prefix=/home/dclarke/local
--enable-shared --enable-languages=c,c++,objc,fortran
--with-gmp=/home/dclarke/local --with-mpfr=/home/dclarke/local
--enable-bootstrap
Thread model: posix
gcc version 4.2.3


The ERROR in stage 2 was thus :


checking for powerpc-unknown-linux-gnu-gfortran...
/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/./gcc/gfortran
-B/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/./gcc/
-B/home/dclarke/local/powerpc-unknown-linux-gnu/bin/
-B/home/dclarke/local/powerpc-unknown-linux-gnu/lib/ -isystem
/home/dclarke/local/powerpc-unknown-linux-gnu/include -isystem
/home/dclarke/local/powerpc-unknown-linux-gnu/sys-include
checking whether we are using the GNU Fortran compiler... no
checking whether
/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/./gcc/gfortran
-B/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/./gcc/
-B/home/dclarke/local/powerpc-unknown-linux-gnu/bin/
-B/home/dclarke/local/powerpc-unknown-linux-gnu/lib/ -isystem
/home/dclarke/local/powerpc-unknown-linux-gnu/include -isystem
/home/dclarke/local/powerpc-unknown-linux-gnu/sys-include accepts -g... no
checking whether the GNU Fortran compiler is working... no
configure: error: GNU Fortran is not working; the most common reason for
that is that you might have linked it to shared GMP and/or MPFR libraries,
and not set LD_LIBRARY_PATH accordingly. If you suspect any other reason,
please report a bug in http://gcc.gnu.org/bugzilla, attaching
/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/powerpc-unknown-linux-gnu/lib gfortran/config.log
make[1]: *** [configure-target-libgfortran] Error 1
make[1]: Leaving directory `/home/dclarke/build/first_pass/gcc/gcc-4.2.3-build'
make: *** [bootstrap] Error 2
dclarke$


This has happened repeatedly now .. twice actually. Not too sure what to do
to get out of this little bind.

Should I just set LD_LIBRARY_PATH=$HOME/local/lib ??

Any thoughts ?

Dennis Clarke


© 2004-2008 readlist.com