CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   Cannot compile official OpenFOAM15 (

syam December 3, 2008 17:42

I am trying to compile OpenFOA
I am trying to compile OpenFOAM-1.5 (official version) on our clusters (Linux 2.6.9-42.7sp.XCsmp, Optron CPUs, HP-MPI library), with the three installed versions of gcc - 3.4.5, 4.2.1, and 4.3.0. I consistently get the following compilation error (which affects only the parallel part of OpenFOAM; I can run serial tests without problems):

/work/syam//OpenFOAM-1.5/src/OpenFOAM/lnInclude/PtrList.C: In copy constructor 'Foam::PtrList<t>::PtrList(const Foam::PtrList<t>&) [with T = Foam::featureEdgeMesh]':
autoHexMesh/autoHexMeshDriver/autoRefineDriver.C:260: instantiated from here
/work/syam//OpenFOAM-1.5/src/OpenFOAM/lnInclude/PtrList.C:56: error: invalid conversion from 'Foam::IOobject*' to 'Foam::featureEdgeMesh*'
make: *** [Make/linux64GccDPOpt/autoRefineDriver.o] Error 1

The whole log file can be accessed here:

This software was requested by a few of our users, and your suggestions would be very appreciated.

Sergey Mashchenko
SHARCNET HPC Software Analyst

mattijs December 8, 2008 08:20

This is fixed in the 1.5.x git
This is fixed in the 1.5.x git repository (see

All times are GMT -4. The time now is 12:50.