CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Building Sources Failed (Running Debian)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 6, 2011, 14:25
Default Building Sources Failed (Running Debian)
  #1
klw
New Member
 
Kristina
Join Date: May 2011
Location: Seattle, WA
Posts: 7
Rep Power: 6
klw is on a distinguished road
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
Attached Files
File Type: gz make.log.tar.gz (18.3 KB, 2 views)
klw is offline   Reply With Quote

Old   December 6, 2011, 15:21
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Kristina,

Which Debian and Gcc versions are you using?
For knowing which Gcc version, run:
Code:
gcc -v
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 6, 2011, 16:15
Default
  #3
klw
New Member
 
Kristina
Join Date: May 2011
Location: Seattle, WA
Posts: 7
Rep Power: 6
klw is on a distinguished road
Hi Bruno,

I'm running Debian 5.0 and Gcc 4.3.2.

Thanks!
Kristina
klw is offline   Reply With Quote

Old   December 6, 2011, 19:25
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   December 6, 2011, 19:43
Default
  #5
klw
New Member
 
Kristina
Join Date: May 2011
Location: Seattle, WA
Posts: 7
Rep Power: 6
klw is on a distinguished road
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
klw is offline   Reply With Quote

Old   December 12, 2011, 17:55
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 136 April 25, 2012 11:22
ParaView/Parafoam error when making animation Disco_Caine OpenFOAM Paraview & paraFoam 6 September 28, 2010 09:54
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 02:33.