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

Libstdcso6 ABI problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2005, 11:08
Default I get the following message wh
  #1
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I get the following message when trying to run OpenFOAM in 32 bit mode on 64 bit machine. when I run "which gcc" it give me a location that is different than OpenFOAM/linux directory. It seems that it does not see /OpenFOAM/linux/gcc-4.0.1 as an installation directory that should be used instead of /usr/lib32/lib. Please, can any one tell what I should do?

icoFoam: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by icoFoam)
icoFoam: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /home/maka/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt/libcfdTools.so)
icoFoam: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /home/maka/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt/libOpenFOAM.so)
icoFoam: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /home/maka/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt/libmeshTools.so)
icoFoam: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /home/maka/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt/libsampling.so)
icoFoam: /usr/lib32/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /home/maka/OpenFOAM/OpenFOAM-1.2/lib/linuxGcc4Opt/libtriSurface.so)

Thanks,
Maka
maka is offline   Reply With Quote

Old   November 9, 2005, 02:25
Default I noticed that WM_COMPILER_DIR
  #2
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I noticed that WM_COMPILER_DIR is set wrong:
WM_COMPILER_DIR=/home/mhussin/OpenFOAM/linux/gcc-4.0.1-64
So, I corrected it to /linux/gcc-4.0.1/ but also this did not solve the problem.

/Maka
maka is offline   Reply With Quote

Old   November 9, 2005, 04:40
Default You probably don't have a gcc-
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
You probably don't have a gcc-4.0.1 in the correct position. Make sure WM_64 is not set and install everything as for a 32 bit machine.

Put some print statements in the .../OpenFOAM-1.2/.bashrc file if you want to find out exactly.
mattijs is offline   Reply With Quote

Old   November 10, 2005, 05:16
Default In the light of your suggestio
  #4
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
In the light of your suggestions. I found two ways to solve the problem. The cluster that we have has both 32 bit and 64 bit machines that "share the same file system". So the gcc 32 bit is installed in OpenFOAM/linux while the 64 bit version in OpenFOAM/linuxAMD64.

I noticed that when running in 32 bit mode on the 64 bit machine OpenFOAM expects the gcc files in OpenFOAM/linux$WM_COMPILER_ARCH. $WM_COMPILER_ARCH=-64 in that case. This is because in OpenFOAM-1.2/.bashrc, there exist the line:

if [ "$WM_COMPILER" = "Gcc4" ]; then
export WM_COMPILER_DIR=$WM_PROJECT_INST_DIR/$WM_ARCH/gcc-4.0.1$WM_COMPILER_ARCH
...

Since unpacking the gcc-4.0.1.linux.tgz in linux folder according the installation procedure, only create a folder named gcc-4.0.1 but NOT gcc-4.0.1-64 as expected by the above line in OpenFOAM-1.2/.bashrc. As a result there are two ways to solve the problem:

(1)- modify OpenFOAM-1.2/.bashrc to be:

if [ "$WM_COMPILER" = "Gcc4" ]; then
export WM_COMPILER_DIR=$WM_PROJECT_INST_DIR/$WM_ARCH/gcc-4.0.1
...

in this way running 32 bit mode (either on 32 bit machine or 64 bit one) will use the same gcc folder;

(2) make two copies of the 32 bit gcc vesion inside OpenFOAM/linux directory:
gcc-4.0.1 (used when running in 32 bit mode on 32 bit machine)
gcc-4.0.1-64 (used when running in 32 bit mode on 64 bit machine)


Both solution worked for me. Solution (1) is better since one can run (in 32 bit mode) a parallel simulation on a combination of 32 bit and 64 bit machines if he can adjust some load factor to keep up with difference in the speed between different machines.

Many thanks for your suggestions,
Maka
maka is offline   Reply With Quote

Old   November 10, 2005, 09:51
Default I tried both solutions: Act
  #5
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I tried both solutions:

Actually both work fine when run (in 32 bit mode) a parallel simulation on a combination of 32 bit and 64 bit machines. The last statement that favors solution (1) is wrong.

Regards,
Maka.
maka is offline   Reply With Quote

Old   July 17, 2007, 20:40
Default Also the wmake compiler works
  #6
New Member
 
Oscar G
Join Date: Mar 2009
Location: Bogotá, Bogotá, Colombia
Posts: 27
Rep Power: 17
oscar_j is on a distinguished road
Also the wmake compiler works to you??
Try in $FOAM_APP/solvers/laplacianfoam directory,
Type> wmake

Thanks!
Oscar
oscar_j is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Modelling Heat Transfer Problem Deepak R FLUENT 1 December 6, 2007 09:37
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Libstdcso6 cannot handle TLS data barryw OpenFOAM Installation 2 September 7, 2006 02:02
Error while loading shared libraries libstdcso6 maka OpenFOAM Installation 2 August 11, 2006 04:24
problem in solving "wave generation" problem san FLUENT 2 April 3, 2006 23:37


All times are GMT -4. The time now is 18:37.