|
[Sponsors] |
OpenFoam-1.7.x on Suse 11.2 (64bit) does not compile |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 26, 2010, 03:25 |
OpenFoam-1.7.x on Suse 11.2 (64bit) does not compile
|
#1 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Hi,
I'm working with OF1.7.0 on Suse 11.2 (64bit) without any problems. Now I'm trying to make OF1.7.x work but without success. gcc : 4.4.4 (foamInstallationcheck says 4.4.1) qt: 4.5.3 cmake: 2.6.4 flex: 2.5.35 bison: 2.4.1 This is a small part of the error message: Code:
tream&, Foam::triSurface const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::write(Foam::Ostream&) const' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::DimensionedField<Foam::SymmTensor<double>, Foam::triSurfaceGeoMesh>::typeName' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::DimensionedField<Foam::SphericalTensor<double>, Foam::triSurfaceGeoMesh>::typeName' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::labelledTri> const&, Foam::Field<Foam::Vector<double> > const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::labelledTri>&, Foam::List<Foam::geometricSurfacePatch> const&, Foam::Field<Foam::Vector<double> >&, bool)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::decompositionMethod::New(Foam::dictionary const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::scalePoints(double const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::IPstream::waitRequests()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::DimensionedField<Foam::Tensor<double>, Foam::triSurfaceGeoMesh>::typeName' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Vector<double> > const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::subsetMesh(Foam::List<bool> const&, Foam::List<int>&, Foam::List<int>&) const' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::faceTriangulation::faceTriangulation(Foam::Field<Foam::Vector<double> > const&, Foam::face const&, Foam::Vector<double> const&, bool)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::Particle<Foam::passiveParticle>::typeName' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::~triSurface()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::~triSurface()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::operator=(Foam::triSurface const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::edgeOwner() const' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::labelledTri> const&, Foam::List<Foam::geometricSurfacePatch> const&, Foam::Field<Foam::Vector<double> > const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::decompositionMethod::typeName' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)' collect2: ld returned 1 exit status make[2]: *** [/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/IFCLookUpTableGen] Fehler 1 make[2]: Leaving directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/IFCLookUpTableGen' make[1]: *** [IFCLookUpTableGen] Fehler 2 make[2]: Entering directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' Making dependency list for source file mixtureAdiabaticFlameT.C make[2]: Leaving directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[2]: Entering directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' SOURCE=mixtureAdiabaticFlameT.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt \ -lspecie -lOpenFOAM -liberty -ldl -lm -o /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link) /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `vtable for Foam::OPstream' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::waitRequests()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::~OPstream()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::IPstream(Foam::Pstream::commsTypes, int, int, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::exit(int)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::waitRequests()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::abort()' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::IPstream::read(Foam::Pstream::commsTypes, int, char*, long)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::init(int&, char**&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so: undefined reference to `Foam::Pstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)' collect2: ld returned 1 exit status make[2]: *** [/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Fehler 1 make[2]: Leaving directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[1]: *** [mixtureAdiabaticFlameT] Fehler 2 make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert. make[1]: Leaving directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical' make: *** [thermophysical] Fehler 2 make: Das Target »application« wurde wegen Fehlern nicht aktualisiert. Regards, Toni EDIT: These are the first lines when I type in "wmake all solvers" in the applications folder: Code:
kressnt@chml1005:~/OpenFOAM/OpenFOAM-1.7.x/applications> wmake all solvers make[1]: Entering directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/basic' make[2]: Entering directory `/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/basic/laplacianFoam' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/laplacianFoam.o -L/home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt \ -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/laplacianFoam /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: warning: libtriSurface.so, needed by /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libfiniteVolume.so, not found (try using -rpath or -rpath-link) /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: warning: libmeshTools.so, needed by /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libfiniteVolume.so, not found (try using -rpath or -rpath-link) /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libOpenFOAM.so, not found (try using -rpath or -rpath-link) /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&)' /home/kressnt/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)' |
|
August 26, 2010, 06:28 |
Problem solved
|
#2 |
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Looks like the problem is solved.
It seems i have a fundamental problem with my linux configuration. I followed the install guide on openfoam.com: Code:
source the etc/bashrc file by adding the following line to the end of your $HOME/.bashrc file: . $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc then type “. $HOME/.bashrc” in the current terminal window As I experienced before I have to type in Code:
. $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc Otherwise the compiling fails (or the already installed version 1.7.0 is not working). I'm not a linux expert. Thats why I don't know what to do to solve that issue. |
|
August 26, 2010, 18:24 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Toni,
I've also had those problems with openSUSE's "$HOME/.bashrc", but only with older versions, such as 10.3... and I don't remember ever being able to fix them I'm assuming that your $HOME/.bashrc file had this on its end: Code:
test -s ~/.alias && . ~/.alias || true So, lets try to figure what is going wrong with your system If I were in your shoes, I would:
Best regards, Bruno
__________________
|
|
August 27, 2010, 04:32 |
|
#4 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
__________________
Regards, Gijs |
|
August 27, 2010, 04:43 |
|
#5 | ||
Member
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17 |
Hi Bruno,
thanks for your very detailed reply. Quote:
Here is what I did: Code:
echo "Got Here 1" export EDITOR=/usr/bin/kwrite echo "Got Here 2" test -s ~/.alias && . ~/.alias || true echo "Got Here 3" #. $HOME/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc . $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc echo "Got Here 4" Code:
Got Here 1 Got Here 2 Got Here 3 Got Here 4 Quote:
The very very very VERY "fascinating" thing is now: It works! Without changing a thing it works. I don't have to type in the OF bashrc path by hand anymore. Not sure what to think of that honestly. Regards, Toni |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x | wyldckat | OpenFOAM Bugs | 18 | October 21, 2010 06:51 |
OpenFOAM Live USB based on openSUSE 11.1 created with SUSE Studio | alberto | OpenFOAM | 40 | May 23, 2010 17:15 |
OpenFOAM install on Suse 11.1 and 11.2 | mkt | OpenFOAM Installation | 5 | October 14, 2009 03:20 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |
Compile new solver under SuSE 64bit OS | hsieh | OpenFOAM Running, Solving & CFD | 3 | September 8, 2005 12:56 |