CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM-2.2.0 & CentOS / Redhat cluster (https://www.cfd-online.com/Forums/openfoam-installation/120010-openfoam-2-2-0-centos-redhat-cluster.html)

Aurelien Thinat June 28, 2013 06:02

OpenFOAM-2.2.0 & CentOS / Redhat cluster
 
Hi everyone,

I'm stuck with the installation of OpenFOAM-2.2.0 on a redhat cluster and centOS computer. I have already compiled OF-2.2.0 under an openSuse environement.

I followed the usual steps :
1) untar OpenFOAM-2.2.0.tgz and ThirdParty-2.2.0.tgz
2) run ./makeGcc46 with the right folders untared.
3) modify the settings.sh to use the correct version of mpfr
4) modify the bashrc in order to use the ThirdParty openmpi and gcc

The foamInstallationCheck :

OS : Linux version 2.6.32-220.el6.x86_64
(...)
flex : 2.5.35 /usr/bin/flex
gcc : 4.6.1 .../ThirdParty-2.2.0/platforms/linux64/gcc-4.6.1/bin/gcc
gzip : 1.3.12 /bin/gzip
tar : 1.23 /bin/tar
(...)
1 critical error

The problem : compilation of the library finiteVolume

1) go to OpenFOAM-2.2.0/src
2) wmake finiteVolume
3) the output :
Quote:

(...)
Make/linux64GccDPOpt/fvcSmooth.o:fvcSmooth.C.text._ZN4Foam12FaceCellWav eINS_9sweepDataEiE17handleProcPatchesEv[Foam::FaceCellWave<Foam::sweepData, int>::handleProcPatches()]+0x5aa): more undefined references to `Foam::FaceCellWaveName::debug' follow
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::handleAMICyclicPatch es()':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9 trackDataEE22handleAMICyclicPatchesEv[Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::handleAMICyclicPatch es()]+0x5c): undefined reference to `typeinfo for Foam::cyclicAMIPolyPatch'
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9 trackDataEE22handleAMICyclicPatchesEv[Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::handleAMICyclicPatch es()]+0x13b): undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const'
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9 trackDataEE22handleAMICyclicPatchesEv[Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::handleAMICyclicPatch es()]+0x4e8): undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const'
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::cellToFace()':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9 trackDataEE10cellToFaceEv[Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::cellToFace()]+0x150): undefined reference to `Foam::FaceCellWaveName::debug'
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::iterate(int)':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9 trackDataEE7iterateEi[Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::iterate(int)]+0x46): undefined reference to `Foam::FaceCellWaveName::debug'
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::smoothData, Foam::smoothData::trackData>::FaceCellWave(Foam::p olyMesh const&, Foam::List<int> const&, Foam::List<Foam::smoothData> const&, Foam::UList<Foam::smoothData>&, Foam::UList<Foam::smoothData>&, int, Foam::smoothData::trackData&)':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9 trackDataEEC2ERKNS_8polyMeshERKNS_4ListIiEERKNS7_I S1_EERNS_5UListIS1_EESG_iRS2_[_ZN4Foam12FaceCellWaveINS_10smoothDataENS1_9trackD ataEEC5ERKNS_8polyMeshERKNS_4ListIiEERKNS7_IS1_EER NS_5UListIS1_EESG_iRS2_]+0x148): undefined reference to `typeinfo for Foam::cyclicAMIPolyPatch'
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::sweepData, int>::handleAMICyclicPatches()':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_9sweepDataEiE22han dleAMICyclicPatchesEv[Foam::FaceCellWave<Foam::sweepData, int>::handleAMICyclicPatches()]+0x5c): undefined reference to `typeinfo for Foam::cyclicAMIPolyPatch'
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_9sweepDataEiE22han dleAMICyclicPatchesEv[Foam::FaceCellWave<Foam::sweepData, int>::handleAMICyclicPatches()]+0x1aa): undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const'
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_9sweepDataEiE22han dleAMICyclicPatchesEv[Foam::FaceCellWave<Foam::sweepData, int>::handleAMICyclicPatches()]+0x768): undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const'
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::sweepData, int>::cellToFace()':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_9sweepDataEiE10cel lToFaceEv[Foam::FaceCellWave<Foam::sweepData, int>::cellToFace()]+0x1af): undefined reference to `Foam::FaceCellWaveName::debug'
Make/linux64GccDPOpt/fvcSmooth.o: In function `Foam::FaceCellWave<Foam::sweepData, int>::iterate(int)':
fvcSmooth.C
.text._ZN4Foam12FaceCellWaveINS_9sweepDataEiE7iter ateEi[Foam::FaceCellWave<Foam::sweepData, int>::iterate(int)]+0x46): undefined reference to `Foam::FaceCellWaveName::debug'
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1
Does anyone have any idea of what the problem is ?

Phicau June 28, 2013 06:22

Hi,

are you aware of the CentFOAM project? It is pretty straightforward to set it up!

http://sourceforge.net/apps/mediawik...itle=Main_Page

Pablo

Aurelien Thinat June 28, 2013 07:00

Well I'll have a look at centFOAM. But I don't get why I'm not able to compile openFOAM correctly. And the error message is quite vague.

Right now I'm compiling cmake, seeing if this is the problem.

EDIT : And it's not.

Aurelien Thinat June 28, 2013 11:35

Ok I have made it worked.

For the record : I upgraded all the libraries :
OpenSuse -> RH
gmp-5.0.2 -> gmp-5.0.4
mpfr-3.0.1 -> mpfr-3.1.0
gcc-4.6.1 -> gcc-4.6.2

cmake-2.8.3
llvm-3.1

wyldckat June 28, 2013 15:13

Greetings to all!

I guess I arrived too late... the following instructions have been online for some time now: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.4 ... :eek: since 5th of May! Time is flying by...

Best regards,
Bruno

Aurelien Thinat June 28, 2013 15:50

Hi Bruno,

Thanks for the answer.

Since the network I am working on is totally offline I couldn't follow the guidelines I have found. I guess it could have saved me some time (a lot in fact).
And I was really surprised to find out that gcc-4.6.1 was working well on Opensuse environnement but not on centOS. I surely missed something.

Aurelien

wyldckat June 28, 2013 15:53

Hi Aurelien,

Quote:

Originally Posted by Aurelien Thinat (Post 436624)
And I was really surprised to find out that gcc-4.6.1 was working well on Opensuse environnement but not on centOS. I surely missed something.

I guess you didn't see the following post from yesterday: http://www.cfd-online.com/Forums/ope...tml#post436427 - post #5

Best regards,
Bruno

Aurelien Thinat June 28, 2013 16:05

I did see it. Modifying the settings.sh file was not the problem.

In fact, few weeks ago I have made the installation of OF-2.2.0 with the makeGcc46 script after a fail with the standard versions used in the makeGcc script (old openSuse environnement).

So I just tried to do the exact same thing, guessing it should work the same way it did previously. And I was misthinking.


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