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

Compiling errors for OpenFOAM 13

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2006, 02:33
Default I have no idea of what happene
  #1
New Member
 
Jinyu Zhu
Join Date: Mar 2009
Posts: 2
Rep Power: 0
brucejimo is on a distinguished road
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.C.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.C.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_ 11commsStructEEERT_[void Foam::Pstream::scatter<double>(Foam::List<foam::ps tream::commsstruct> const&, double&)]+0x155): undefined reference to `Foam:Pstream::~OPstream()'
scalarTransportFoam.C.text._ZN4Foam7Pstream7scatterIdEEvRKNS_4ListINS0_ 11commsStructEEERT_[void Foam::Pstream::scatter<double>(Foam::List<foam::ps tream::commsstruct> const&, double&)]+0x191): undefined reference to `Foam:Pstream::~OPstream()'
Make/linuxGcc4DPOpt/scalarTransportFoam.o: In function `void Foam::Pstream::gather<double,> >(Foam::List<foam::pstream::commsstruct> const&, double&, Foam::maxOp<double> const&)':
scalarTransportFoam.C.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.C.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:Pstream::~OPstream()'
scalarTransportFoam.C.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:Pstream::~OPstream()'
Make/linuxGcc4DPOpt/scalarTransportFoam.o: In function `Foam::dimensioned<double> Foam::sum<double,>(Foam::GeometricField<double,> const&)':
scalarTransportFoam.C.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:Pstream'
/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:Pstream::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
brucejimo is offline   Reply With Quote

Old   October 4, 2006, 04:30
Default Do an ldd $FOAM_LIBBIN/lib
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   October 4, 2006, 04:34
Default It looks like your LD_LIBRARY_
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 5, 2006, 01:01
Default I've solved this problem by co
  #4
New Member
 
Jinyu Zhu
Join Date: Mar 2009
Posts: 2
Rep Power: 0
brucejimo is on a distinguished road
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.
brucejimo 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
Various errors: Floating point, UDF compiling, etc SEMC FLUENT 1 September 6, 2011 10:08
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit coompressor OpenFOAM Installation 0 November 12, 2008 20:53
[OpenFOAM] Help Got errors when compiling PVFoamReaderso joey ParaView 2 September 19, 2006 02:43
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 09:54


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