|
[Sponsors] |
OF211: ThirdParty and /src compiled, but not /applications... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 15, 2012, 09:57 |
OF211: ThirdParty and /src compiled, but not /applications...
|
#1 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Hi all,
I'm trying to compile OF211 locally on a cluster (in my case the only way to do it appears to be the definition of a customized module containing all the proper environment variables settings). I was successful in compiling the ThirdParty stuff and all the /src folder, but when compilation switched to the /applications folder I got the following kind of errors: Code:
Making dependency list for source file icoFoam.C SOURCE=icoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc44DPOpt/icoFoam.o /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’: /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable ‘nOuterCorr’ /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readPISOControls.H:12: warning: unused variable ‘momentumPredictor’ /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readPISOControls.H:15: warning: unused variable ‘transonic’ g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64Gcc44DPOpt/icoFoam.o -L/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib \ -lfiniteVolume -lOpenFOAM -ldl -lm -o /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/bin/icoFoam /usr/bin/ld: warning: libtriSurface.so, needed by /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libmeshTools.so, needed by /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libPstream.so, needed by /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libOpenFOAM.so, not found (try using -rpath or -rpath-link) Make/linux64Gcc44DPOpt/icoFoam.o: In function `main': icoFoam.C:(.text+0x320f): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int)' icoFoam.C:(.text+0x3282): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int)' Make/linux64Gcc44DPOpt/icoFoam.o: In function `void Foam::reduce<double, Foam::maxOp<double> >(Foam::List<Foam::UPstream::commsStruct> const&, double&, Foam::maxOp<double> const&, int)': icoFoam.C:(.text._ZN4Foam6reduceIdNS_5maxOpIdEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<double, Foam::maxOp<double> >(Foam::List<Foam::UPstream::commsStruct> const&, double&, Foam::maxOp<double> const&, int)]+0x80): undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)' icoFoam.C:(.text._ZN4Foam6reduceIdNS_5maxOpIdEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<double, Foam::maxOp<double> >(Foam::List<Foam::UPstream::commsStruct> const&, double&, Foam::maxOp<double> const&, int)]+0xb7): undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes, int, char const*, long, int)' icoFoam.C:(.text._ZN4Foam6reduceIdNS_5maxOpIdEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<double, Foam::maxOp<double> >(Foam::List<Foam::UPstream::commsStruct> const&, double&, Foam::maxOp<double> const&, int)]+0x103): undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)' icoFoam.C:(.text._ZN4Foam6reduceIdNS_5maxOpIdEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<double, Foam::maxOp<double> >(Foam::List<Foam::UPstream::commsStruct> const&, double&, Foam::maxOp<double> const&, int)]+0x138): undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes, int, char const*, long, int)' Make/linux64Gcc44DPOpt/icoFoam.o: In function `void Foam::reduce<bool, Foam::andOp<bool> >(Foam::List<Foam::UPstream::commsStruct> const&, bool&, Foam::andOp<bool> const&, int)': icoFoam.C:(.text._ZN4Foam6reduceIbNS_5andOpIbEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<bool, Foam::andOp<bool> >(Foam::List<Foam::UPstream::commsStruct> const&, bool&, Foam::andOp<bool> const&, int)]+0x79): undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)' icoFoam.C:(.text._ZN4Foam6reduceIbNS_5andOpIbEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<bool, Foam::andOp<bool> >(Foam::List<Foam::UPstream::commsStruct> const&, bool&, Foam::andOp<bool> const&, int)]+0xb5): undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes, int, char const*, long, int)' icoFoam.C:(.text._ZN4Foam6reduceIbNS_5andOpIbEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<bool, Foam::andOp<bool> >(Foam::List<Foam::UPstream::commsStruct> const&, bool&, Foam::andOp<bool> const&, int)]+0x101): undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)' icoFoam.C:(.text._ZN4Foam6reduceIbNS_5andOpIbEEEEvRKNS_4ListINS_8UPstream11commsStructEEERT_RKT0_i[void Foam::reduce<bool, Foam::andOp<bool> >(Foam::List<Foam::UPstream::commsStruct> const&, bool&, Foam::andOp<bool> const&, int)]+0x139): undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes, int, char const*, long, int)' Make/linux64Gcc44DPOpt/icoFoam.o: In function `Foam::DimensionedField<double, Foam::volMesh>::weightedAverage(Foam::DimensionedField<double, Foam::volMesh> const&) const': icoFoam.C:(.text._ZNK4Foam16DimensionedFieldIdNS_7volMeshEE15weightedAverageERKS2_[Foam::DimensionedField<double, Foam::volMesh>::weightedAverage(Foam::DimensionedField<double, Foam::volMesh> const&) const]+0xb1): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int)' icoFoam.C:(.text._ZNK4Foam16DimensionedFieldIdNS_7volMeshEE15weightedAverageERKS2_[Foam::DimensionedField<double, Foam::volMesh>::weightedAverage(Foam::DimensionedField<double, Foam::volMesh> const&) const]+0x157): undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int)' Make/linux64Gcc44DPOpt/icoFoam.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()': icoFoam.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()]+0x40): undefined reference to `Foam::UPstream::nRequests()' icoFoam.C:(.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()]+0x2f1): undefined reference to `Foam::UPstream::waitRequests(int)' Make/linux64Gcc44DPOpt/icoFoam.o: In function `Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()': icoFoam.C:(.text._ZN4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()]+0x3e): undefined reference to `Foam::UPstream::nRequests()' icoFoam.C:(.text._ZN4Foam14GeometricFieldINS_6VectorIdEENS_12fvPatchFieldENS_7volMeshEE22GeometricBoundaryField8evaluateEv[Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate()]+0x2f1): undefined reference to `Foam::UPstream::waitRequests(int)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::NamedEnum<Foam::mappedPatchBase::sampleMode, 4>::names' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::findTime(Foam::List<Foam::instant> const&, int, double, int&, int&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::~coordinateSystem()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellSet::~cellSet()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryFaceCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UIPstream::UIPstream(Foam::UPstream::commsTypes, int, Foam::DynamicList<char, 0u, 2u, 1u>&, int&, int, bool, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `vtable for Foam::cyclicAMILduInterfaceField' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::calcMapping() const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::mappedPatchBase' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMILduInterfaceField' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::~faceSet()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::calcAMI() const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterfaceField::~cyclicAMILduInterfaceField()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::samplePoints() const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::abort()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::timeNames(Foam::List<Foam::instant> const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellSet::cellSet(Foam::polyMesh const&, Foam::word const&, Foam::IOobject::readOption, Foam::IOobject::writeOption)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::getPointNeighbours(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMILduInterface' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::init(int&, char**&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::sampleMesh() const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UIPstream::UIPstream(int, Foam::PstreamBuffers&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMIPolyPatch::typeName' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::~mappedPatchBase()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam::polyPatch const&, Foam::dictionary const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam::polyPatch const&, Foam::mappedPatchBase const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::samplePolyPatch() const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryPointCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::typeName' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMIPolyPatch' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterface::~cyclicAMILduInterface()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::exit(int)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::smallestDist(Foam::Vector<double> const&, Foam::polyPatch const&, int, Foam::List<int> const&, int&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::writeDict(Foam::Ostream&, bool) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam::polyPatch const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::patchWave::~patchWave()' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::operator>>(Foam::Istream&, Foam::wallPoint&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::write(Foam::Ostream&) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::dictionary const&, Foam::objectRegistry const&)' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterfaceField::transformCoupleField(Foam::Field<double>&, unsigned char) const' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::FaceCellWaveName::debug' /work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::pointToPointPlanarInterpolation(Foam::Field<Foam::Vector<double> > const&, Foam::Field<Foam::Vector<double> > const&, double)' collect2: ld returned 1 exit status make: *** [/work/alh/vesselin/OpenFOAM////OpenFOAM-2.1.1/platforms/linux64Gcc44DPOpt/bin/icoFoam] Error 1 Thank you in advance V. PS-I've already successfully compiled OF-1.7.1 on the same system and with a similar procedure. |
|
October 15, 2012, 12:21 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick question: which Linux distribution and version are you using?
If my guess is right and it's CentOS/SL/RHEL 5.x, then try these instructions: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8
__________________
|
|
October 15, 2012, 12:42 |
|
#3 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Hi Bruno,
and thanks for the quick answer. The clusters' distro is Scientific Linux release 5.8 (Boron), while the available system compiler is gcc 4.4.3. I'll check your link and see if I can figure it out. Regards V. |
|
October 15, 2012, 13:02 |
|
#4 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Ok, I've just taken a look at the link and there's one big problem: interacting as a root administrator is absolutely out of question for me (this is an HPC facility on which I have access only as a user)...Any other suggestions? I don't know if it could be useful, but in the attachment you can find the modulefile which I have used till now for OF211 (just ignore the comments in italian).
Thank you once again V. PS-I don't need to have Paraview compiled. |
|
October 15, 2012, 17:23 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Vesselin,
Wow, a fully module based environment... By what I read in the file attached, you don't need root permissions. But you're missing several environment variables. I would say that some of the most critical are these four lines that seem to be missing: Code:
prepend-path LD_LIBRARY_PATH $::env(WM_PROJECT_DIR)/platforms/$::env(WM_OPTIONS)/lib/dummy prepend-path LD_LIBRARY_PATH $::env(WM_PROJECT_DIR)/platforms/$::env(WM_OPTIONS)/lib prepend-path LD_LIBRARY_PATH $::env(WM_PROJECT_DIR)/platforms/$::env(WM_OPTIONS)/lib/openmpi-$::env(mpiversion) prepend-path LD_LIBRARY_PATH $::env(FOAM_EXT_LIBBIN)
Bruno
__________________
|
|
October 15, 2012, 18:37 |
|
#6 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Hi Bruno,
thank you very much, tomorrow I'll check carefully the environmental variables and see if the situation gets better! About the modules, well when I talked to the cluster administrators about maintaining a "my own" OF version on their machine they just told me that this is the only way to load customized executables/softwares: actually it works pretty fine with OF-1.7.1 and I'm sure it will also with OF-211! Thank you once again, I will keep you in touch V. |
|
October 18, 2012, 13:05 |
|
#7 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Hi Bruno,
apparently now the whole code is correctly compiled and up and running (I've launched different solvers and it' seems all ok). It was achieved just by adding the following three lines (from the four you posted above) in the modulefile: Code:
prepend-path LD_LIBRARY_PATH $::env(WM_PROJECT_DIR)/platforms/$::env(WM_OPTIONS)/lib/dummy prepend-path LD_LIBRARY_PATH $::env(WM_PROJECT_DIR)/platforms/$::env(WM_OPTIONS)/lib prepend-path LD_LIBRARY_PATH $::env(FOAM_EXT_LIBBIN) Regards V. |
|
October 18, 2012, 15:55 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Vesselin,
Mmm... I'm guessing that with only those 3 lines, you will not be able to run OpenFOAM in parallel... this was why I pointed out for you to look at "settings.csh" Best regards, Bruno
__________________
|
|
October 18, 2012, 16:53 |
|
#9 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Hi bruno,
I'm happy to say that your guess is wrong the solvers work perfectly in parallel, and I think that this can be a consequence of the following two lines in the modulefile: Code:
setenv MPI_ARCH_PATH /caspur/shared/sw/devel/openmpi/1.4.3/gnu/4.4.3 setenv OPAL_PREFIX /caspur/shared/sw/devel/openmpi/1.4.3/gnu/4.4.3 Best regards V. |
|
|
|