[Debian-med-packaging] Bug#1096841: insighttoolkit5: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:20:05 GMT 2025


Package: src:insighttoolkit5
Version: 5.4.0-2
Severity: important
Tags: sid forky
User: debian-gcc at 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/insighttoolkit5_5.4.0-2_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

[...]
      |                                ^~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:23:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   22 | #include "itkSingletonMacro.h"
  +++ |+#include <cstdint>
   23 | 
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:37:3: error: default member initializer for unnamed bit-field
   37 |   {
      |   ^
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:44:92: error: ‘ExceptionAction’ in ‘class itk::FloatingPointExceptionsEnums’ does not name a type
   44 |                         operator<<(std::ostream & out, const FloatingPointExceptionsEnums::ExceptionAction value);
      |                                                                                            ^~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:63:61: error: ‘ExceptionAction’ in ‘class itk::FloatingPointExceptionsEnums’ does not name a type
   63 |   using ExceptionActionEnum = FloatingPointExceptionsEnums::ExceptionAction;
      |                                                             ^~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:66:27: error: ‘ExceptionActionEnum’ does not name a type
   66 |   using ExceptionAction = ExceptionActionEnum;
      |                           ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:67:20: error: ‘ExceptionActionEnum’ does not name a type
   67 |   static constexpr ExceptionActionEnum ABORT = ExceptionActionEnum::ABORT;
      |                    ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:68:20: error: ‘ExceptionActionEnum’ does not name a type
   68 |   static constexpr ExceptionActionEnum EXIT = ExceptionActionEnum::EXIT;
      |                    ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:105:22: error: ‘ExceptionActionEnum’ has not been declared
  105 |   SetExceptionAction(ExceptionActionEnum a);
      |                      ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include/itkFloatingPointExceptions.h:108:10: error: ‘ExceptionActionEnum’ does not name a type
  108 |   static ExceptionActionEnum
      |          ^~~~~~~~~~~~~~~~~~~
[ 46%] Building CXX object Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkXMLFileOutputWindow.cxx.o
cd /build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/Core/Common/src && /usr/bin/c++ -DITKCommon_EXPORTS -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/DoubleConversion/src -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/DoubleConversion/src/double-conversion -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/Eigen3/src -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/KWSys/src -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/VNL/src/vxl/vcl -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/VNL/src/vxl/core -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/VNL/src/vxl/vcl -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/VNL/src/vxl/core -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/Core/Common -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/include -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/VNL/src/vxl/core/vnl/algo -I/build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/VNL/src/vxl/core/vnl -I/build/reproducible-path/insighttoolkit5-5.4.0/BUILD/Modules/ThirdParty/VNL/src/vxl/core/vnl -isystem /build/reproducible-path/insighttoolkit5-5.4.0/Modules/ThirdParty/Eigen3/src/itkeigen/.. -g -O2 -ffile-prefix-map=/build/reproducible-path/insighttoolkit5-5.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/nifti -g1  -mtune=generic -march=corei7 -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wctad-maybe-unsupported -Wstrict-null-sentinel  -fno-sized-deallocation -msse2 -std=c++17 -fPIC -MD -MT Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkXMLFileOutputWindow.cxx.o -MF CMakeFiles/ITKCommon.dir/itkXMLFileOutputWindow.cxx.o.d -o CMakeFiles/ITKCommon.dir/itkXMLFileOutputWindow.cxx.o -c /build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkXMLFileOutputWindow.cxx
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:38:28: error: ‘ExceptionActionEnum’ in ‘class itk::FloatingPointExceptions’ does not name a type
   38 |   FloatingPointExceptions::ExceptionActionEnum m_ExceptionAction{ FloatingPointExceptions::ExceptionActionEnum::ABORT };
      |                            ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:43:1: error: variable or field ‘SetExceptionAction’ declared void
   43 | FloatingPointExceptions::SetExceptionAction(FloatingPointExceptions::ExceptionActionEnum a)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:43:70: error: ‘ExceptionActionEnum’ is not a member of ‘itk::FloatingPointExceptions’
   43 | FloatingPointExceptions::SetExceptionAction(FloatingPointExceptions::ExceptionActionEnum a)
      |                                                                      ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:49:26: error: ‘ExceptionActionEnum’ in ‘class itk::FloatingPointExceptions’ does not name a type
   49 | FloatingPointExceptions::ExceptionActionEnum
      |                          ^~~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:83:73: error: ‘ExceptionAction’ in ‘class itk::FloatingPointExceptionsEnums’ does not name a type
   83 | operator<<(std::ostream & out, const itk::FloatingPointExceptionsEnums::ExceptionAction value)
      |                                                                         ^~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx: In lambda function:
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:88:47: error: ‘itk::FloatingPointExceptionsEnums::ExceptionAction’ has not been declared
   88 |       case itk::FloatingPointExceptionsEnums::ExceptionAction::ABORT:
      |                                               ^~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:90:47: error: ‘itk::FloatingPointExceptionsEnums::ExceptionAction’ has not been declared
   90 |       case itk::FloatingPointExceptionsEnums::ExceptionAction::EXIT:
      |                                               ^~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx: In function ‘void {anonymous}::itkFloatingPointExceptionsAbortOrExit()’:
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:106:37: error: ‘GetExceptionAction’ is not a member of ‘itk::FloatingPointExceptions’
  106 |   if (itk::FloatingPointExceptions::GetExceptionAction() == itk::FloatingPointExceptions::ExceptionActionEnum::ABORT)
      |                                     ^~~~~~~~~~~~~~~~~~
/build/reproducible-path/insighttoolkit5-5.4.0/Modules/Core/Common/src/itkFloatingPointExceptions.cxx:106:91: error: ‘itk::FloatingPointExceptions::ExceptionActionEnum’ has not been declared
  106 |   if (itk::FloatingPointExceptions::GetExceptionAction() == itk::FloatingPointExceptions::ExceptionActionEnum::ABORT)
      |                                                                                           ^~~~~~~~~~~~~~~~~~~
make[3]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/build.make:1146: Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkFloatingPointExceptions.cxx.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/insighttoolkit5-5.4.0/BUILD'
make[2]: *** [CMakeFiles/Makefile2:13601: Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/insighttoolkit5-5.4.0/BUILD'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/insighttoolkit5-5.4.0/BUILD'
dh_auto_build: error: cd BUILD && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:78: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list