|
[Sponsors] |
[OpenFOAM.org] 2.2.0 - Installation error with redhat 6.5 server |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 1, 2019, 13:03 |
2.2.0 - Installation error with redhat 6.5 server
|
#1 | |
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
I have been trying to install openfoam 2.2.0 with Red Hat Enterprise Linux Server release 6.5 by following the steps mentioned in below webpage:
https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL But I have been getting error while running ./Allwmake Quote:
Kindly help me out. Thanks in advance. |
||
August 1, 2019, 23:42 |
Old Compiler?
|
#2 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Hi,
I had a quick look at the log file you attached and it looks like the build went bad a long time before the two phase error. For example triad.so is the first error and I suspect that everything cascaded on from there: Code:
primitives/triad/triad.C:36: error: expected initializer before ‘<’ token primitives/triad/triad.C:39: error: expected initializer before ‘<’ token SOURCE=primitives/strings/keyType/keyType.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64Gcc45DPOpt -IlnInclude -I. -I/UHOME/lsilvish/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude -I/UHOME/lsilvish/OpenFOAM/OpenFOAM-2.2.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc45DPOpt/keyType.o make: *** [Make/linux64Gcc45DPOpt/triad.o] Error 1
If yes, then my starting point is the compiler. Specifically make sure that if you are using the native compiler that it is compatible. Release notes and/or the configuration scripts should help there. If using the ThirdParty rolled compiler make sure the environment is set to use it correctly. Hope that helps, -pete |
|
August 2, 2019, 02:10 |
|
#3 |
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Hi Peter Brady,
I commented those two lines 36 and 39 from triad.c file. It compiled successfully. |
|
August 2, 2019, 02:53 |
Great News
|
#4 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Hey,
That's great news. Just be careful as I've come unstuck a few times doing that and generating unintended consequences later with strange runtime behaviours. Sounds a good start though. Cheers, -pete |
|
August 3, 2019, 15:16 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer @silviliril: Something happened with compiling/installing GCC 4.5.2, which is why you're getting that error.
The file "ThirdParty-2.2.0/log.mkgcc" holds the build log for GCC 4.5.2. Please upload it in your next post. You can package the log file with this command: Code:
gzip < log.mkgcc > log.mkgcc.gz
__________________
|
|
August 4, 2019, 05:05 |
GCC not compiled
|
#6 |
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Dear Bruno Santos,
I got error while compiling GCC. So, I have compiled OpenFOAM 2.2.0 without compiling GCC 4.5.2. Don't know whether its correct way or not. (log file is attached) Moreover, I have to run my case with Job scheduler script on redhad server. Currently, I am unable run the solver with PBS job scheduler script due to openmpi gcc version error. which I have asked in separate thread: Running PBS job in parallel on HPC cluster Last edited by silviliril; August 4, 2019 at 05:08. Reason: Uploading log file |
|
August 4, 2019, 07:15 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
You can try doing what was indicated here: Compile Error of OpenFOAM-2.2.0 on RedHat EL5 - see first and second post. edit: For the issue in PBS; answered here: Running PBS job in parallel on HPC cluster - post #6 Last edited by wyldckat; August 4, 2019 at 07:19. Reason: see "edit:" |
||
August 6, 2019, 01:45 |
|
#8 | |||
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Quote:
Let me explain you with the details. I followed the steps indicated in the page: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL But, at step 8, while building GCC 4.5.2, I was getting error: Quote:
I came across the error of 'triad::' as it has been discussed in Compile Error of OpenFOAM-2.2.0 on RedHat EL5. I applied solution provided by you on this thread. OpenFOAM 2.2.0 compiled successfully. The log file of compilation is attached. So, I tried to check gcc and g++ versions: I got following output: Quote:
|
||||
Tags |
openfoam 2.2.0, openfoam error |
|
|
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 |
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux | Indrajit | OpenFOAM Installation | 1 | April 1, 2012 05:39 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Install OpenFoam on Redhat server | maolongliu | OpenFOAM Installation | 4 | May 25, 2010 03:47 |
Installation 1.5 as a user of server (New bird) | chiven | OpenFOAM Installation | 15 | April 26, 2009 23:33 |