[Bug fortran/33883] New: gfortran compile / LD_LIBRARY_PATH error

2007-10-24 Thread rogerabq at yahoo dot com
This is the same error message reported in bug fortran/33058 on August 13th,
2007, however, the suggestion provided in that thread did not solve the problem
for me.  Just wondering if there is something else that might be the problem.

When I try to compile gcc-4.2.2 on Linux to create the gfortran compiler, it
fails:

./configure --enable-languages=fortran --with-gmp=/home/local/gmp-4.2.2
--with-mpfr=/home/local/mpfr-2.3.0 

And as suggested in the 8/13/07 thread, my LD_LIBRARY_PATH was set the the
following:

[atria ~]$ echo $LD_LIBRARY_PATH
/home/local/gmp-4.2.2/lib:/home/local/mpfr-2.3.0/lib

...
updating cache ./config.cache
configure: loading cache ./config.cache
checking for i686-pc-linux-gnu-gfortran...
/home/rogerb/gcc-4.2.2/host-i686-pc-linux-gnu/gcc/gfortran
-B/home/rogerb/gcc-4.2.2/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
-isystem /usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include
checking whether we are using the GNU Fortran compiler... no
checking whether /home/rogerb/gcc-4.2.2/host-i686-pc-linux-gnu/gcc/gfortran
-B/home/rogerb/gcc-4.2.2/host-i686-pc-linux-gnu/gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
-isystem /usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-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/rogerb/gcc-4.2.2/i686-pc-linux-gnu/libgfortran/config.log
make[1]: *** [configure-target-libgfortran] Error 1
make[1]: Leaving directory `/home/rogerb/gcc-4.2.2'
make: *** [all] Error 2


-- 
   Summary: gfortran compile / LD_LIBRARY_PATH error
   Product: gcc
   Version: 4.2.2
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rogerabq at yahoo dot com


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



[Bug fortran/33883] gfortran compile / LD_LIBRARY_PATH error

2007-10-25 Thread rogerabq at yahoo dot com


--- Comment #4 from rogerabq at yahoo dot com  2007-10-25 15:09 ---
Thanks for the replies. I started from scratch, making sure I wasn't building
from the source tree and this time it compiled just fine.  Thank You!

(In reply to comment #3)

> Are you building in
> the source tree? (which is not supported and strongly discouraged, see
> http://gcc.gnu.org/install/configure.html)
> 


-- 

rogerabq at yahoo dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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