Problem with installation of OpenFOAM adapter

Hi everyone,

I faced a problem with the installation of OpenFOAM adapter. Any help or suggestions would be greatly appreciated!!

While compiling the OpenFOAM-4.0 adapter on PreCICE-2.4.0, I got the following error:

/mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/PackedListI.H: In member function ‘void Foam::PackedList<nBits>::const_iterator::operator=(const Foam::PackedList<nBits>::iteratorBase&)’:
**/mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/PackedListI.H:550:13: error: return-statement with a value, in function returning ‘void’ [-fpermissive]**
     return *this;
             ^~~~
In file included from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/token.H:46,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/UListIO.C:28,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/UList.C:233,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/UList.H:484,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/List.H:43,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/labelList.H:48,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/UPstream.H:42,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/Pstream.H:42,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude/parRun.H:35,
                 from /mnt/lustre/indy2lfs/work/ec055/ec055/yhuang94/OpenFOAM/OpenFOAM-4.x/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from Interface.H:6,
                 from Interface.C:1:
  • GCC (8.2.0)
  • cmake (3.17.3)
  • mpt (2.25)
  • Cirrus

Does anyone have ideas about it? Many thanks in advance!!
wmake.log (13.3 KB)

I am afraid this is an OpenFOAM-only error that the preCICE adapter has nothing to do with. :face_with_diagonal_mouth:

1 Like

Many thanks for you reminder!! You are right, it is indeed an OpenFOAM-only error, caused by a new GCC version compiler. When recompiling OpenFOAM-4.x using GCC 8.2.0, the same error occurred. Recompiling OpenFOAM-4.x using GCC 6.2.0 had no errors.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.