CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Building Sources Failed (Running Debian) (https://www.cfd-online.com/Forums/openfoam-installation/95119-building-sources-failed-running-debian.html)

klw December 6, 2011 13: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 seen...so, your patience is extremely appreciated!

I'm following the steps posted here: http://www.openfoam.com/download/source.php

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!

Kristina

wyldckat December 6, 2011 14:21

Greetings Kristina,

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

gcc -v
Best regards,
Bruno

klw December 6, 2011 15:15

Hi Bruno,

I'm running Debian 5.0 and Gcc 4.3.2.

Thanks!
Kristina

wyldckat December 6, 2011 18: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:
Code:

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

gcc 4.3.2 is known to miscompile GMP 4.3.x on 64-bit machines
Source of quote: https://github.com/OpenFOAM/ThirdPar...9f27b5/makeGcc

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!
Bruno

klw December 6, 2011 18: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.

Kristina

wyldckat December 12, 2011 16: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,
Bruno


All times are GMT -4. The time now is 05:11.