|
[Sponsors] |
Problem: Openfoam 2.1 installation from git repo |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 1, 2012, 12:40 |
Problem: Openfoam 2.1 installation from git repo
|
#1 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
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. |
|
March 2, 2012, 08:38 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 Then look for the first one or two occurrences of "Error ", including the space after the word Error. Best regards, Bruno
__________________
|
|
March 2, 2012, 10:12 |
|
#3 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
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 |
|
March 2, 2012, 10:52 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 Bruno
__________________
|
|
March 2, 2012, 11:05 |
|
#5 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
Ok I have attached the log for the allwake output.
Thanks a lot for your help. |
|
March 2, 2012, 11:27 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, the first error is this line, #880:
Code:
make: *** [Make/linux64GccDPOpt/polyMeshTetDecomposition.o] Fehler 1 Looking at the lines above it reveals a problem with overload mismatches. This can be due to either one of two reasons:
__________________
|
|
March 2, 2012, 11:43 |
|
#7 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
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 |
|
March 2, 2012, 11:57 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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:
__________________
|
|
March 2, 2012, 12:23 |
|
#9 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
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. |
|
March 2, 2012, 12:25 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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:" |
|
March 2, 2012, 12:26 |
|
#11 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
hmm I guess we found something
|
|
|
|
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 |