environment modules for gcc/gfortran?

Manfred Schwarb manfred99@gmx.ch
Wed Mar 28 15:16:00 GMT 2012


Am 28.03.2012 16:26, schrieb Paul Richard Thomas:
> Dear Katherine and Tom,
>
> I believe that I have RHEL5.4 as a virtual machine at home.  If so,
> I'll build a release version of 4.7.0 on it.  It'll take a few days
> because I know that some of the dependencies will need updating and
> all the usual good stuff.  I have to say that, whilst I am a gfortran
> maintainer and would say this :-), building your own is very straight
> forward on linices - just read the instructions at gcc.gnu.org and
> follow them to the letter!
>
> Not only does 4.7.0 do good things with typebound procedures but its
> implementation of object oriented programming is sufficiently complete
> that it deals with all the examples in Damian Rouson's book and he is
> intending to use it for teaching purposes.
>
> Best regards


Paul, Katherine, Tom,

the binaries at http://gfortran.com/download/x86_64/
will probably work on RHEL / Centos 5.4 (modulo libgomp), it's worth a try.
See the readme file in the directory. You will find the latest
snapshots of GCC 4.3, 4.4, 4.5, 4.6, 4.7, 4.8 so you can choose
which to take.

Cheers,
Manfred


>
> Paul
>
> On Wed, Mar 28, 2012 at 3:55 PM, Katherine Holcomb<kah3f@virginia.edu>  wrote:
>> I don't have an opinion on version; 4.7 was just the latest official version
>> of which I'm aware.
>>
>> We run the equivalent of Centos 5.4 on our cluster and there is an rpm for
>> gcc 4.4, but it installs under the names gcc44/gfortran44 which makes it
>> less convenient for most users.  I wasn't able to get my module script to
>> alias gcc44 to gcc or gfortran44 to gfortran, though I haven't put much
>> effort into it.  Version 4.4 gfortran still lacks many important new
>> features that are well supported even in 4.6 (for instance, 4.6.2 will
>> compile and run a tiny little "blackjack" program I wrote with type-bound
>> procedures that ICEs Intel ifort 12.1.2).  Unfortunately I don't have any
>> advice on building 4.6 or later on Centos 5.4 since I've never tried it.
>>
>>
>> On 03/27/2012 06:43 PM, Tom Roche wrote:
>>>
>>> Katherine Holcomb Tue, 27 Mar 2012 12:49:14 -0400
>>>>
>>>> You need to roll your own modules script. They are fairly simple Tcl
>>>> scripts with some extensions. So you would install the newer version
>>>> into some unique location -- don't make it fight with the system gcc
>>>> in /usr. Let's say it's in /opt/gcc-4.7
>>>
>>> Thanks for the instructions @
>>>
>>> http://gcc.gnu.org/ml/fortran/2012-03/msg00140.html
>>>
>>> ! One more question: is 4.7 the gcc/gfortran version you would use?
>>> I ask because I got the following post from the cluster maintainer
>>> today:
>>>
>>>>> I tried to compile the 4.6 version of GCC from source and could not
>>>>> get it to work. If you have a working version, I would be happy to
>>>>> put it [up]
>>>
>>> FWIW, the cluster is running RHEL 5.4.
>>>
>>> TIA, Tom Roche<Tom_Roche@pobox.com>
>>
>>
>>
>> --
>> Katherine Holcomb
>> UVACSE                       kholcomb@virginia.edu
>> 112 Albert Small Building    (434) 982-5948
>> University of Virginia       Charlottesville, VA 22904
>>
>
>
>



More information about the Fortran mailing list