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

[OpenFOAM.org] 2.2.0 - Installation error with redhat 6.5 server

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By pbrady2013
  • 1 Post By pbrady2013
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2019, 12:03
Default 2.2.0 - Installation error with redhat 6.5 server
  #1
Member
 
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10
silviliril is on a distinguished road
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:
/usr/bin/ld: cannot find -lEulerianInterfacialModels
collect2: ld returned 1 exit status
make[2]: *** [/UHOME/lsilvish/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc45DPOpt/bin/twoPhaseEulerFoam] Error 1
make[1]: *** [twoPhaseEulerFoam] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [multiphase] Error 2
make: Target `application' not remade because of errors.
log.make file of the compilation error has been attached with this thread.

Kindly help me out. Thanks in advance.
Attached Files
File Type: gz log.mak.gz (15.8 KB, 2 views)
silviliril is offline   Reply With Quote

Old   August 1, 2019, 22:42
Default Old Compiler?
  #2
Member
 
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 11
pbrady2013 is on a distinguished road
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
My usual questions at this point are:
  1. Do you have a specific reason to run such an old OpenFOAM?
  2. Do you have a specific need to run such an old version RHEL?
If no, then consider an upgrade to something more modern.


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
silviliril likes this.
pbrady2013 is offline   Reply With Quote

Old   August 2, 2019, 01:10
Default
  #3
Member
 
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10
silviliril is on a distinguished road
Hi Peter Brady,

I commented those two lines 36 and 39 from triad.c file. It compiled successfully.
silviliril is offline   Reply With Quote

Old   August 2, 2019, 01:53
Default Great News
  #4
Member
 
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 11
pbrady2013 is on a distinguished road
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
silviliril likes this.
pbrady2013 is offline   Reply With Quote

Old   August 3, 2019, 14:16
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 @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
And then attach the file "log.mkgcc.gz".
silviliril likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 4, 2019, 04:05
Default GCC not compiled
  #6
Member
 
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10
silviliril is on a distinguished road
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
Attached Files
File Type: gz log.mak.gz (15.8 KB, 1 views)

Last edited by silviliril; August 4, 2019 at 04:08. Reason: Uploading log file
silviliril is offline   Reply With Quote

Old   August 4, 2019, 06:15
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quote:
Originally Posted by silviliril View Post
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)
OpenFOAM 2.2.0 is not properly compiled...

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 06:19. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   August 6, 2019, 00:45
Default
  #8
Member
 
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10
silviliril is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
OpenFOAM 2.2.0 is not properly compiled...

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
Hello Bruno Santos,
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:
tar: This does not look like a tar archive gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now
So, I moved on to step No. 10 with .Allwmake.
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:
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
So, Did I successfully compiled the OpenFOAM 2.2.0 or not?
Attached Files
File Type: gz log.make3.gz (3.4 KB, 1 views)
silviliril is offline   Reply With Quote

Old   August 25, 2019, 08:14
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quote:
Originally Posted by silviliril View Post
So, Did I successfully compiled the OpenFOAM 2.2.0 or not?
Quick answer: There are no signs of there being a build problem. If you followed the instructions from the other thread on how to fix the "triad" issue, then it should be OK.
wyldckat is offline   Reply With Quote

Reply

Tags
openfoam 2.2.0, openfoam error


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 12:53
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux Indrajit OpenFOAM Installation 1 April 1, 2012 04:39
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Install OpenFoam on Redhat server maolongliu OpenFOAM Installation 4 May 25, 2010 02:47
Installation 1.5 as a user of server (New bird) chiven OpenFOAM Installation 15 April 26, 2009 22:33


All times are GMT -4. The time now is 19:59.