|
[Sponsors] |
February 3, 2009, 13:17 |
Hello,
I've tried to compil
|
#1 |
Member
Oliver Borm
Join Date: Mar 2009
Posts: 60
Rep Power: 17 |
Hello,
I've tried to compile OpenFOAM-1.5 with all patches from git on ubuntu 8.10 Intrepid Ibex with the default installed system gcc-4.3.2 compiler. And I'm getting the error message, shown below. If I install gcc-4.2.4 the compilation is fine and evene on ubuntu 8.04, no problems occur with the same setup. So, all paths, etc. should be setup correctly. Has anybody some experience in compiling OpenFOAM-1.5 with gcc>=4.3.2 and has maybe a patch for that problem or knows howto resolve it? + wmake libso finiteVolume make[1]: Entering directory `/path/to/OpenFOAM-1.5/src/finiteVolume' SOURCE=fvMesh/wallDist/wallDistReflection.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/path/to/OpenFOAM-1.5/src/triSurface/lnInclude -I/path/to/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/path/to/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc/wallDistReflection.o /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/wallPointData.C: In function 'Foam:stream& Foam::operator<<(foam::ostream&,>&) [with Type = Foam::Vector<double>]': /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:264: instantiated from 'void Foam::FaceCellWave<type>::checkCyclic(const Foam::polyPatch&) const [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:787: instantiated from 'void Foam::FaceCellWave<type>::handleCyclicPatches() [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:1059: instantiated from 'Foam::label Foam::FaceCellWave<type>::iterate(Foam::label) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:854: instantiated from 'Foam::FaceCellWave<type>::FaceCellWave(const Foam::polyMesh&, const Foam::labelList&, const Foam::List<t>&, Foam::UList<t>&, Foam::UList<t>&, Foam::label) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/MeshWave.C:65: instantiated from 'Foam::MeshWave<type>::MeshWave(const Foam::polyMesh&, const Foam::labelList&, const Foam::List<t>&, Foam::label) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/patchDataWave.C:233: instantiated from 'void Foam::patchDataWave<transfertype>::correct() [with TransferType = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/patchDataWave.C:193: instantiated from 'Foam::patchDataWave<transfertype>::patchDataWave( const Foam::polyMesh&, const Foam::labelHashSet&, const Foam::List<foam::field<typename>*>&, bool) [with TransferType = Foam::wallPointData<foam::vector<double> >]' fvMesh/wallDist/wallDistData.C:100: instantiated from 'void Foam::wallDistData<transfertype>::correct() [with TransferType = Foam::wallPointData<foam::vector<double> >]' fvMesh/wallDist/wallDistReflection.C:54: instantiated from here /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/wallPointData.C:48: error: no matching function for call to 'operator<<(Foam:stream&, const Foam::wallPoint&)' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/IOstream.H:550: note: candidates are: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::IOstream::streamFormat&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/char.H:51: note: Foam:stream& Foam::operator<<(Foam:stream&, char) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/char.H:52: note: Foam:stream& Foam::operator<<(Foam:stream&, const char*) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/string.H:214: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::string&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/string.H:68: note: Foam:stream& Foam::operator<<(Foam:stream&, const std::string&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/word.H:129: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::word&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/fileName.H:173: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::fileName&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/int.H:59: note: Foam:stream& Foam::operator<<(Foam:stream&, int) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/bool.H:51: note: Foam:stream& Foam::operator<<(Foam:stream&, bool) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Scalar.H:266: note: Foam:stream& Foam::operator<<(Foam:stream&, Foam::floatScalar) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Scalar.H:266: note: Foam:stream& Foam::operator<<(Foam:stream&, Foam::doubleScalar) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/IOstream.H:551: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::IOstream::versionNumber&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/IOstream.H:562: note: Foam::IOstream& Foam::operator<<(Foam::IOstream&, Foam::IOstream& (*)(Foam::IOstream&)) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Ostream.H:193: note: Foam:stream& Foam::operator<<(Foam:stream&, Foam:stream& (*)(Foam:stream&)) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Ostream.H:199: note: Foam:stream& Foam::operator<<(Foam:stream&, Foam::IOstream& (*)(Foam::IOstream&)) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/error.H:182: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::error&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/error.H:287: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::IOerror&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/token.H:424: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::token&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/token.H:437: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::token::compound&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/token.H:434: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::token::punctuationToken&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/token.H:435: note: std::ostream& Foam::operator<<(std::ostream&, const Foam::token::punctuationToken&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/token.H:436: note: std::ostream& Foam::operator<<(std::ostream&,>&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/long.H:58: note: Foam:stream& Foam::operator<<(Foam:stream&, long int) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/dimensionSet.H:296: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::dimensionSet&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/uint.H:58: note: Foam:stream& Foam::operator<<(Foam:stream&, unsigned int) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/entry.H:177: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::entry&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/dictionary.H:358: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::dictionary&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Pstream.H:510: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::Pstream::commsStruct&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Switch.H:136: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::Switch&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/instant.H:147: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::instant&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/patchIdentifier.H:150: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::patchIdentifier&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/empty.H:85: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::empty&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/objectHit.H:123: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::objectHit&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyPatch.H:366: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::polyPatch&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/cellModel.H:175: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::cellModel&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/cellShape.H:164: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::cellShape&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/polyBoundaryMesh.H:199: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::polyBoundaryMesh&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/boundBox.H:158: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::boundBox&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/pointZone.H:249: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::pointZone&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/faceZone.H:299: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::faceZone&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/cellZone.H:247: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::cellZone&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/lduSchedule.H:68: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::lduScheduleEntry&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/globalMeshData.H:409: note: Foam:stream& Foam::operator<<(Foam:stream&, const Foam::globalMeshData&) /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/wallPointData.C: In function 'Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::wallPointData<type>&) [with Type = Foam::Vector<double>]': /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:104: instantiated from 'static Foam::Istream& Foam::FaceCellWave<type>::readFaces(Foam::label&, Foam::labelList&, Foam::List<t>&, Foam::Istream&) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:497: instantiated from 'Foam::label Foam::FaceCellWave<type>::receivePatchInfo(Foam::l abel, Foam::labelList&, Foam::List<t>&) const [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:593: instantiated from 'void Foam::FaceCellWave<type>::handleProcPatches() [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:1064: instantiated from 'Foam::label Foam::FaceCellWave<type>::iterate(Foam::label) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/FaceCellWave.C:854: instantiated from 'Foam::FaceCellWave<type>::FaceCellWave(const Foam::polyMesh&, const Foam::labelList&, const Foam::List<t>&, Foam::UList<t>&, Foam::UList<t>&, Foam::label) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/MeshWave.C:65: instantiated from 'Foam::MeshWave<type>::MeshWave(const Foam::polyMesh&, const Foam::labelList&, const Foam::List<t>&, Foam::label) [with Type = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/patchDataWave.C:233: instantiated from 'void Foam::patchDataWave<transfertype>::correct() [with TransferType = Foam::wallPointData<foam::vector<double> >]' /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/patchDataWave.C:193: instantiated from 'Foam::patchDataWave<transfertype>::patchDataWave( const Foam::polyMesh&, const Foam::labelHashSet&, const Foam::List<foam::field<typename>*>&, bool) [with TransferType = Foam::wallPointData<foam::vector<double> >]' fvMesh/wallDist/wallDistData.C:100: instantiated from 'void Foam::wallDistData<transfertype>::correct() [with TransferType = Foam::wallPointData<foam::vector<double> >]' fvMesh/wallDist/wallDistReflection.C:54: instantiated from here /path/to/OpenFOAM-1.5/src/meshTools/lnInclude/wallPointData.C:60: error: no matching function for call to 'operator>>(Foam::Istream&, Foam::wallPoint&)' /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/char.H:50: note: candidates are: Foam::Istream& Foam::operator>>(Foam::Istream&, char&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/string.H:213: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::string&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/word.H:128: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/fileName.H:172: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::fileName&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/int.H:58: note: Foam::Istream& Foam::operator>>(Foam::Istream&, int&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/bool.H:50: note: Foam::Istream& Foam::operator>>(Foam::Istream&, bool&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Scalar.H:265: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::floatScalar&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Scalar.H:265: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/token.H:423: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::token&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Istream.H:157: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::Istream& (*)(Foam::Istream&)) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Istream.H:163: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::IOstream& (*)(Foam::IOstream&)) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/long.H:57: note: Foam::Istream& Foam::operator>>(Foam::Istream&, long int&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/dimensionSet.H:295: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::dimensionSet&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/uint.H:57: note: Foam::Istream& Foam::operator>>(Foam::Istream&, unsigned int&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/dictionary.H:355: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::dictionary&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/Switch.H:135: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::Switch&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/instant.H:146: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::instant&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/empty.H:80: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::empty&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/faceI.H:142: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::face&) /path/to/OpenFOAM-1.5/src/OpenFOAM/lnInclude/cellShape.H:163: note: Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::cellShape&) make[1]: *** [Make/linux64Gcc/wallDistReflection.o] Error 1 |
|
February 3, 2009, 13:41 |
We (OpenCFD) use gcc-4.3.2 for
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
We (OpenCFD) use gcc-4.3.2 for all our development work and for compiling 1.5.x and have not encountered this problem.
H |
|
February 5, 2009, 04:55 |
Thanks for the reply. I want t
|
#3 |
Member
Oliver Borm
Join Date: Mar 2009
Posts: 60
Rep Power: 17 |
Thanks for the reply. I want to compile OpenFOAM-1.5 under gentoo Linux with gcc-4.3.2-r2 from portage (the gentoo package manager), but unfortunately it gives me a similar error. So actually I don't know what's the exact problem.
Can you tell me which distribution you are using? And if you are using the system wide gcc or a self compiled version, with some "fancy" compile flags? In the hope it will help me, to debug the problem a little bit further. |
|
February 6, 2009, 10:36 |
Hi Oliver,
I've seen the sa
|
#4 |
New Member
Kian Mehravaran
Join Date: Mar 2009
Location: London, U.K
Posts: 22
Rep Power: 17 |
Hi Oliver,
I've seen the same problem with the system gcc-4.3.2 under Ubuntu. Compiling gcc-4.3.2 solved the problem for me. Kian Mehravaran |
|
February 7, 2009, 13:12 |
Hello Kian,
thank's for you
|
#5 |
Member
Oliver Borm
Join Date: Mar 2009
Posts: 60
Rep Power: 17 |
Hello Kian,
thank's for your reply, but I'm wondering, why it works on ubuntu with a self compiled gcc-4.3.2 and under gentoo it does not. Because on gentoo I've also compiled the gcc-4.3.2 on my own (that's the normal way on gentoo). Just for completeness, I've to say, that with gcc-4.3.1 on gentoo, the compilation of OpenFOAM-1.5 works fine, without any problems. And compiling gcc at your own under ubuntu is not an option, if you think on automatic packaging OpenFOAM as a debian package. Oliver |
|
February 17, 2009, 06:03 |
hi Kian Mehravaran sir
can
|
#6 |
Senior Member
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17 |
hi Kian Mehravaran sir
can u send me installation procedure of openfoam 1.4.1 in mandriva linux 2008.1... |
|
March 1, 2009, 07:07 |
Hi all
I ran into the same
|
#7 |
Member
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17 |
Hi all
I ran into the same issue, and it is because the IO-streams operators for Foam::wallPoint are not properly declared (i.e. they only show up in the friend function declarations of Foam::wallPoint. However, I couldn't reproduce the problem using a simple test case which is pretty strange. The attached patch against OpenFOAM-1.5.x (commit 1c60464) solves the problem for me. |
|
March 1, 2009, 07:11 |
*sigh* the forum software didn
|
#8 |
Member
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17 |
*sigh* the forum software didn't deem it necessary to let me attach the patch... Retry #1:
0001-Forward-declare-friend-operators-for-wallPoint.patch |
|
March 1, 2009, 15:30 |
Thanks for the patch, I have p
|
#9 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
Thanks for the patch, I have pushed the change to 1.5.x. Please let us know if any more forward declarations are missing; we are not seeing problems with them here.
H |
|
March 2, 2009, 07:26 |
Thanks Henry
So far no othe
|
#10 |
Member
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17 |
Thanks Henry
So far no other error cropped up. But as I said, I wasn't able to reproduce the error using a simple test case which I think is pretty strange. Michael |
|
March 2, 2009, 07:32 |
It seems most compilers are no
|
#11 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
It seems most compilers are not good at spotting this deviation from the standard and the level of the checking depends on the context as you have found. We have been playing with CInt which is MUCH more sensitive to these inconsistencies and when it has evolved to a point that it can handle the whole of OpenFOAM we will be able to iron-out all of them.
H |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ParaFoam on Ubuntu 804 | francy | OpenFOAM Installation | 6 | May 8, 2009 06:57 |
GIT Compile of 15x on OpenSUSE 11 problems | chrisd | OpenFOAM Installation | 2 | January 30, 2009 12:25 |
Star-CCM+ on UBUNTU... | mk_mat | Siemens | 4 | April 22, 2008 14:30 |
Mpi problem with Ubuntu | richard | OpenFOAM Running, Solving & CFD | 0 | April 14, 2008 21:38 |
Fluent 6.3 on Ubuntu 7.04 | adas | FLUENT | 1 | March 20, 2007 19:31 |