Package: src:openfoam
Version: 1912.200626-3
Severity: important
Tags: sid forky
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/openfoam_1912.200626-3_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
  271 |     virtual ~faPatchField<Type>() = default;
      |             ^
lnInclude/faPatchField.H:271:13: note: remove the ‘< >’
In file included from lnInclude/faPatchFields.H:31,
                 from lnInclude/areaFields.H:48,
                 from interpolation/edgeInterpolation/edgeInterpolation.C:29:
lnInclude/faPatchField.H:271:13: warning: template-id not allowed for 
destructor in C++20 [-Wtemplate-id-cdtor]
  271 |     virtual ~faPatchField<Type>() = default;
      |             ^
lnInclude/faPatchField.H:271:13: note: remove the ‘< >’
In file included from lnInclude/faePatchField.H:371,
                 from lnInclude/faePatchFields.H:37,
                 from lnInclude/edgeFields.H:49,
                 from interpolation/edgeInterpolation/edgeInterpolation.C:30:
lnInclude/calculatedFaePatchField.H: In instantiation of ‘class 
Foam::calculatedFaePatchField<double>’:
lnInclude/calculatedFaePatchField.C:36:43:   required from ‘static const 
Foam::word& Foam::faePatchField<Type>::calculatedType() [with Type = double]’
   36 |     return calculatedFaePatchField<Type>::typeName;
      |                                           ^~~~~~~~
/build/reproducible-path/openfoam-1912.200626/src/OpenFOAM/lnInclude/GeometricField.H:304:74:
   required from here
  304 |             const word& patchFieldType = 
PatchField<Type>::calculatedType()
      |                                          
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
lnInclude/faePatchField.C:179:6: warning: ‘void 
Foam::faePatchField<Type>::operator=(const Foam::UList<T>&) [with Type = 
double]’ was hidden [-Woverloaded-virtual=]
  179 | void Foam::faePatchField<Type>::operator=
      |      ^~~~
In file included from lnInclude/faePatchField.H:372:
lnInclude/calculatedFaePatchField.H:56:7: note:   by 
‘Foam::calculatedFaePatchField<double>& 
Foam::calculatedFaePatchField<double>::operator=(const 
Foam::calculatedFaePatchField<double>&)’
   56 | class calculatedFaePatchField
      |       ^~~~~~~~~~~~~~~~~~~~~~~
lnInclude/faePatchField.C:189:6: warning: ‘void 
Foam::faePatchField<Type>::operator=(const Foam::faePatchField<Type>&) [with 
Type = double]’ was hidden [-Woverloaded-virtual=]
  189 | void Foam::faePatchField<Type>::operator=
      |      ^~~~
lnInclude/calculatedFaePatchField.H:56:7: note:   by 
‘Foam::calculatedFaePatchField<double>& 
Foam::calculatedFaePatchField<double>::operator=(const 
Foam::calculatedFaePatchField<double>&)’
   56 | class calculatedFaePatchField
      |       ^~~~~~~~~~~~~~~~~~~~~~~
lnInclude/faePatchField.H:344:22: warning: ‘void 
Foam::faePatchField<Type>::operator=(const Type&) [with Type = double]’ was 
hidden [-Woverloaded-virtual=]
  344 |         virtual void operator=(const Type&);
      |                      ^~~~~~~~
lnInclude/calculatedFaePatchField.H:56:7: note:   by 
‘Foam::calculatedFaePatchField<double>& 
Foam::calculatedFaePatchField<double>::operator=(const 
Foam::calculatedFaePatchField<double>&)’
   56 | class calculatedFaePatchField
      |       ^~~~~~~~~~~~~~~~~~~~~~~
lnInclude/calculatedFaePatchField.H: In instantiation of ‘class 
Foam::calculatedFaePatchField<Foam::Vector<double> >’:
lnInclude/calculatedFaePatchField.C:36:43:   required from ‘static const 
Foam::word& Foam::faePatchField<Type>::calculatedType() [with Type = 
Foam::Vector<double>]’
   36 |     return calculatedFaePatchField<Type>::typeName;
      |                                           ^~~~~~~~
/build/reproducible-path/openfoam-1912.200626/src/OpenFOAM/lnInclude/GeometricField.H:304:74:
   required from here
  304 |             const word& patchFieldType = 
PatchField<Type>::calculatedType()
      |                                          
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
lnInclude/faePatchField.C:189:6: warning: ‘void 
Foam::faePatchField<Type>::operator=(const Foam::faePatchField<Type>&) [with 
Type = Foam::Vector<double>]’ was hidden [-Woverloaded-virtual=]
  189 | void Foam::faePatchField<Type>::operator=
      |      ^~~~
lnInclude/calculatedFaePatchField.H:56:7: note:   by 
‘Foam::calculatedFaePatchField<Foam::Vector<double> >& 
Foam::calculatedFaePatchField<Foam::Vector<double> >::operator=(const 
Foam::calculatedFaePatchField<Foam::Vector<double> >&)’
   56 | class calculatedFaePatchField
      |       ^~~~~~~~~~~~~~~~~~~~~~~
lnInclude/faePatchField.C:296:6: warning: ‘void 
Foam::faePatchField<Type>::operator=(const Type&) [with Type = 
Foam::Vector<double>]’ was hidden [-Woverloaded-virtual=]
  296 | void Foam::faePatchField<Type>::operator=
      |      ^~~~
lnInclude/calculatedFaePatchField.H:56:7: note:   by 
‘Foam::calculatedFaePatchField<Foam::Vector<double> >& 
Foam::calculatedFaePatchField<Foam::Vector<double> >::operator=(const 
Foam::calculatedFaePatchField<Foam::Vector<double> >&)’
   56 | class calculatedFaePatchField
      |       ^~~~~~~~~~~~~~~~~~~~~~~
lnInclude/faePatchField.C:179:6: warning: ‘void 
Foam::faePatchField<Type>::operator=(const Foam::UList<T>&) [with Type = 
Foam::Vector<double>]’ was hidden [-Woverloaded-virtual=]
  179 | void Foam::faePatchField<Type>::operator=
      |      ^~~~
lnInclude/calculatedFaePatchField.H:56:7: note:   by 
‘Foam::calculatedFaePatchField<Foam::Vector<double> >& 
Foam::calculatedFaePatchField<Foam::Vector<double> >::operator=(const 
Foam::calculatedFaePatchField<Foam::Vector<double> >&)’
   56 | class calculatedFaePatchField
      |       ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** 
[/build/reproducible-path/openfoam-1912.200626/wmake/rules/General/transform:34:
 
/build/reproducible-path/openfoam-1912.200626/build/linux64Gcc/src/finiteArea/faMatrices/faScalarMatrix/faScalarMatrix.o]
 Error 1
make[1]: *** [debian/rules:80: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/openfoam-1912.200626'
make: *** [debian/rules:19: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to