environment modules for gcc/gfortran?

Paul Richard Thomas paul.richard.thomas@gmail.com
Wed Mar 28 14:26:00 GMT 2012


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

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
>



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy



More information about the Fortran mailing list