Package: src:centreon-clib Version: 21.04.2-1 Severity: normal Tags: sid bookworm User: debian-...@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/centreon-clib_21.04.2-1_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. [...] /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/task_manager.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/task_manager.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/task_manager.cc.o -c /<<PKGBUILDDIR>>/src/task_manager.cc /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/library.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/library.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/library.cc.o -c /<<PKGBUILDDIR>>/src/library.cc [ 34%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/clib/version.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/timestamp.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/timestamp.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/timestamp.cc.o -c /<<PKGBUILDDIR>>/src/timestamp.cc /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/clib/version.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/clib/version.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/clib/version.cc.o -c /<<PKGBUILDDIR>>/src/clib/version.cc [ 39%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/exceptions/basic.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/exceptions/basic.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/exceptions/basic.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/exceptions/basic.cc.o -c /<<PKGBUILDDIR>>/src/exceptions/basic.cc [ 43%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/exceptions/interruption.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/exceptions/interruption.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/exceptions/interruption.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/exceptions/interruption.cc.o -c /<<PKGBUILDDIR>>/src/exceptions/interruption.cc [ 47%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/logging/syslogger.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/logging/syslogger.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/logging/syslogger.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/logging/syslogger.cc.o -c /<<PKGBUILDDIR>>/src/logging/syslogger.cc [ 52%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/logging/backend.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/logging/backend.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/logging/backend.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/logging/backend.cc.o -c /<<PKGBUILDDIR>>/src/logging/backend.cc [ 56%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/logging/engine.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/logging/engine.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/logging/engine.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/logging/engine.cc.o -c /<<PKGBUILDDIR>>/src/logging/engine.cc In file included from /<<PKGBUILDDIR>>/inc/com/centreon/process_listener.hh:23, from /<<PKGBUILDDIR>>/src/process.cc:36: /<<PKGBUILDDIR>>/inc/com/centreon/process.hh:53:29: error: field ‘_enable_stream’ has incomplete type ‘const std::array<bool, 3>’ 53 | const std::array<bool, 3> _enable_stream; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/12/bits/std_thread.h:39, from /usr/include/c++/12/thread:43, from /<<PKGBUILDDIR>>/inc/com/centreon/misc/stringifier.hh:23, from /<<PKGBUILDDIR>>/inc/com/centreon/exceptions/basic.hh:23, from /<<PKGBUILDDIR>>/inc/com/centreon/exceptions/interruption.hh:22, from /<<PKGBUILDDIR>>/src/process.cc:34: /usr/include/c++/12/tuple:1595:45: note: declaration of ‘struct std::array<bool, 3>’ 1595 | template<typename _Tp, size_t _Nm> struct array; | ^~~~~ /<<PKGBUILDDIR>>/inc/com/centreon/process.hh:54:22: error: field ‘_stream’ has incomplete type ‘std::array<int, 3>’ 54 | std::array<int, 3> _stream; | ^~~~~~~ /usr/include/c++/12/tuple:1595:45: note: declaration of ‘struct std::array<int, 3>’ 1595 | template<typename _Tp, size_t _Nm> struct array; | ^~~~~ [ 60%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/logging/file.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/logging/file.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/logging/file.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/logging/file.cc.o -c /<<PKGBUILDDIR>>/src/logging/file.cc [ 65%] Building CXX object CMakeFiles/centreon_clib_shared.dir/src/logging/temp_logger.cc.o /usr/bin/c++ -DHAVE_SPAWN_H -D_GLIBCXX_USE_CXX11_ABI=1 -Dcentreon_clib_shared_EXPORTS -I/<<PKGBUILDDIR>>/inc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fPIC -MD -MT CMakeFiles/centreon_clib_shared.dir/src/logging/temp_logger.cc.o -MF CMakeFiles/centreon_clib_shared.dir/src/logging/temp_logger.cc.o.d -o CMakeFiles/centreon_clib_shared.dir/src/logging/temp_logger.cc.o -c /<<PKGBUILDDIR>>/src/logging/temp_logger.cc In file included from /<<PKGBUILDDIR>>/inc/com/centreon/process_listener.hh:23, from /<<PKGBUILDDIR>>/src/process_manager.cc:29: /<<PKGBUILDDIR>>/inc/com/centreon/process.hh:53:29: error: field ‘_enable_stream’ has incomplete type ‘const std::array<bool, 3>’ 53 | const std::array<bool, 3> _enable_stream; | ^~~~~~~~~~~~~~ In file included from /usr/include/c++/12/bits/unique_ptr.h:36, from /usr/include/c++/12/bits/shared_ptr_base.h:59, from /usr/include/c++/12/bits/shared_ptr.h:53, from /usr/include/c++/12/condition_variable:42, from /<<PKGBUILDDIR>>/inc/com/centreon/process_manager.hh:24, from /<<PKGBUILDDIR>>/src/process_manager.cc:19: /usr/include/c++/12/tuple:1595:45: note: declaration of ‘struct std::array<bool, 3>’ 1595 | template<typename _Tp, size_t _Nm> struct array; | ^~~~~ /<<PKGBUILDDIR>>/inc/com/centreon/process.hh:54:22: error: field ‘_stream’ has incomplete type ‘std::array<int, 3>’ 54 | std::array<int, 3> _stream; | ^~~~~~~ /usr/include/c++/12/tuple:1595:45: note: declaration of ‘struct std::array<int, 3>’ 1595 | template<typename _Tp, size_t _Nm> struct array; | ^~~~~ make[3]: *** [CMakeFiles/centreon_clib_shared.dir/build.make:107: CMakeFiles/centreon_clib_shared.dir/src/process.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [CMakeFiles/centreon_clib_shared.dir/build.make:93: CMakeFiles/centreon_clib_shared.dir/src/process_manager.cc.o] Error 1 make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' make[2]: *** [CMakeFiles/Makefile2:175: CMakeFiles/centreon_clib_shared.dir/all] Error 2 make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' make[1]: *** [Makefile:139: 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:20: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2