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

OpenFOAM-2.2.0 & CentOS / Redhat cluster

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Aurelien Thinat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2013, 07:02
Default OpenFOAM-2.2.0 & CentOS / Redhat cluster
  #1
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16
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, 07:22
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
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, 08:00
Default
  #3
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16
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, 12:35
Default
  #4
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16
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, 16:13
Default
  #5
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 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, 16:50
Default
  #6
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16
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, 16:53
Default
  #7
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 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, 17:05
Default
  #8
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16
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


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.org] openfoam-2.2.0 installation on cluster of Redhat 4.1.2-48 Chandler OpenFOAM Installation 32 June 10, 2015 13:53
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 AHutchison OpenFOAM Installation 6 June 4, 2013 13: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 06: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 23:11.