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

Problem: Openfoam 2.1 installation from git repo

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2012, 12:40
Default Problem: Openfoam 2.1 installation from git repo
  #1
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Hi all,

I follow the instructions to install OF21 from git, however it fails at step:
/usr/bin/ld: cannot find -lfiniteVolume

There might be a build order problem in the allwmake. Has anyone experienced the same problem, or completed the installation successfully?

os: Centos 5.x
gcc: 4.4

Any help is appreciated,
Fatih.
fertinaz is offline   Reply With Quote

Old   March 2, 2012, 08:38
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Fatih,

Save yourself several headaches and use CentFOAM: http://sourceforge.net/apps/mediawik...itle=Main_Page

The instructions seem a bit outdated, but perhaps the scripts can handle OpenFOAM 2.1.x as well.

If you still want to proceed with your own methods, then to figure things out, do it like this:
Code:
export WM_NCOMPPROCS=4
./Allwmake > make.log 2>&1
Where 4 is the number of cores available on your machine, so it will build faster.
Then look for the first one or two occurrences of "Error ", including the space after the word Error.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2012, 10:12
Default
  #3
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Hi Bruno,

thanks for the advice but I don't need the compiled version. Also I have successfully installed all the software mentioned at step 1 in the manual install of your link.

I did not want to provide the output messages in details since they are in German, however I can put them with a possible translation

/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld gab 1 als Ende-Status zurück - Final signal is 1
make[2]: *** [/home/fatihe/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam] Error 1
make[2]: Leaving directory `/home/fatihe/OpenFOAM/OpenFOAM-2.1.x/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam'
make[1]: *** [solidEquilibriumDisplacementFoam] Error 2
make[1]: Target »application« cannot be updated due to the errors
make[1]: Leaving directory `/home/fatihe/OpenFOAM/OpenFOAM-2.1.x/applications/solvers/stressAnalysis'
make: *** [stressAnalysis] Error 2
make: Target »application« cannot be updated due to the errors
fertinaz is offline   Reply With Quote

Old   March 2, 2012, 10:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Fatih,

Shoot, I should have stressed that you should look for the first errors in the newly created file "make.log", because the error you are describing only happens a lot further in time... probably one of the last errors, which pretty much is useless for figuring out what is going wrong.

I usually also suggest that people pack said "make.log" file and post here on the forum:
Code:
tar -czf make.log.tar.gz make.log
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2012, 11:05
Default
  #5
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Ok I have attached the log for the allwake output.

Thanks a lot for your help.
Attached Files
File Type: gz log_Allwmake_OF21.tar.gz (88.7 KB, 1 views)
fertinaz is offline   Reply With Quote

Old   March 2, 2012, 11:27
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
OK, the first error is this line, #880:
Code:
make: *** [Make/linux64GccDPOpt/polyMeshTetDecomposition.o] Fehler 1
So the keyword to look for in German is "Fehler "
Looking at the lines above it reveals a problem with overload mismatches. This can be due to either one of two reasons:
  • Bad gcc version, probably too old.
  • A problem in one of the latest git commits made by the SGI/OpenCFD team.
So, to confirm what might be the source of the problem:
  • What is the specific gcc version:
    Code:
    gcc -v
    #or
    gcc --version
  • What is the latest commit you are using of 2.1.x:
    Code:
    git log -n1
Another question: is this the first build of 2.1.x you are doing on that machine, or is it an update of a previous build of 2.1.x?
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2012, 11:43
Default
  #7
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
gcc --version:
gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)

And the latest commit of the repo is:
commit c8d08ce2098d8cb0f696c28b87e7bbd3fdb11b77
Author: andy <andy>
Date: Thu Mar 1 10:39:46 2012 +0000

STYLE: Updated warning message re: mantis #442


This is the first time that I try to build OF2.1.x on this machine. Normally I still use 1.6.x
fertinaz is offline   Reply With Quote

Old   March 2, 2012, 11:57
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
OK, there is another possibility I've just remembered. Since OpenFOAM started adapting Gcc 4.5 and 4.6, things have become more and more different from Gcc 4.3 and 4.4. But backwards compatibility is still preserved, at the very least by using a different set of rules.
Said set would be "WM_COMPILER=Gcc44", which you can change in either one of two ways:
  • Edit the file "$WM_PROJECT_DIR/etc/bashrc" and change the line:
    Code:
    WM_COMPILER=Gcc
    to
    Code:
    WM_COMPILER=Gcc44
  • Or add it to the sourcing line:
    Code:
    source $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc WM_COMPILER=Gcc44
Either way, start a new terminal, to be certain the changes take effect. In the mean time, if this fails, I'm going to see if I can try building OpenFOAM 2.1.x in an old Ubuntu virtual machine that has gcc 4.4.5 or 4.4.4.
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2012, 12:23
Default
  #9
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Well I have linked gcc to gcc44 so gcc44 is used anyway even though the compiler is set as gcc in bashrc. But now I am trying your suggestion it is worth to try.

Thanks a lot so far, I will let you know.
fertinaz is offline   Reply With Quote

Old   March 2, 2012, 12:25
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hold on! Did you do the same linking to "g++"?
edit: What does g++ version return?
Code:
g++ --version
__________________

Last edited by wyldckat; March 2, 2012 at 12:26. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   March 2, 2012, 12:26
Default
  #11
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
hmm I guess we found something
fertinaz is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam installation environment error (using CAELinux) vahid_paris OpenFOAM Installation 1 November 22, 2011 16:11
OpenFOAM 1.6-ext git installation Attesz OpenFOAM Installation 3 November 10, 2011 07:58
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Meshing & Mesh Conversion 2 June 18, 2011 05:36
Openfoam installation on OpenSuse 11.1 Bufacchi OpenFOAM Installation 1 June 15, 2010 20:55
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 19:30.