View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003864 | OpenFOAM | Bug | public | 2022-07-15 17:34 | 2022-07-15 21:04 |
Reporter | flavio.galeazzo | Assigned To | henry | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | AMD EPYC | OS | CentOS | OS Version | 8 |
Product Version | 10 | ||||
Fixed in Version | 10 | ||||
Summary | 0003864: Compilation error of FvFaceCellWave.C using GCC 9.2 | ||||
Description | I downloaded fresh from the repository OF-10 and OF-dev, and for both I got a compilation error for the file src/finiteVolume/algorithms/FvFaceCellWave/FvFaceCellWave.C The error message is below. wmake src/finiteVolume/ g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -IlnInclude -I. -I/lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c algorithms/FvFaceCellWave/FvFaceCellWaveName.C -o /lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc92DPInt64Opt/src/finiteVolume/algorithms/FvFaceCellWave/FvFaceCellWaveName.o In file included from algorithms/FvFaceCellWave/FvFaceCellWave.H:369, from algorithms/FvFaceCellWave/FvFaceCellWaveName.C:26: algorithms/FvFaceCellWave/FvFaceCellWave.C: In constructor ‘Foam::FvFaceCellWave<Type, TrackingData>::FvFaceCellWave(const Foam::fvMesh&, Foam::List<T>&, Foam::List<Foam::List<T> >&, Foam::List<T>&, TrackingData&)’: algorithms/FvFaceCellWave/FvFaceCellWave.C:747:9: error: no matching function for call to ‘Foam::FvFaceCellWave<Type, TrackingData>::sizesListList<Foam::List<Foam::PackedBoolList> >(Foam::labelList, bool)’ 747 | ) | ^ In file included from algorithms/FvFaceCellWave/FvFaceCellWaveName.C:26: algorithms/FvFaceCellWave/FvFaceCellWave.H:250:25: note: candidate: ‘template<class Type, class TrackingData> template<class ListList, class Value> static ListList Foam::FvFaceCellWave<Type, TrackingData>::sizesListList(const labelList&, const Value&)’ 250 | static ListList sizesListList(const labelList& s, const Value& value); | ^~~~~~~~~~~~~ algorithms/FvFaceCellWave/FvFaceCellWave.H:250:25: note: template argument deduction/substitution failed: In file included from algorithms/FvFaceCellWave/FvFaceCellWave.H:369, from algorithms/FvFaceCellWave/FvFaceCellWaveName.C:26: algorithms/FvFaceCellWave/FvFaceCellWave.C:747:9: note: mismatched types ‘const Value’ and ‘bool’ 747 | ) | ^ make: *** [/lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: /lustre/hpe/ws10/ws10.0/ws/hpcfcunh-HAWK_5/OpenFOAM/OpenFOAM-dev/platforms/linux64Gcc92DPInt64Opt/src/finiteVolume/algorithms/FvFaceCellWave/FvFaceCellWaveName.o] Error 1 | ||||
Steps To Reproduce | Fresh repo and ./Allwmake | ||||
Additional Information | System with AMD EPYC CPUs, CentOS 8, GCC 9.2, MPT 2.23 | ||||
Tags | No tags attached. | ||||
|
I just compiled OpenFOAM-dev with gcc-9.5.0, no errors, no warnings, no problems of any kind. Given that there have been 5 patch released of gcc-9 I assume that lots of bugs have been found and you should upgrade your gcc-9.2 to a more recent patch release or better still a more recent gcc version. |
|
I confirm that I got OF-10 compiled using GCC 10.2. Thank you for the help. |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-07-15 17:34 | flavio.galeazzo | New Issue | |
2022-07-15 19:38 | henry | Note Added: 0012684 | |
2022-07-15 20:33 | flavio.galeazzo | Note Added: 0012685 | |
2022-07-15 21:04 | henry | Assigned To | => henry |
2022-07-15 21:04 | henry | Status | new => resolved |
2022-07-15 21:04 | henry | Resolution | open => no change required |
2022-07-15 21:04 | henry | Fixed in Version | => 10 |