Re: gfortran vs g77

From: Stefano Piano <stefano.piano_at_ts.infn.it>
Date: Tue, 06 Feb 2007 14:54:28 +0100


Dear Fons,

I updated my linux distro, which is a Gentoo Linux on i686 cpu (Intel T7400) with gcc version 4.1.1 (Gentoo 4.1.1-r3) and gfortran version 4.1.1.

I recompiled the blas, lapack and cernlib libraries (2005) with gfortran.

In order to be able to compile root (head version 5.15/01) I added the following fortran libraries to Makefile.linux:

F77LIBS = -lgfortran -lgfortranbegin -lnsl

instead of
F77LIBS = -lnsl

Without them I obtain a lot of unresolved symbols of gfortran libraries and the compilation fails.

Cheers,
Stefano

Fons Rademakers wrote:
> I've fixed this in config/Makefile.linux.
>
> Cheers, Fons.
>
>
> Roger Mason wrote:

>> Hello Peter,
>>
>> Peter Skensved <peter_at_jay.phy.queensu.ca> writes:
>>
>>>> How do I enable gfortran?
>>>>
>>
>>> 47,53c47,56
>>> < F77           = g77
>>> < F77FLAGS      = -fPIC
>>> < ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so)
>>> < F77LIBS      := $(shell $(F77) -print-file-name=libg2c.so) -lnsl
>>> < else
>>> < F77LIBS      := $(shell $(F77) -print-file-name=libg2c.a) -lnsl
>>> < endif
>>> ---
>>>> F77           = gfortran
>>>> F77FLAGS      = -fPIC -std=legacy
>>>> F77LIBS       = -lnsl
>>>> F77LD         = gfortran
>>>>
>>>> #ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so)
>>>> #F77LIBS      := $(shell $(F77) -print-file-name=libg2c.so) -lnsl
>>>> #else
>>>> #F77LIBS      := $(shell $(F77) -print-file-name=libg2c.a) -lnsl
>>>> #endif
>>
>> Yes, that seems to have worked, at least the configure step did not
>> complain.  I seem to have a problem with one of the demo programs
>> crashing root, but I'll start another thread on that.
>>
>> Thanks for your help,
>>
>> Roger
>>

>
Received on Tue Feb 06 2007 - 14:55:08 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 06 2007 - 17:50:01 CET