CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Building Sources Failed (Running Debian) (

klw December 6, 2011 14:25

Building Sources Failed (Running Debian)
1 Attachment(s)
Hi! I've scoured a bit on this forum for an answer to my problem, but it seems the best solution is to post my log and ask for help. I should add the disclaimer that I'm fairly new to command-line interface and Linux, and I've only done very simple installations (gcc, fortran). Installing OpenFOAM is, by far, the most intensive procedure I've, your patience is extremely appreciated!

I'm following the steps posted here:

I've done the system check and passed, and I've attached my log to .Allwmake. Please let me know if you need any other information.

Thank you for your help!


wyldckat December 6, 2011 15:21

Greetings Kristina,

Which Debian and Gcc versions are you using?
For knowing which Gcc version, run:

gcc -v
Best regards,

klw December 6, 2011 16:15

Hi Bruno,

I'm running Debian 5.0 and Gcc 4.3.2.


wyldckat December 6, 2011 19:25

Hi Kristina,

Uuu... Gcc 4.3.2 has a few glitches :( Gcc 4.3.3 is the bare minimum required for building OpenFOAM :(
Weird thing is that I can't find any specific reference about this detail.

OK, a month or so ago I wrote the following blog post: Building OpenFOAM 2.0.1 on old Linux OSes - test case Ubuntu 8.04 - this might help you, if you are using a Debian 5.0 i386 or i686; to know which one, run:

uname -m
There is another specific detail to keep in mind, namely this one:

gcc 4.3.2 is known to miscompile GMP 4.3.x on 64-bit machines
Source of quote:

So, if you are using a Debian 5.0 x86_64, things are going to get very complicated :( If you could upgrade to Debian 6.0, things would be a lot easier. Or at the very least, somehow get an upgraded version of gcc 4.3 or 4.4.

Good luck!

klw December 6, 2011 19:43

Hi Bruno,

As my luck would have it, I am running Debian 5.0 x86_64. I'm going to try a newer version of Gcc (any version of 4.4.x will work?), since it will be faster than upgrading the entire OS. I'm afraid I don't entirely understand the repercussions of miscompiling; what are the limitations of using OpenFOAM on Debian 5.0 on a 64-bit machine? Will these issues go away with upgrading to a newer version of Gcc?

Thank you for your speedy response. I'll let you know how this goes.


wyldckat December 12, 2011 17:55

Hi Kristina,

Sorry for taking so long to reply, but basically I think I had already given you the answer: if you had at least Gcc 4.3.3, you probably wouldn't have had any problems! ;)

Best regards,

All times are GMT -4. The time now is 23:22.