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

Critical errors gcc and icoFoam during installation of 15

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 11, 2008, 02:07
Default Hi, I could not see anythin
  #1
New Member
 
S Kumar
Join Date: Mar 2009
Posts: 13
Rep Power: 9
quartzian is on a distinguished road
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 is offline   Reply With Quote

Old   September 11, 2008, 03:35
Default Hi, I looked at some older
  #2
New Member
 
S Kumar
Join Date: Mar 2009
Posts: 13
Rep Power: 9
quartzian is on a distinguished road
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
quartzian is offline   Reply With Quote

Old   September 16, 2008, 13:15
Default I have no idea how your modifi
  #3
New Member
 
Ameya Durve
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 9
ameya is on a distinguished road
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.
ameya is offline   Reply With Quote

Old   December 12, 2008, 13:42
Default Hi. I have the same problem, b
  #4
New Member
 
Renato Pacheco Silva
Join Date: Mar 2009
Location: Uberlândia, MG, Brazil
Posts: 2
Rep Power: 0
rpacheco is on a distinguished road
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?
rpacheco is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 critical errors shuo OpenFOAM Installation 1 November 11, 2008 05:32
Critical errors on gcc and icofoam giuliano OpenFOAM Installation 4 June 25, 2008 13:31
Help with Solving Critical Errors andrewlindsay OpenFOAM Installation 0 October 7, 2006 19:58
Tow Critical Error about GCC amp icoFoam chnrdu OpenFOAM Installation 4 July 8, 2005 06:14
Critical error in the installation test fabi OpenFOAM Installation 1 March 8, 2005 07:07


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