CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compiling errors for OpenFOAM 13 (http://www.cfd-online.com/Forums/openfoam-installation/57613-compiling-errors-openfoam-13-a.html)

brucejimo October 4, 2006 01:33

I have no idea of what happene
 
I have no idea of what happened. Can anybody figure it out for me? Thank you.

/home/jimo/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/jimo/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/scalarTransport Foam
g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/jimo/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/jimo/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread Make/linuxGcc4DPOpt/scalarTransportFoam.o -L/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt \
-lfiniteVolume -lOpenFOAM -liberty -o /home/jimo/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/scalarTransport Foam
/home/jimo/OpenFOAM/linux/binutils-2.16.1/bin/ld: warning: libPstream.so, needed by /home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
Make/linuxGcc4DPOpt/scalarTransportFoam.o: In function `void Foam::Pstream::scatter<double>(Foam::List<foam::ps tream::commsstruct> const&, double&)':
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_ 11commsStructEEERT_[void Foam::Pstream::scatter<double>(Foam::List<foam::ps tream::commsstruct> const&, double&)]+0x9c): undefined reference to `Foam::IPstream::IPstream(int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_ 11commsStructEEERT_[void Foam::Pstream::scatter<double>(Foam::List<foam::ps tream::commsstruct> const&, double&)]+0x155): undefined reference to `Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifPstream::~OPstream()'
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_ 11commsStructEEERT_[void Foam::Pstream::scatter<double>(Foam::List<foam::ps tream::commsstruct> const&, double&)]+0x191): undefined reference to `Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifPstream::~OPstream()'
Make/linuxGcc4DPOpt/scalarTransportFoam.o: In function `void Foam::Pstream::gather<double,> >(Foam::List<foam::pstream::commsstruct> const&, double&, Foam::maxOp<double> const&)':
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKN S_4ListINS0_11commsStructEEERT _RKT0_[void Foam::Pstream::gather<double,> >(Foam::List<foam::pstream::commsstruct> const&, double&, Foam::maxOp<double> const&)]+0xcf): undefined reference to `Foam::IPstream::IPstream(int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKN S_4ListINS0_11commsStructEEERT _RKT0_[void Foam::Pstream::gather<double,> >(Foam::List<foam::pstream::commsstruct> const&, double&, Foam::maxOp<double> const&)]+0x18e): undefined reference to `Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifPstream::~OPstream()'
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam7Pstream6gatherIdNS_5maxOpIdEEEEvRKN S_4ListINS0_11commsStructEEERT _RKT0_[void Foam::Pstream::gather<double,> >(Foam::List<foam::pstream::commsstruct> const&, double&, Foam::maxOp<double> const&)]+0x1a3): undefined reference to `Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifPstream::~OPstream()'
Make/linuxGcc4DPOpt/scalarTransportFoam.o: In function `Foam::dimensioned<double> Foam::sum<double,>(Foam::GeometricField<double,> const&)':
scalarTransportFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text._ZN4Foam3sumIdNS_12fvPatchFieldENS_11surface MeshEEENS_11dimensionedIT_EERK NS_14GeometricFieldIS4_T0_T1_EE[Foam::dimensioned<double> Foam::sum<double,>(Foam::GeometricField<double,> const&)]+0x59): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifPstream'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libfiniteVolume.so: undefined reference to `Foam::IPstream::read(int, char*, int)'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable <foam::string,>&)'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()'
/home/jimo/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/libfiniteVolume.so: undefined reference to `Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifPstream::write(int, char const*, int, bool)'
collect2: ld returned 1 exit status
make: *** [/home/jimo/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/scalarTranspor tFoam] Error 1

mattijs October 4, 2006 03:30

Do an ldd $FOAM_LIBBIN/lib
 
Do an

ldd $FOAM_LIBBIN/libOpenFOAM.so

and check for libPstream.so. My one is in $FOAM_LIBBIN/lam-7.1.2/libPstream.so but might be different (e.g. .../mpi/libPstream.so) for you depending on your WM_MPLIB setting in your ~/.OpenFOAM-1.3.2/bashrc.

gschaider October 4, 2006 03:34

It looks like your LD_LIBRARY_
 
It looks like your LD_LIBRARY_PATH is not set correctly.

May I ask how you started wmake? (in a shell, in (X)Emacs ....)
Some people here have had similar error messages: what usually happened was: they started XEmacs from their desktop-environment. XEmacs inherited the environment variables from the "desktop-process" which doesn't know about OpenFOAM. When they tried to compile in XEmacs (which is a good thing) linking failed with similar errors. If they started XEmacs from a shell that has all the environment variables set for OpenFOAM it inherits these values and all is well.

(insert the IDE of your choice instead of XEmacs, the same applies)

brucejimo October 5, 2006 00:01

I've solved this problem by co
 
I've solved this problem by compiling libOpenFOAM.so again. Thank you very much. However, I do have another error later.

SOURCE_DIR=.
SOURCE=chemkinToFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/jimo/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/specie/lnInclude -I/home/jimo/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/combustion/lnInclude -I/home/jimo/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/chemkinToFoam.o
In file included from chemkinToFoam.C:31:
/home/jimo/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/combustion/lnInclude/c hemkinReader.H:49:23: error: FlexLexer.h: No such file or directory
/home/jimo/OpenFOAM/OpenFOAM-1.3/src/thermophysicalModels/combustion/lnInclude/c hemkinReader.H:64: error: expected class-name before '{' token
make: *** [Make/linuxGcc4DPOpt/chemkinToFoam.o] Error 1

I searched FlexLexer.h but didn't find it. I guess I have other errors earlier to cause this problem.
How can I check all the errors after the
compilation? Is there any log file to read?

Thanks.


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