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

Error while loading shared libraries libstdcso6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2006, 14:07
Default I installed V1.3 succesfully f
  #1
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I installed V1.3 succesfully from binary on my workstation Fedora 2 but when I install on our linux cluster (gentoo), I get the following error message:

blockMesh: error while loading shared libraries: libstdc++.so.6: cannot handle TLS data.

I passed both foamSystemCheck and foamInstallationCheck tests.

I installed previously V1.1 and 1.2 on this cluster with no problem.

I tried to compile OpenFOAM V1.3 using ./Allwmake but I got some errors and the executables was not generated. Previously, I compiled V1.1 and V1.2 with no problems.

Some of the Errors while compiling:

SOURCE_DIR=chemistryReaders/chemkinReader
SOURCE=chemistryReaders/chemkinReader/chemkinLexer.L ; foamFlex++ -f $SOURCE ; mv lex.yy.cc Make/linuxGcc4DPOpt/chemkinLexer.C ; g++ -m32 -Dlinux -DDP -Wa
ll -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/maka/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/ho
me/maka/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/basic/lnInclude -I/home/maka/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/specie/lnInclude -
I/home/maka/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c Make/linuxGcc4DPOpt/chemkinLexer.C -o Make/linuxGcc4DPOpt/
chemkinLexer.o
/bin/sh: foamFlex++: command not found
mv: cannot stat `lex.yy.cc': No such file or directory
g++: Make/linuxGcc4DPOpt/chemkinLexer.C: No such file or directory
g++: no input files
make: *** [Make/linuxGcc4DPOpt/chemkinLexer.o] Error 1




SOURCE_DIR=.
SOURCE=laplacianFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/maka/Op
enFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/maka/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o
Make/linuxGcc4DPOpt/laplacianFoam.o
/home/maka/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/maka/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/laplacianFoam
g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/maka/OpenFOAM/OpenFOAM-1.3/src/fi
niteVolume/lnInclude -I/home/maka/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread Make/linuxGcc4DPOpt/laplacianFoam.o -L/
home/maka/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt \
-lfiniteVolume -lOpenFOAM -liberty -o /home/maka/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/laplacianFoam
/home/maka/OpenFOAM/linux/gcc-4.1.0/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../.. /../libstdc++.so: undefined reference to `___tls_get_addr'
collect2: ld returned 1 exit status
make: *** [/home/maka/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/laplacianFoam] Error 1



Can anybody help spot the error.

best regards,
Maka
maka is offline   Reply With Quote

Old   August 10, 2006, 14:15
Default I attach here the result of fo
  #2
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I attach here the result of foamInstallationTest, see the following:

Executing /home/maka/OpenFOAM/OpenFOAM-1.3/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: troma
OS: Linux version 2.4.25
User: maka
User_config: /home/maka/.bashrc
Foam_config: /home/maka/.OpenFOAM-1.3/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/maka/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/maka/OpenFOAM/maka-1.3 yes no
$FOAM_JOB_DIR /home/maka/OpenFOAM/jobControl yes yes
-------------------------------------------------------------------------------


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

$FOAM_USER_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no
$FOAM_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes
$WM_DIR .../maka/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH ...maka/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...mico-2.3.11/platforms/linuxGcc4DPOpt yes yes yes
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes
$FOAM_USER_LIBBIN ...nFOAM/maka-1.3/lib/linuxGcc4DPOpt yes yes no
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.0 /home/maka/OpenFOAM/linux/gcc-4.1.0/bin/gcc
java 1.4.2_05 /home/maka/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
gzip 1.3.5 /bin/gzip
tar 1.3.5 /bin/tar
icoFoam ...M/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_troma 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 Foam enviroment.

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

Base configuration ok.

Critical systems ok.
maka is offline   Reply With Quote

Old   August 11, 2006, 05:24
Default Looks like your C++ compiler d
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Looks like your C++ compiler does not compile correctly (undefined reference to `___tls_get_addr' )

Try recompiling gcc from sources and see if you can compile&/link any (non-Foam) c++ program.
mattijs is offline   Reply With Quote

Reply


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
error while loading shared libraries: libXm.so.3 Renato Pacheco FLUENT 3 July 3, 2008 13:48
gambit "error while loading shared libraries" ggrant FLUENT 1 June 25, 2008 11:37
FoamXHostBrowser error while loading shared libraries libFoamXso cannot restore segment prot after reloc Permission denied mdmk OpenFOAM Pre-Processing 0 June 25, 2008 01:50
error while loading shared libraries: libXm.so.3 Emiliano FLUENT 1 September 5, 2007 21:03
Error when loading a shared library rid FLUENT 4 May 29, 2006 15:51


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