CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OpenFOAM 2.0.x compilation with gcc 4.7.2 possible? (

Linse March 9, 2013 17:19

OpenFOAM 2.0.x compilation with gcc 4.7.2 possible?
Dear all,
did anybody of you try - and succeed - in compiling the 2.0.x release with gcc 4.7.2?
If so, what special settings did you have to make?
Or does anybody at least have an idea what might trouble compilation with that compiler?
I have no specific error messages available at the moment, but if I remember correctly, they were about the linkers not finding the necessary libraries...

wyldckat March 9, 2013 18:53

Hi Bernhard,

I haven't tested building OpenFOAM 2.0.x with Gcc 4.7.y, but I do know that (some of) the changes that 2.1.x needed to be compatible with it are shown in the following commits:
Do let us know if these changes also work with 2.0.x! But keep in mind that thorough testing is advised!

Also for reference, the following wiki page is being maintained for keeping a record of these details on version compatibilities:

Best regards,

Linse March 10, 2013 06:53

Hi Bruno,

and Thanks a lot for the links/hints!

I guess I will check that during the next few days, and of course I will keep you posted in this thread!

Concerning the testing: Would you have some specific hints on that? Of course, the standard foamInstallationTest would be standard, but I never saw anything like a test-script or something similar for the official release.
And I guess just testing the "runnability" of all of the tutorials would not be sufficient verification that the differently compiled version does what it should...

Anyhow: Thanks by now already!


wyldckat March 10, 2013 07:17

Hi Bernhard,

In the tutorials folder you will find a script named Alltest. It takes a while to run all tutorials, because it does all of them for a few iterations, but I think it's a good enough test for at least checking for rough edges.

The last time I know of, when something went wrong with a particular build with a specific compiler, was reported here:

Best regards,

All times are GMT -4. The time now is 13:16.