CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error while loading shared libraries libstdcso6 (https://www.cfd-online.com/Forums/openfoam-installation/57625-error-while-loading-shared-libraries-libstdcso6.html)

maka August 9, 2006 13:07

I installed V1.3 succesfully f
 
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 August 10, 2006 13:15

I attach here the result of fo
 
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.

mattijs August 11, 2006 04:24

Looks like your C++ compiler d
 
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.


All times are GMT -4. The time now is 05:14.