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

OpenFOAM-2.2.0 & CentOS / Redhat cluster

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

Like Tree1Likes
  • 1 Post By Aurelien Thinat

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2013, 06:02
Default OpenFOAM-2.2.0 & CentOS / Redhat cluster
  #1
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 148
Rep Power: 6
Aurelien Thinat is on a distinguished road
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: 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 ?
Aurelien Thinat is offline   Reply With Quote

Old   June 28, 2013, 06:22
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Posts: 149
Rep Power: 5
Phicau is on a distinguished road
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
Phicau is offline   Reply With Quote

Old   June 28, 2013, 07:00
Default
  #3
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 148
Rep Power: 6
Aurelien Thinat is on a distinguished road
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 is offline   Reply With Quote

Old   June 28, 2013, 11:35
Default
  #4
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 148
Rep Power: 6
Aurelien Thinat is on a distinguished road
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 likes this.
Aurelien Thinat is offline   Reply With Quote

Old   June 28, 2013, 15:13
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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 ... since 5th of May! Time is flying by...

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 15:50
Default
  #6
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 148
Rep Power: 6
Aurelien Thinat is on a distinguished road
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
Aurelien Thinat is offline   Reply With Quote

Old   June 28, 2013, 15:53
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,981
Blog Entries: 32
Rep Power: 68
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Aurelien,

Quote:
Originally Posted by Aurelien Thinat View Post
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
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 16:05
Default
  #8
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 148
Rep Power: 6
Aurelien Thinat is on a distinguished road
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.
Aurelien Thinat 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
openfoam-2.2.0 installation on cluster of Redhat 4.1.2-48 Chandler OpenFOAM Installation 31 October 30, 2013 11:44
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 AHutchison OpenFOAM Installation 6 June 4, 2013 12:11
ESI-OpenCFD Releases OpenFOAM v2.2.0 opencfd OpenFOAM Announcements from ESI-OpenCFD 13 March 30, 2013 17:52
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
OpenFOAM 15 and CentOS 52 installation issues remrich OpenFOAM Bugs 9 March 20, 2009 02:48


All times are GMT -4. The time now is 22:42.