gcc requirements

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
chesswright

gcc requirements

Post by chesswright »

I'm trying to install code-saturne on my machine that has Red Hat Enterprise 5.9 but the latest compiler on it is 4.1.2 What version of gcc do I need and how do I get it? Thanks
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: gcc requirements

Post by Yvan Fournier »

Hello,

For a start, mentioning the version of Code_Saturne you are trying to install, as per the forum recommendations, would be useful.

I assume you are trying to install Code_Saturne 3.0.

The code requires the iso_c_bindings functionnality of Fortran 2003, which is available in all modern compilers (Fortran 95 features are sufficient besides that).

gcc 4.1.2 does not handle this (and the Red Hat build has other bugs, generating incorrect code in at least one place when compiling in debug mode, so we do not trust it).

I am not sure about gcc 4.2 and 4.3, but 4.4 and above are definitely sufficient for Code_Saturne. I would recommend using 4.7 or 4.8 if you can.

As to how do you get it, either check gcc.gnu.org or rpmfind.

Regards,

Yvan
Post Reply