public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.2.3 : make: *** [bootstrap] Error 2
@ 2008-03-11 20:03 Dennis Clarke
  2008-03-12  5:24 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Dennis Clarke @ 2008-03-11 20:03 UTC (permalink / raw)
  To: gcc-help


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@vesta:~/build/first_pass/gcc/gcc-4.2.3-build$ 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@vesta:~/build/first_pass/gcc/gcc-4.2.3-build$



existing GCC was :

dclarke@vesta:~/build/first_pass/gcc/gcc-4.2.3-build$ 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@vesta:~/build/first_pass/gcc/gcc-4.2.3-build$
/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/libgfortran/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@vesta:~/build/first_pass/gcc/gcc-4.2.3-build$


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-14  1:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-11 20:03 gcc 4.2.3 : make: *** [bootstrap] Error 2 Dennis Clarke
2008-03-12  5:24 ` Ian Lance Taylor
2008-03-12  5:35   ` Dennis Clarke
2008-03-12 12:24   ` Dennis Clarke
2008-03-14  1:26   ` Dennis Clarke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).