CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Critical errors gcc and icoFoam during installation of 15 (http://www.cfd-online.com/Forums/openfoam-installation/57272-critical-errors-gcc-icofoam-during-installation-15-a.html)

quartzian September 11, 2008 02:07

Hi, I could not see anythin
 
Hi,

I could not see anything (after spending a couple of hours) on
critical errors for OpenFOAM 1.5 (there were posts on 1.4, 1.3,
etc., but not for 1.5 ... at least I didn't see any).

So here is what I did. I followed the instructions on the
websites,

http://www.opencfd.co.uk/openfoam/linux64.html
and
http://www.opencfd.co.uk/openfoam/doc/README.html

viz.,
1. Created a directory in my home directory called OpenFOAM
2. Downloaded and copied all the tarfiles to that directory
3. Untarred them in sequence, first with the source tars for
OpenFOAM and ThirdParty and then the binaries
4. Added the lines in my .cshrc file so that OpenFOAM's
etc/cshrc file is sourced.
5. Sourced my .cshrc
6. Typed foamInstallationTest to check the install.

I get the errors below, saying there are two critical
errors, one related to gcc and another related to icoFoam.

BTW, $FOAM_APPBIN is empty and $FOAM_LIBBIN has a
directory called openmpi-1.2.6 (I saw that this was asked of
someone who posted a query on this topic earlier ... but that
was with an earlier (1.4?) build of OpenFOAM).

Thanks for any help. Errors are below the message.

Kumar

Executing /home/u403152/OpenFOAM/OpenFOAM-1.5/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: tcsh
Host: C4linux02
OS: Linux version 2.6.9-5.ELsmp
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/u403152/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/u403152/OpenFOAM/u403152-1.5 yes no
$WM_THIRD_PARTY_DIR /home/u403152/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/u403152/OpenFOAM/OpenFOAM-1.5 yes yes yes

$FOAM_APPBIN ...1.5/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...1.5/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../u403152/OpenFOAM/OpenFOAM-1.5/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.5/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...FOAM/u403152-1.5/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : 3.4.3
Minimum required: 4.2.0

gcc 3.4.3
WARNING: Conflicting installations:
OpenFOAM settings : /home/u403152/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.3 /bin/gzip
tar 1.14 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/u403152/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_C4linux02 Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.

quartzian September 11, 2008 03:35

Hi, I looked at some older
 
Hi,

I looked at some older posts and saw something that helped. Essentially, what the problem was is that the downloads create these directories called linux64... and those directories are empty. So I deleted them, and instead created a link so that those names pointed to the corresponding 32 bit versions of linux.

This made the foamInstallationTest work.

Three questions:
1. Is this a bug that needs to be fixed in future tarballs of OpenFOAM?
2. Is this just a patch-up solution or do I need
to do something better?
3. Right now, for starters, I am just using the
existing functionality. I am planning to do
source code modification for my specialized
applications when necessary. At that point I
will have to do the full compilation of the
code myself.
Will the modifications that I have done to get
things to work right now work later if I do this?

Thanks,

Kumar

ameya September 16, 2008 13:15

I have no idea how your modifi
 
I have no idea how your modificaton worked even when the eror says that your gcc version is lower.
But if it's running dont bother. I fyou get errors in compilation then i suggest you copy linux 32 directory such that your gcc path in .cshrc will change from

ThirdParty/gcc-4.3.1/platforms/linux

to

ThirdParty/gcc-4.3.1/linux


(move required linux folder from platforms folder and bring it in gcc-4.3.1 folder)


This has worked or me so far.

rpacheco December 12, 2008 12:42

Hi. I have the same problem, b
 
Hi. I have the same problem, but could not solve doing the same. I use x86_64 processor. Do you know how to solve it?


All times are GMT -4. The time now is 20:24.