|
[Sponsors] |
[OpenFOAM.org] Error when compiling OF 5.x in RedHat 6.5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 31, 2018, 04:16 |
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 |
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! |
|
May 31, 2018, 09:26 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
May 31, 2018, 09:47 |
|
#3 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi
I use Gcc 4.9.2, bu anyways, following your indications I managed to compile! Thank you! |
|
|
|
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 |