environment modules for gcc/gfortran?
Katherine Holcomb
kah3f@virginia.edu
Wed Mar 28 13:56:00 GMT 2012
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