[Debian-med-packaging] Bug#1013036: sight: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:13:40 BST 2022


Package: src:sight
Version: 21.0.0-4
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/sight_21.0.0-4_unstable_gcc12.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:161:43:   required from ‘typename ITKIMAGE::Pointer sight::io::itk::itkImageFactory(sight::data::Image::csptr, bool) [with ITKIMAGE = itk::Image<long unsigned int, 3>; typename ITKIMAGE::Pointer = itk::SmartPointer<itk::Image<long unsigned int, 3> >; sight::data::Image::csptr = std::shared_ptr<const sight::data::Image>]’
/<<PKGBUILDDIR>>/libs/filter/image/Resampler.cpp:57:89:   required from ‘void sight::filter::image::Resampling::operator()(Parameters&) [with PIXELTYPE = long unsigned int]’
/<<PKGBUILDDIR>>/libs/core/core/tools/Dispatcher.hpp:180:30:   recursively required from ‘static void sight::core::tools::Dispatcher<TSEQ, FUNCTOR>::invoke(const KeyType&, Parameter&) [with KeyType = sight::core::tools::Type; Parameter = sight::filter::image::Resampling::Parameters; TSEQ = boost::mpl::v_mask<boost::mpl::vector10<signed char, unsigned char, short int, short unsigned int, int, unsigned int, long int, long unsigned int, float, double>, 1>; FUNCTOR = sight::filter::image::Resampling]’
/<<PKGBUILDDIR>>/libs/core/core/tools/Dispatcher.hpp:180:30:   required from ‘static void sight::core::tools::Dispatcher<TSEQ, FUNCTOR>::invoke(const KeyType&, Parameter&) [with KeyType = sight::core::tools::Type; Parameter = sight::filter::image::Resampling::Parameters; TSEQ = boost::mpl::vector10<signed char, unsigned char, short int, short unsigned int, int, unsigned int, long int, long unsigned int, float, double>; FUNCTOR = sight::filter::image::Resampling]’
/<<PKGBUILDDIR>>/libs/filter/image/Resampler.cpp:146:87:   required from here
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:150:32: warning: ‘sight::data::Array::sptr sight::data::Image::getDataArray() const’ is deprecated: it will be removed in sight 22.0 [-Wdeprecated-declarations]
  150 |         imageData->getDataArray()->setIsBufferOwner( false );
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~
/<<PKGBUILDDIR>>/libs/core/data/Image.hpp:670:32: note: declared here
  670 |     DATA_API data::Array::sptr getDataArray() const;
      |                                ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:150:32: warning: ‘sight::data::Array::sptr sight::data::Image::getDataArray() const’ is deprecated: it will be removed in sight 22.0 [-Wdeprecated-declarations]
  150 |         imageData->getDataArray()->setIsBufferOwner( false );
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~
/<<PKGBUILDDIR>>/libs/core/data/Image.hpp:670:32: note: declared here
  670 |     DATA_API data::Array::sptr getDataArray() const;
      |                                ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx: In instantiation of ‘typename ITKIMAGE::Pointer sight::io::itk::fwDataImageToItkImage(sight::data::Image::csptr, bool) [with ITKIMAGE = itk::Image<float, 3>; typename ITKIMAGE::Pointer = itk::SmartPointer<itk::Image<float, 3> >; sight::data::Image::csptr = std::shared_ptr<const sight::data::Image>]’:
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:161:43:   required from ‘typename ITKIMAGE::Pointer sight::io::itk::itkImageFactory(sight::data::Image::csptr, bool) [with ITKIMAGE = itk::Image<float, 3>; typename ITKIMAGE::Pointer = itk::SmartPointer<itk::Image<float, 3> >; sight::data::Image::csptr = std::shared_ptr<const sight::data::Image>]’
/<<PKGBUILDDIR>>/libs/filter/image/Resampler.cpp:57:89:   required from ‘void sight::filter::image::Resampling::operator()(Parameters&) [with PIXELTYPE = float]’
/<<PKGBUILDDIR>>/libs/core/core/tools/Dispatcher.hpp:180:30:   recursively required from ‘static void sight::core::tools::Dispatcher<TSEQ, FUNCTOR>::invoke(const KeyType&, Parameter&) [with KeyType = sight::core::tools::Type; Parameter = sight::filter::image::Resampling::Parameters; TSEQ = boost::mpl::v_mask<boost::mpl::vector10<signed char, unsigned char, short int, short unsigned int, int, unsigned int, long int, long unsigned int, float, double>, 1>; FUNCTOR = sight::filter::image::Resampling]’
/<<PKGBUILDDIR>>/libs/core/core/tools/Dispatcher.hpp:180:30:   required from ‘static void sight::core::tools::Dispatcher<TSEQ, FUNCTOR>::invoke(const KeyType&, Parameter&) [with KeyType = sight::core::tools::Type; Parameter = sight::filter::image::Resampling::Parameters; TSEQ = boost::mpl::vector10<signed char, unsigned char, short int, short unsigned int, int, unsigned int, long int, long unsigned int, float, double>; FUNCTOR = sight::filter::image::Resampling]’
/<<PKGBUILDDIR>>/libs/filter/image/Resampler.cpp:146:87:   required from here
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:150:32: warning: ‘sight::data::Array::sptr sight::data::Image::getDataArray() const’ is deprecated: it will be removed in sight 22.0 [-Wdeprecated-declarations]
  150 |         imageData->getDataArray()->setIsBufferOwner( false );
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~
/<<PKGBUILDDIR>>/libs/core/data/Image.hpp:670:32: note: declared here
  670 |     DATA_API data::Array::sptr getDataArray() const;
      |                                ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:150:32: warning: ‘sight::data::Array::sptr sight::data::Image::getDataArray() const’ is deprecated: it will be removed in sight 22.0 [-Wdeprecated-declarations]
  150 |         imageData->getDataArray()->setIsBufferOwner( false );
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~
/<<PKGBUILDDIR>>/libs/core/data/Image.hpp:670:32: note: declared here
  670 |     DATA_API data::Array::sptr getDataArray() const;
      |                                ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx: In instantiation of ‘typename ITKIMAGE::Pointer sight::io::itk::fwDataImageToItkImage(sight::data::Image::csptr, bool) [with ITKIMAGE = itk::Image<double, 3>; typename ITKIMAGE::Pointer = itk::SmartPointer<itk::Image<double, 3> >; sight::data::Image::csptr = std::shared_ptr<const sight::data::Image>]’:
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:161:43:   required from ‘typename ITKIMAGE::Pointer sight::io::itk::itkImageFactory(sight::data::Image::csptr, bool) [with ITKIMAGE = itk::Image<double, 3>; typename ITKIMAGE::Pointer = itk::SmartPointer<itk::Image<double, 3> >; sight::data::Image::csptr = std::shared_ptr<const sight::data::Image>]’
/<<PKGBUILDDIR>>/libs/filter/image/Resampler.cpp:57:89:   required from ‘void sight::filter::image::Resampling::operator()(Parameters&) [with PIXELTYPE = double]’
/<<PKGBUILDDIR>>/libs/core/core/tools/Dispatcher.hpp:180:30:   recursively required from ‘static void sight::core::tools::Dispatcher<TSEQ, FUNCTOR>::invoke(const KeyType&, Parameter&) [with KeyType = sight::core::tools::Type; Parameter = sight::filter::image::Resampling::Parameters; TSEQ = boost::mpl::v_mask<boost::mpl::vector10<signed char, unsigned char, short int, short unsigned int, int, unsigned int, long int, long unsigned int, float, double>, 1>; FUNCTOR = sight::filter::image::Resampling]’
/<<PKGBUILDDIR>>/libs/core/core/tools/Dispatcher.hpp:180:30:   required from ‘static void sight::core::tools::Dispatcher<TSEQ, FUNCTOR>::invoke(const KeyType&, Parameter&) [with KeyType = sight::core::tools::Type; Parameter = sight::filter::image::Resampling::Parameters; TSEQ = boost::mpl::vector10<signed char, unsigned char, short int, short unsigned int, int, unsigned int, long int, long unsigned int, float, double>; FUNCTOR = sight::filter::image::Resampling]’
/<<PKGBUILDDIR>>/libs/filter/image/Resampler.cpp:146:87:   required from here
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:150:32: warning: ‘sight::data::Array::sptr sight::data::Image::getDataArray() const’ is deprecated: it will be removed in sight 22.0 [-Wdeprecated-declarations]
  150 |         imageData->getDataArray()->setIsBufferOwner( false );
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~
/<<PKGBUILDDIR>>/libs/core/data/Image.hpp:670:32: note: declared here
  670 |     DATA_API data::Array::sptr getDataArray() const;
      |                                ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/libs/io/itk/itk.hxx:150:32: warning: ‘sight::data::Array::sptr sight::data::Image::getDataArray() const’ is deprecated: it will be removed in sight 22.0 [-Wdeprecated-declarations]
  150 |         imageData->getDataArray()->setIsBufferOwner( false );
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~
/<<PKGBUILDDIR>>/libs/core/data/Image.hpp:670:32: note: declared here
  670 |     DATA_API data::Array::sptr getDataArray() const;
      |                                ^~~~~~~~~~~~
[ 79%] Linking CXX executable ../../../../bin/io_dicomTest.bin
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/io/dicom/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/io_dicomTest.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -Wl,-z,relro -Wl,-z,now CMakeFiles/io_dicomTest.dir/tu/DicomAnonymizerTest.cpp.o CMakeFiles/io_dicomTest.dir/tu/DicomDirTest.cpp.o CMakeFiles/io_dicomTest.dir/tu/DicomSeriesWriterTest.cpp.o CMakeFiles/io_dicomTest.dir/tu/FunctionsTest.cpp.o CMakeFiles/io_dicomTest.dir/tu/SeriesDBReaderTest.cpp.o CMakeFiles/io_dicomTest.dir/tu/WriterReaderTest.cpp.o CMakeFiles/io_dicomTest.dir/src/cppunit_main.cpp.o -o ../../../../bin/io_dicomTest.bin  -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/x86_64-linux-gnu ../../../../lib/x86_64-linux-gnu/libsight_io_dicom.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_utestData.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_io_zip.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_io_base.so.21.0.0 /usr/lib/x86_64-linux-gnu/libgdcmMSFF.so.3.0.12 /usr/lib/x86_64-linux-gnu/libgdcmDICT.so.3.0.12 /usr/lib/x86_64-linux-gnu/libgdcmIOD.so.3.0.12 /usr/lib/x86_64-linux-gnu/libgdcmDSED.so.3.0.12 /usr/lib/x86_64-linux-gnu/libgdcmCommon.so.3.0.12 ../../../../lib/x86_64-linux-gnu/libsight_filter_dicom.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_geometry_data.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_service.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_activity.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_data.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_utest.so.21.0.0 ../../../../lib/x86_64-linux-gnu/libsight_core.so.21.0.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_log_setup.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_log.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_chrono.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_atomic.so.1.74.0 -lpthread /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 /usr/lib/x86_64-linux-gnu/libcamp.so.0.8.4 /usr/lib/x86_64-linux-gnu/libxml2.so /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libcppunit.so 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 79%] Built target io_dicomTest
[ 79%] Linking CXX shared library ../../../lib/x86_64-linux-gnu/libsight_filter_image.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/filter/image && /usr/bin/cmake -E cmake_link_script CMakeFiles/filter_image.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libsight_filter_image.so.21.0 -o ../../../lib/x86_64-linux-gnu/libsight_filter_image.so.21.0.0 CMakeFiles/filter_image.dir/AutomaticRegistration.cpp.o CMakeFiles/filter_image.dir/BresenhamLine.cpp.o CMakeFiles/filter_image.dir/Flipper.cpp.o CMakeFiles/filter_image.dir/Image.cpp.o CMakeFiles/filter_image.dir/ImageDiff.cpp.o CMakeFiles/filter_image.dir/ImageExtruder.cpp.o CMakeFiles/filter_image.dir/Labeling.cpp.o CMakeFiles/filter_image.dir/LineDrawer.cpp.o CMakeFiles/filter_image.dir/MatrixRegressor.cpp.o CMakeFiles/filter_image.dir/MinMaxPropagation.cpp.o CMakeFiles/filter_image.dir/PowellOptimizer.cpp.o CMakeFiles/filter_image.dir/Resampler.cpp.o CMakeFiles/filter_image.dir/SpheroidExtraction.cpp.o  -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/x86_64-linux-gnu: /usr/lib/libITKLabelMap-5.2.so.1 /usr/lib/libITKRegistrationMethodsv4-5.2.so.1 ../../../lib/x86_64-linux-gnu/libsight_geometry_data.so.21.0.0 ../../../lib/x86_64-linux-gnu/libsight_io_itk.so.21.0.0 /usr/lib/libITKOptimizersv4-5.2.so.1 /usr/lib/libITKPath-5.2.so.1 /usr/lib/libITKOptimizers-5.2.so.1 /usr/lib/libITKStatistics-5.2.so.1 /usr/lib/libitkNetlibSlatec-5.2.so.1 /usr/lib/libITKImageFeature-5.2.so.1 /usr/lib/libITKSmoothing-5.2.so.1 /usr/lib/libITKSpatialObjects-5.2.so.1 /usr/lib/libITKTransform-5.2.so.1 /usr/lib/libITKCommon-5.2.so.1 /usr/lib/libitksys-5.2.so.1 /usr/lib/libITKVNLInstantiation-5.2.so.1 /usr/lib/libitkvnl_algo-5.2.so.1 /usr/lib/libitkvnl-5.2.so.1 /usr/lib/libitkv3p_netlib-5.2.so.1 /usr/lib/libitkvcl-5.2.so.1 /usr/lib/gcc/x86_64-linux-gnu/12/libgomp.so /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/libITKIOJPEG-5.2.so.1 /usr/lib/libITKIOImageBase-5.2.so.1 /usr/lib/libITKCommon-5.2.so.1 -lm /usr/lib/libITKVNLInstantiation-5.2.so.1 /usr/lib/libitkvnl_algo-5.2.so.1 /usr/lib/libitkvnl-5.2.so.1 /usr/lib/libitkv3p_netlib-5.2.so.1 /usr/lib/libitkvcl-5.2.so.1 /usr/lib/libITKMetaIO-5.2.so.1 /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/libitksys-5.2.so.1 -ldl /usr/lib/libitkopenjpeg-5.2.so.1 -lm ../../../lib/x86_64-linux-gnu/libsight_io_base.so.21.0.0 ../../../lib/x86_64-linux-gnu/libsight_service.so.21.0.0 ../../../lib/x86_64-linux-gnu/libsight_activity.so.21.0.0 ../../../lib/x86_64-linux-gnu/libsight_data.so.21.0.0 ../../../lib/x86_64-linux-gnu/libsight_core.so.21.0.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_log_setup.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_log.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_chrono.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_atomic.so.1.74.0 -lpthread /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 /usr/lib/x86_64-linux-gnu/libcamp.so.0.8.4 /usr/lib/x86_64-linux-gnu/libxml2.so /usr/lib/x86_64-linux-gnu/libcrypto.so 
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/filter/image && /usr/bin/cmake -E cmake_symlink_library ../../../lib/x86_64-linux-gnu/libsight_filter_image.so.21.0.0 ../../../lib/x86_64-linux-gnu/libsight_filter_image.so.21.0 ../../../lib/x86_64-linux-gnu/libsight_filter_image.so
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 79%] Built target filter_image
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list