Created attachment 24545 [details] config.log make ends with checking whether the GNU Fortran compiler is working... no configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /home/e.ab/software/src/gcc-4.5.3-build/i686-pc-linux-gnu/libgfortran/config.log make[1]: *** [configure-target-libgfortran] Error 1 make[1]: Leaving directory `/data1/software/src/gcc-4.5.3-build' make: *** [all] Error 2 config.log attached... -E
In 95% of the cases one sees this error, there is a problem with GMP or MPFR. That seems to be also the case here: /home/e.ab/software/src/gcc-4.5.3-build/./gcc/f951: symbol lookup error: /usr/local/lib/libmpfr.so.1: undefined symbol: __gmp_get_memory_functions Can you check that your GMP and MPFR are compatible, that they are in the library search path, etc.?
(In reply to comment #0) > Created attachment 24545 [details] > config.log > > make ends with > > checking whether the GNU Fortran compiler is working... no > configure: error: GNU Fortran is not working; please report a bug in > http://gcc.gnu.org/bugzilla, attaching > /home/e.ab/software/src/gcc-4.5.3-build/i686-pc-linux-gnu/libgfortran/config.log > make[1]: *** [configure-target-libgfortran] Error 1 > make[1]: Leaving directory `/data1/software/src/gcc-4.5.3-build' > make: *** [all] Error 2 > What is the configure command line you used to configure the gcc?
kargl at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49438 > > kargl at gcc dot gnu.org changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |kargl at gcc dot gnu.org > > --- Comment #2 from kargl at gcc dot gnu.org 2011-06-16 16:31:23 UTC --- > (In reply to comment #0) > >> Created attachment 24545 [details] >> config.log >> >> make ends with >> >> checking whether the GNU Fortran compiler is working... no >> configure: error: GNU Fortran is not working; please report a bug in >> http://gcc.gnu.org/bugzilla, attaching >> /home/e.ab/software/src/gcc-4.5.3-build/i686-pc-linux-gnu/libgfortran/config.log >> make[1]: *** [configure-target-libgfortran] Error 1 >> make[1]: Leaving directory `/data1/software/src/gcc-4.5.3-build' >> make: *** [all] Error 2 >> >> > What is the configure command line you used to configure > the gcc? > > nothing. just ../configure there was a gmp version on the machine that was too old and no mpfr I unpacked the latest source tar files of gmp and mpfr in the source directory (gcc-4.5.3) hoping that they would be found an installed. But after make distclean ; ../gcc-4.5.3/configure make ends with the same error as before. (although i didn't compare the config.log it was overwritten) I'm now first installing gmp and mpfr by hand. I probably have to remove the old gmp version right? Eiso
On Thu, Jun 16, 2011 at 05:36:35PM +0000, eisoab at gmail dot com wrote: > > > What is the configure command line you used to configure > > the gcc? > > > > > nothing. just ../configure > This appears to mean that you are trying to build gcc within its source tree. That is not support. Please the instructions for building gcc. > > I probably have to remove the old gmp version right? > This would certainly ensure that the old versions are not found and used.
sgk at troutmask dot apl.washington.edu wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49438 > > --- Comment #4 from Steve Kargl<sgk at troutmask dot apl.washington.edu> 2011-06-16 17:52:39 UTC --- > On Thu, Jun 16, 2011 at 05:36:35PM +0000, eisoab at gmail dot com wrote: >> >>> What is the configure command line you used to configure >>> the gcc? >>> >>> >> nothing. just ../configure sorry that was incorrect, I meant ../gcc-4.5.3/configure I'm using a gcc-4.5.3-build dir next to gcc-4.5.3 Eiso >> > > This appears to mean that you are trying to build > gcc within its source tree. That is not support. > Please the instructions for building gcc. > >> >> I probably have to remove the old gmp version right? >> > > This would certainly ensure that the old versions are > not found and used. >
Eiso AB wrote: > sgk at troutmask dot apl.washington.edu wrote: >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49438 >> >> --- Comment #4 from Steve Kargl<sgk at troutmask dot >> apl.washington.edu> 2011-06-16 17:52:39 UTC --- >> On Thu, Jun 16, 2011 at 05:36:35PM +0000, eisoab at gmail dot com wrote: >>> >>>> What is the configure command line you used to configure >>>> the gcc? >>>> >>>> >>> nothing. just ../configure > sorry that was incorrect, I meant > > ../gcc-4.5.3/configure > > I'm using a gcc-4.5.3-build dir next to gcc-4.5.3 > > Eiso > >>> >> >> This appears to mean that you are trying to build >> gcc within its source tree. That is not support. >> Please the instructions for building gcc. >> >>> >>> I probably have to remove the old gmp version right? >>> >> >> This would certainly ensure that the old versions are >> not found and used. yum wants to remove about 60 packages when I try that. So I think I'll leave that one alone. -E >> >
Set to waiting. Close if no additional info shows up in a reasonable time frame.
Closing, please reopen with detailed information if you still encounter the issue. One problem may be that you were compiling with recent GMP headers, but picking up an older GMP library at runtime.