[Bug fortran/41601] New: GNU Fortran is not working

2009-10-06 Thread chris dot hhodges at gmail dot com
I have tried several times to compile gcc-4.4.1 from source on my TSL Linux
server. *I am not compiling from within the source tree*, and I have made sure
that I have mpfr and gmp which I compiled and installed from source without
problems.

Each time it fails with:

checking whether the GNU Fortran compiler is working... no

and the first error in the config log seems to be

undefined reference to `shl_load'

As TSL is no longer a supported distro I have no option but to compile all my
apps from source (and I don't yet have g++) so any help would be greatly
appreciated!

Sorry if I have not filled out all the details correctly. Also I'm not sure how
to attach a file here. So I have made my config.log available on my server via
http here:

http://chrishh.homeip.net/config.log


-- 
   Summary: GNU Fortran is not working
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: chris dot hhodges at gmail dot com


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



[Bug fortran/41601] GNU Fortran is not working

2009-10-06 Thread chris dot hhodges at gmail dot com


--- Comment #1 from chris dot hhodges at gmail dot com  2009-10-06 13:08 
---
Created an attachment (id=18719)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18719&action=view)
config.log error report

ah now I see the attach option


-- 


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



[Bug fortran/41601] GNU Fortran is not working

2009-10-07 Thread chris dot hhodges at gmail dot com


--- Comment #4 from chris dot hhodges at gmail dot com  2009-10-07 10:23 
---
(In reply to comment #3)
> Please let us know if you fix this and/or you are still stuck.
> 

Yes. I've got this fixed now!
gcc now fully compiled. 

Many thanks for the pointer to the __gmp_get_memory_functions
error. I couldn't have done it without this info.
http://www.mpfr.org/faq.html#undef_ref1 describes the problem I had and
suggests some solutions.

In short I had two GMP libraries. One in /usr/local/lib, which I had compiled
from source, and one in /usr/lib, which was there from the distro.

Rather than fiddle about with compiler options and library paths I just updated
the gmp symlink in /usr/lib to point to the new library in /usr/local/lib and
then everything worked a treat.

Many thanks, once again.


-- 


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