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

[OpenFOAM.org] Error when compiling OF 5.x in RedHat 6.5

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2018, 04:16
Default Error when compiling OF 5.x in RedHat 6.5
  #1
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Good morning all,
I am installing OpenFOAM 5.x in my $HOME directory, and when it compiles the libOpenFOAM.so I got the next error:


Code:
Make/linux64GccDPInt32Opt/primitives/ints/int64/int64IO.o: In function `Foam::operator>>(Foam::Istream&, long&)':
int64IO.C:(.text+0x860): multiple definition of `Foam::operator>>(Foam::Istream&, long&)'
Make/linux64GccDPInt32Opt/primitives/ints/int32/int32IO.o:int32IO.C:(.text+0xab0): first defined here
Make/linux64GccDPInt32Opt/primitives/ints/int64/int64IO.o: In function `Foam::operator<<(Foam::Ostream&, long)':
int64IO.C:(.text+0xa80): multiple definition of `Foam::operator<<(Foam::Ostream&, long)'
Make/linux64GccDPInt32Opt/primitives/ints/int32/int32IO.o:int32IO.C:(.text+0xac0): first defined here
collect2: error: ld returned 1 exit status

Has anyone experienced this?
Many thanks in advance!
agustinvo is offline   Reply With Quote

Old   May 31, 2018, 09:26
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
Quick answer: I'm guessing here that you are using the default GCC 4.4 in RHEL 6.5. This version of GCC is not going to work.

The step by step installation instructions provided here: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.9 - should still work on CentOS 6.5.
__________________
wyldckat is offline   Reply With Quote

Old   May 31, 2018, 09:47
Default
  #3
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Hi


I use Gcc 4.9.2, bu anyways, following your indications I managed to compile! Thank you!
agustinvo 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] Need basic help with compiling OF 5.x for debugging deepbandivadekar OpenFOAM Installation 6 April 16, 2018 07:04
[OpenFOAM.org] Error compiling OF 5.x marluc OpenFOAM Installation 4 November 2, 2017 10:39
Bug for install OpenFOAM 2.3.0 under redhat 6.5 jordanjo OpenFOAM Installation 1 August 5, 2014 13:42
[swak4Foam] compiling swak4foam on an IBM Dataplex running 64-bit RedHat 6.3 jianni OpenFOAM Community Contributions 22 January 5, 2014 17:49
Error while compiling OpenFOAM on Redhat cluster feiqunali OpenFOAM Installation 3 October 13, 2013 04:30


All times are GMT -4. The time now is 17:27.