View Issue Details

IDProjectCategoryView StatusLast Update
0003130OpenFOAMBugpublic2018-12-11 15:50
Reporterjherb Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSOpenSuSEOS Version13.1
Summary0003130: Compilation error in OpenFOAM-6
DescriptionThe current version of OpenFOAM-6 from github is not compiling:

g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/finiteVolume/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/meshTools/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/lagrangian/basic/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/fileFormats/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/sampling/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/surfMesh/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/thermophysicalModels/basic/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/thermophysicalModels/solidThermo/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/transportModels -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/transportModels/compressible/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/incompressible/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/compressible/lnInclude -IlnInclude -I. -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c fieldAverage/fieldAverageItem/fieldAverageItemIO.C -o /home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/platforms/linux64GccDPInt32Opt/src/functionObjects/field/fieldAverage/fieldAverageItem/fieldAverageItemIO.o
fieldAverage/fieldAverageItem/fieldAverageItemIO.C: In constructor ‘Foam::functionObjects::fieldAverageItem::fieldAverageItem(Foam::Istream&)’:
fieldAverage/fieldAverageItem/fieldAverageItemIO.C:39:21: error: ‘iter’ is not a member of ‘Foam::functionObjects::fieldAverageItem::baseType’
     base_(baseType::iter),
                     ^~~~
make: *** [/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/platforms/linux64GccDPInt32Opt/src/functionObjects/field/fieldAverage/fieldAverageItem/fieldAverageItemIO.o] Error 1

Additional Informationgcc --version
gcc (GCC) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

TagsNo tags attached.

Activities

henry

2018-12-11 11:29

manager   ~0010216

Have you tried any other gcc versions or clang?

jherb

2018-12-11 15:38

reporter   ~0010217

Same error with gcc 6.4.0:

g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/finiteVolume/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/meshTools/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/lagrangian/basic/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/fileFormats/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/sampling/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/surfMesh/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/thermophysicalModels/basic/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/thermophysicalModels/solidThermo/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/transportModels -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/transportModels/compressible/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/incompressible/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/compressible/lnInclude -IlnInclude -I. -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c fieldAverage/fieldAverageItem/fieldAverageItemIO.C -o /home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/platforms/linux64GccDPInt32Opt/src/functionObjects/field/fieldAverage/fieldAverageItem/fieldAverageItemIO.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/finiteVolume/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/meshTools/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/lagrangian/basic/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/fileFormats/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/sampling/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/surfMesh/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/thermophysicalModels/basic/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/thermophysicalModels/solidThermo/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/transportModels -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/transportModels/compressible/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/incompressible/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/TurbulenceModels/compressible/lnInclude -IlnInclude -I. -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/OpenFOAM/lnInclude -I/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/src/OSspecific/POSIX/lnInclude -fPIC -c fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.C -o /home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/platforms/linux64GccDPInt32Opt/src/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransform.o
fieldAverage/fieldAverageItem/fieldAverageItemIO.C: In constructor ‘Foam::functionObjects::fieldAverageItem::fieldAverageItem(Foam::Istream&)’:
fieldAverage/fieldAverageItem/fieldAverageItemIO.C:39:11: error: ‘iter’ is not a member of ‘Foam::functionObjects::fieldAverageItem::baseType’
     base_(baseType::iter),
           ^~~~~~~~
make: *** [/home/jenkins/.jenkins/workspace/of_6_pipe/OpenFOAM-6/platforms/linux64GccDPInt32Opt/src/functionObjects/field/fieldAverage/fieldAverageItem/fieldAverageItemIO.o] Error 1
make: *** Waiting for unfinished jobs....
> gcc --version
gcc (GCC) 6.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

henry

2018-12-11 15:50

manager   ~0010218

Resolved by commit 2e8f733e4e3b7cb2fede8db542b773fe8ac00e69

Issue History

Date Modified Username Field Change
2018-12-11 10:31 jherb New Issue
2018-12-11 11:29 henry Note Added: 0010216
2018-12-11 15:38 jherb Note Added: 0010217
2018-12-11 15:50 henry Assigned To => henry
2018-12-11 15:50 henry Status new => resolved
2018-12-11 15:50 henry Resolution open => fixed
2018-12-11 15:50 henry Fixed in Version => 6
2018-12-11 15:50 henry Note Added: 0010218