CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compilation problem crtbegino not found (http://www.cfd-online.com/Forums/openfoam-installation/57551-compilation-problem-crtbegino-not-found.html)

fred July 24, 2006 09:07

Hi Evenyone, I still have s
 
Hi Evenyone,

I still have some trouble with the installation.
Even if I follow the procedure on my redhat machine (9, enterprise 3), I have the error message :
/home/bouyer/OpenFOAM/linux/binutils-2.16.1/lib/../i686-pc-linux-gnu/bin/ld: crtbegin.o: pas de fichier tel: Aucun fichier ou répertoire de ce type

which means that the crtbegin.o is not found by the ld ... The *.o files are in the gcc-4.1.1 sub-directories ...

Do you have any idea to overcome this problem ?

Regards,

Frédéric

PS: with binutils 16.1 en gcc4.1.1, same errors with binutils-1.17

fred July 25, 2006 03:01

Hi, Following the message :
 
Hi,

Following the message :

http://www.cfd-online.com/OpenFOAM_D...tml?1149275719

I copy the files *.o in one of the directory suggested by 'g++ -v' ... in one of the ../../gcc-4.1.1 directories ...

But now, I have the undefined reference: ldopen, lderror ...

Do you have any idea to overcome this ?

One more trouble is :

Generating vtkFoamReaderClientServer.cxx
Generating vtkFoamDataClientServer.cxx
Scanning dependencies of target PVFoamReader
Building CXX object CMakeFiles/PVFoamReader.dir/vtkFoamReader.o
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:41:21: erreur: vtkFoam.H : Aucun fichier ou répertoire de ce type
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx: In destructor 'virtual vtkFoamReader::~vtkFoamReader()':
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:111: attention : problème possible détecté dans l'invocation de l'opérateur delete:
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:111: attention : invalid use of undefined type 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: attention : forward declaration of 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:111: note: ni le destructeur ni l'opérateur « delete » spécifique à la classe ne sera appellé, même s'ils sont déclarés lorsque la classe est définie
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx: In member function 'virtual void vtkFoamReader::ExecuteInformation()':
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:144: erreur: invalid use of undefined type 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: erreur: forward declaration of 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:148: erreur: invalid use of undefined type 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: erreur: forward declaration of 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx: In member function 'virtual void vtkFoamReader::Execute()':
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:159: erreur: invalid use of undefined type 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: erreur: forward declaration of 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:185: erreur: invalid use of undefined type 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: erreur: forward declaration of 'struct Foam::vtkFoam'
make[2]: *** [CMakeFiles/PVFoamReader.dir/vtkFoamReader.o] Erreur 1
make[1]: *** [CMakeFiles/PVFoamReader.dir/all] Erreur 2
make: *** [all] Erreur 2


Thanks a lot,

Frédéric

fred July 25, 2006 03:57

Hi, One more message on tha
 
Hi,

One more message on that problem:
"undefined reference : dlopen, dlerror" ...

This is due to the fact that -ldl is missing during the compilation.

I add in the $HOME/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/Make/options the -ldl at the end of LIB_LIBS ...
And all work fine !!!
[Is it possible to add a comment on that point ? in the Wiki procedure ?]

Now I have to face the proble of :
Building CXX object CMakeFiles/PVFoamReader.dir/vtkFoamReader.o
...
...
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: erreur: forward declaration of 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.cxx:185: erreur: invalid use of undefined type 'struct Foam::vtkFoam'
/home/bouyer/OpenFOAM/OpenFOAM-1.3/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/vtkFoamReader.h:47: erreur: forward declaration of 'struct Foam::vtkFoam'
make[2]: *** [CMakeFiles/PVFoamReader.dir/vtkFoamReader.o] Erreur 1
make[1]: *** [CMakeFiles/PVFoamReader.dir/all] Erreur 2
make: *** [all] Erreur 2


Any help would be fine ...

regards,

Frédéric

fred July 25, 2006 05:39

Hi, I read a little the err
 
Hi,

I read a little the error messages during the compilation. The vtkFoam.H was not found because placed in a wrong directory.
I copy the file in the proper directory, and I got the package compiled ...

Hopes this will help in the future ...

Probably, something to add in the wiki procedure ...

Regards,

Frédéric

kumar April 30, 2007 09:36

I need Help. Iam trying to ins
 
I need Help. Iam trying to install 1.4 on a RedHat4 machine. Iam getting different errors.
One of the error is the following.
cannot find -lOpenFOAM
Has any one compiled the new version on RedHat.
This library should be created before calling it.
I have the following files in /home/l_kumar/OpenFOAM/OpenFOAM-1.4/lib directory:
OpenFOAM-1.4]$ ls -l lib/linuxGcc4DPOpt/
total 31216
drwxrwxr-x 2 l_kumar l_kumar 4096 Apr 27 14:38 dummy
drwxrwxr-x 2 l_kumar l_kumar 4096 Apr 27 14:38 lam-7.1.2
-rwxrwxr-x 1 l_kumar l_kumar 376886 Apr 27 15:55 libbasicThermophysicalModels.so
-rwxrwxr-x 1 l_kumar l_kumar 193351 Apr 27 15:59 libchemistryModel.so
-rwxrwxr-x 1 l_kumar l_kumar 1858327 Apr 27 15:58 libcombustionThermophysicalModels.so
-rwxrwxr-x 1 l_kumar l_kumar 1221949 Apr 27 16:33 libcompressibleLESmodels.so
-rwxrwxr-x 1 l_kumar l_kumar 1517183 Apr 27 16:19 libcompressibleTurbulenceModels.so
-rwxrwxr-x 1 l_kumar l_kumar 961805 Apr 27 16:37 libdieselSpray.so
-rwxrwxr-x 1 l_kumar l_kumar 110977 Apr 27 15:50 libdynamicFvMesh.so
-rwxrwxr-x 1 l_kumar l_kumar 2559812 Apr 27 15:49 libdynamicMesh.so
-rwxrwxr-x 1 l_kumar l_kumar 56415 Apr 27 14:41 libedgeMesh.so
-rwxrwxr-x 1 l_kumar l_kumar 322050 Apr 27 15:52 libengine.so
-rwxrwxr-x 1 l_kumar l_kumar 119572 Apr 27 16:38 liberrorEstimation.so
-rw-rw-r-- 1 l_kumar l_kumar 11408 Apr 27 16:38 libfbsdmalloc.o
-rwxrwxr-x 1 l_kumar l_kumar 11503888 Apr 27 15:42 libfiniteVolume.so
-rwxrwxr-x 1 l_kumar l_kumar 4684 Apr 27 14:31 libfoamUser.so
-rwxrwxr-x 1 l_kumar l_kumar 4684 Apr 27 16:39 libfoamUtil.so
-rwxrwxr-x 1 l_kumar l_kumar 627014 Apr 27 15:52 libfvMotionSolvers.so
-rwxrwxr-x 1 l_kumar l_kumar 158719 Apr 27 16:38 libGstream.so
-rwxrwxr-x 1 l_kumar l_kumar 20443 Apr 27 15:42 libIMlib.so
-rwxrwxr-x 1 l_kumar l_kumar 1544511 Apr 27 16:28 libincompressibleLESmodels.so
-rwxrwxr-x 1 l_kumar l_kumar 340027 Apr 27 16:00 libincompressibleTransportModels.so
-rwxrwxr-x 1 l_kumar l_kumar 2281374 Apr 27 16:13 libincompressibleTurbulenceModels.so
-rwxrwxr-x 1 l_kumar l_kumar 481922 Apr 27 16:01 libinterfaceProperties.so
-rwxrwxr-x 1 l_kumar l_kumar 10340 Apr 27 14:39 liblagrangian.so
-rwxrwxr-x 1 l_kumar l_kumar 201072 Apr 27 15:58 liblaminarFlameSpeedModels.so
-rwxrwxr-x 1 l_kumar l_kumar 207346 Apr 27 16:21 libLESdeltas.so
-rwxrwxr-x 1 l_kumar l_kumar 722146 Apr 27 16:21 libLESfilters.so
-rwxrwxr-x 1 l_kumar l_kumar 39889 Apr 27 15:55 libliquidMixture.so
-rwxrwxr-x 1 l_kumar l_kumar 387737 Apr 27 15:54 libliquids.so
-rwxrwxr-x 1 l_kumar l_kumar 1708198 Apr 27 14:45 libmeshTools.so
-rwxrwxr-x 1 l_kumar l_kumar 37584 Apr 27 15:42 libMGridGenGamgAgglomeration.so
-rwxrwxr-x 1 l_kumar l_kumar 85372 Apr 27 15:42 libMGridGen.so
-rwxrwxr-x 1 l_kumar l_kumar 60931 Apr 27 15:53 libODE.so
-rwxrwxr-x 1 l_kumar l_kumar 91737 Apr 27 15:59 libpdf.so
-rwxrwxr-x 1 l_kumar l_kumar 91419 Apr 27 15:53 librandomProcesses.so
-rwxrwxr-x 1 l_kumar l_kumar 323115 Apr 27 15:43 libsampling.so
-rwxrwxr-x 1 l_kumar l_kumar 291776 Apr 27 16:38 libsolidParticle.so
-rwxrwxr-x 1 l_kumar l_kumar 378452 Apr 27 15:53 libspecie.so
-rwxrwxr-x 1 l_kumar l_kumar 57340 Apr 27 15:54 libthermophysicalFunctions.so
-rwxrwxr-x 1 l_kumar l_kumar 113606 Apr 27 15:50 libtopoChangerFvMesh.so
-rwxrwxr-x 1 l_kumar l_kumar 553179 Apr 27 14:40 libtriSurface.so
-rwxrwxr-x 1 l_kumar l_kumar 80589 Apr 27 14:31 libz.so


+ ./Allwmake
+ cd solvers
+ wmake all
make[1]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/solvers/financial'
make[2]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/solvers/financial/financialFoa m'
Making dependency list for source file financialFoam.C
make[2]: Leaving directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/solvers/financial/financialFoa m'
make[2]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/solvers/financial/financialFoa m'
SOURCE=financialFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3
-DNoRepository -ftemplate-depth-40 -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/l_kumar/OpenFOAM/
OpenFOAM-1.4/src/sampling/lnInclude -IlnInclude -I. -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -pthr
ead -c $SOURCE -o Make/linuxGcc4DPOpt/financialFoam.o
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate
-depth-40 -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/sampling/
lnInclude -IlnInclude -I. -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGcc4DPOpt/fi
nancialFoam.o -L/home/l_kumar/OpenFOAM/OpenFOAM-1.4/lib/linuxGcc4DPOpt \
-lsampling -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/bin/linuxGcc4DP
Opt/financialFoam
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[2]: *** [/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/bin/linuxGcc4DPOpt/financialFo am] Error 1
make[2]: Leaving directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/solvers/financial/financialFoa m'
make[1]: *** [financialFoam] Error 2
make[1]: Leaving directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/solvers/financial'
make: *** [financial] Error 2
+ cd utilities
+ wmake all
make[1]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh'
make[2]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion'
make[3]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/netg enNeutralToFoam'
Making dependency list for source file netgenNeutralToFoam.C
make[3]: Leaving directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/netg enNeutralToFoam'
make[3]: Entering directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/netg enNeutralToFoam'
SOURCE=netgenNeutralToFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cas
t -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPI
C -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/netgenNeutralToFoam.o
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate
-depth-40 -IlnInclude -I. -I/home/l_kumar/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGcc4DPOpt/n
etgenNeutralToFoam.o -L/home/l_kumar/OpenFOAM/OpenFOAM-1.4/lib/linuxGcc4DPOpt \
-lOpenFOAM -liberty -ldl -lm -o /home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/bin/linuxGcc4DPOpt/netgenNeutra lToFoa
m
/usr/bin/ld: cannot find -lOpenFOAM
collect2: ld returned 1 exit status
make[3]: *** [/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/bin/linuxGcc4DPOpt/netgenNeutr alToFoam] Error 1
make[3]: Leaving directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/netg enNeutralToFoam'
make[2]: *** [netgenNeutralToFoam] Error 2
make[2]: Leaving directory `/home/l_kumar/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion'
make[1]: *** [conversion] Error 2


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