[Debian-med-packaging] Bug#984330: sight: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:17:16 GMT 2021


Package: src:sight
Version: 20.2.0-1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

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

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/sight_20.2.0-1_unstable_gcc11.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.

[...]
In file included from /<<PKGBUILDDIR>>/libs/core/fwData/include/fwData/Image.hpp:35,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Image.cpp:23:
/<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hpp:51:17: note: declared here
   51 |     FWTOOLS_API DynamicType(const DynamicType&);
      |                 ^~~~~~~~~~~
[ 29%] Building CXX object fwAtomsBoostIO/CMakeFiles/fwAtomsBoostIO.dir/src/fwAtomsBoostIO/Writer.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwAtomsBoostIO && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_LOG_SETUP_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SPIRIT_USE_PHOENIX_V3 -DBOOST_THREAD_DONT_PROVIDE_DEPRECATED_FEATURES_SINCE_V3_0_0 -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_PROVIDES_FUTURE -DBOOST_THREAD_VERSION=2 -DFWATOMSBOOSTIO_EXPORTS -DFWATOMSBOOSTIO_VER=\"0.1\" -DKEEP_OLD_SERVICE -DfwAtomsBoostIO_EXPORTS -I/<<PKGBUILDDIR>>/libs/io/fwAtomsBoostIO/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwAtomsBoostIO/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/pchCore/include/pchCore -I/<<PKGBUILDDIR>>/libs/core/fwAtoms/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwAtoms/include -I/<<PKGBUILDDIR>>/libs/core/fwCamp/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCamp/include -I/<<PKGBUILDDIR>>/libs/core/fwCore/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCore/include -I/<<PKGBUILDDIR>>/libs/core/fwMemory/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwMemory/include -I/<<PKGBUILDDIR>>/libs/core/fwCom/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCom/include -I/<<PKGBUILDDIR>>/libs/core/fwThread/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwThread/include -I/<<PKGBUILDDIR>>/libs/core/fwTools/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwTools/include -I/<<PKGBUILDDIR>>/libs/core/fwZip/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwZip/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -march=sandybridge -mtune=generic -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wconversion -Wno-unused-parameter -Wno-ignored-qualifiers -std=gnu++17 -include "pch.hpp"  -Winvalid-pch -o CMakeFiles/fwAtomsBoostIO.dir/src/fwAtomsBoostIO/Writer.cpp.o -c /<<PKGBUILDDIR>>/libs/io/fwAtomsBoostIO/src/fwAtomsBoostIO/Writer.cpp
[ 29%] Building CXX object fwData/CMakeFiles/fwData.dir/src/fwData/Integer.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwData && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_LOG_SETUP_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SPIRIT_USE_PHOENIX_V3 -DBOOST_THREAD_DONT_PROVIDE_DEPRECATED_FEATURES_SINCE_V3_0_0 -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_PROVIDES_FUTURE -DBOOST_THREAD_VERSION=2 -DFWDATA_EXPORTS -DFWDATA_VER=\"0.1\" -DKEEP_OLD_SERVICE -DfwData_EXPORTS -I/<<PKGBUILDDIR>>/libs/core/fwData/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwData/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwData/include/fwData -I/<<PKGBUILDDIR>>/libs/core/fwCom/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCom/include -I/<<PKGBUILDDIR>>/libs/core/fwCore/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCore/include -I/<<PKGBUILDDIR>>/libs/core/fwThread/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwThread/include -I/<<PKGBUILDDIR>>/libs/core/fwTools/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwTools/include -I/<<PKGBUILDDIR>>/libs/core/fwMemory/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwMemory/include -I/<<PKGBUILDDIR>>/libs/core/fwCamp/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCamp/include -I/<<PKGBUILDDIR>>/libs/core/fwRuntime/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwRuntime/include -I/usr/include/libxml2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -march=sandybridge -mtune=generic -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wconversion -Wno-unused-parameter -Wno-ignored-qualifiers -Werror -Wno-error=deprecated-declarations -std=gnu++17 -include "pch.hpp"  -Winvalid-pch -o CMakeFiles/fwData.dir/src/fwData/Integer.cpp.o -c /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Integer.cpp
In file included from /<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hpp:169,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/include/fwData/Image.hpp:35,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Image.cpp:23:
/<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hxx: In instantiation of ‘fwTools::DynamicType fwTools::makeDynamicType(const KEYTYPE&) [with KEYTYPE = std::__cxx11::basic_string<char>]’:
/<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Image.cpp:650:76:   required from here
/<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hxx:56:17: warning: ‘fwTools::DynamicType::DynamicType()’ is deprecated: This class is no longer supported and will be removed in sight 22.0 [-Wdeprecated-declarations]
   56 |     DynamicType d;
      |                 ^
In file included from /<<PKGBUILDDIR>>/libs/core/fwData/include/fwData/Image.hpp:35,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Image.cpp:23:
/<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hpp:47:17: note: declared here
   47 |     FWTOOLS_API DynamicType();
      |                 ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hpp:169,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/include/fwData/Image.hpp:35,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Image.cpp:23:
/<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hxx:59:12: warning: ‘fwTools::DynamicType::DynamicType(const fwTools::DynamicType&)’ is deprecated: This class is no longer supported and will be removed in sight 22.0 [-Wdeprecated-declarations]
   59 |     return d;
      |            ^
In file included from /<<PKGBUILDDIR>>/libs/core/fwData/include/fwData/Image.hpp:35,
                 from /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Image.cpp:23:
/<<PKGBUILDDIR>>/libs/core/fwTools/include/fwTools/DynamicType.hpp:51:17: note: declared here
   51 |     FWTOOLS_API DynamicType(const DynamicType&);
      |                 ^~~~~~~~~~~
In file included from /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
                 from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
                 from /usr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
                 from /usr/include/boost/smart_ptr/detail/spinlock.hpp:42,
                 from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/boost/date_time/time_clock.hpp:17,
                 from /usr/include/boost/thread/thread_time.hpp:9,
                 from /usr/include/boost/thread/lock_types.hpp:18,
                 from /usr/include/boost/thread/lock_algorithms.hpp:11,
                 from /usr/include/boost/thread/locks.hpp:10,
                 from /<<PKGBUILDDIR>>/libs/core/fwCore/include/fwCore/mt/types.hpp:26,
                 from /<<PKGBUILDDIR>>/libs/core/fwCore/include/fwCore/util/FactoryRegistry.hpp:26,
                 from /<<PKGBUILDDIR>>/libs/pch/pchCore/include/pchCore/pch.hpp:27:
/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~
[ 29%] Building CXX object fwData/CMakeFiles/fwData.dir/src/fwData/Landmarks.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwData && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_LOG_SETUP_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SPIRIT_USE_PHOENIX_V3 -DBOOST_THREAD_DONT_PROVIDE_DEPRECATED_FEATURES_SINCE_V3_0_0 -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_PROVIDES_FUTURE -DBOOST_THREAD_VERSION=2 -DFWDATA_EXPORTS -DFWDATA_VER=\"0.1\" -DKEEP_OLD_SERVICE -DfwData_EXPORTS -I/<<PKGBUILDDIR>>/libs/core/fwData/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwData/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwData/include/fwData -I/<<PKGBUILDDIR>>/libs/core/fwCom/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCom/include -I/<<PKGBUILDDIR>>/libs/core/fwCore/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCore/include -I/<<PKGBUILDDIR>>/libs/core/fwThread/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwThread/include -I/<<PKGBUILDDIR>>/libs/core/fwTools/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwTools/include -I/<<PKGBUILDDIR>>/libs/core/fwMemory/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwMemory/include -I/<<PKGBUILDDIR>>/libs/core/fwCamp/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwCamp/include -I/<<PKGBUILDDIR>>/libs/core/fwRuntime/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwRuntime/include -I/usr/include/libxml2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -march=sandybridge -mtune=generic -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wconversion -Wno-unused-parameter -Wno-ignored-qualifiers -Werror -Wno-error=deprecated-declarations -std=gnu++17 -include "pch.hpp"  -Winvalid-pch -o CMakeFiles/fwData.dir/src/fwData/Landmarks.cpp.o -c /<<PKGBUILDDIR>>/libs/core/fwData/src/fwData/Landmarks.cpp
cc1plus: all warnings being treated as errors
make[3]: *** [fwData/CMakeFiles/fwData.dir/build.make:208: fwData/CMakeFiles/fwData.dir/src/fwData/Graph.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 29%] Linking CXX shared library ../lib/sight/libfwAtomsBoostIO.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwAtomsBoostIO && /usr/bin/cmake -E cmake_link_script CMakeFiles/fwAtomsBoostIO.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,libfwAtomsBoostIO.so.0 -o ../lib/sight/libfwAtomsBoostIO.so.0.1 CMakeFiles/fwAtomsBoostIO.dir/src/fwAtomsBoostIO/Reader.cpp.o CMakeFiles/fwAtomsBoostIO.dir/src/fwAtomsBoostIO/Writer.cpp.o  -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib/sight: ../lib/sight/libfwAtoms.so.0.1 ../lib/sight/libfwMemory.so.0.1 ../lib/sight/libfwZip.so.0.1 ../lib/sight/libfwCom.so.0.1 ../lib/sight/libfwThread.so.0.1 /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 ../lib/sight/libfwTools.so.0.1 ../lib/sight/libfwCamp.so.0.1 /usr/lib/x86_64-linux-gnu/libcamp.so ../lib/sight/libfwCore.so.0.1 /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 
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fwAtomsBoostIO && /usr/bin/cmake -E cmake_symlink_library ../lib/sight/libfwAtomsBoostIO.so.0.1 ../lib/sight/libfwAtomsBoostIO.so.0 ../lib/sight/libfwAtomsBoostIO.so
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 29%] Built target fwAtomsBoostIO
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:2674: fwData/CMakeFiles/fwData.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:185: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "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