Bug#1013013: ortools: ftbfs with GCC-12

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


Package: src:ortools
Version: 8.2+ds-5
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/ortools_8.2+ds-5_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.

[...]
                 from /<<PKGBUILDDIR>>/ortools/sat/theta_tree.h:17:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /<<PKGBUILDDIR>>/ortools/sat/integer.h:37,
                 from /<<PKGBUILDDIR>>/ortools/sat/timetable.h:20,
                 from /<<PKGBUILDDIR>>/ortools/sat/timetable.cc:14:
/<<PKGBUILDDIR>>/ortools/graph/iterators.h:105:19: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  105 |     : public std::iterator<std::input_iterator_tag, IntegerType> {
      |                   ^~~~~~~~
In file included from /usr/include/c++/12/bits/stl_algobase.h:65,
                 from /usr/include/c++/12/vector:60,
                 from /<<PKGBUILDDIR>>/ortools/sat/timetable.h:17:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
[ 58%] Building CXX object ortools/sat/CMakeFiles/ortools_sat.dir/timetable_edgefinding.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/ortools/sat && /usr/bin/c++ -DOR_TOOLS_AS_DYNAMIC_LIB -DUSE_BOP -DUSE_CBC -DUSE_CLP -DUSE_GLOP -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -isystem /usr/include/coin -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fwrapv -std=c++17 -MD -MT ortools/sat/CMakeFiles/ortools_sat.dir/timetable_edgefinding.cc.o -MF CMakeFiles/ortools_sat.dir/timetable_edgefinding.cc.o.d -o CMakeFiles/ortools_sat.dir/timetable_edgefinding.cc.o -c /<<PKGBUILDDIR>>/ortools/sat/timetable_edgefinding.cc
In file included from /<<PKGBUILDDIR>>/ortools/sat/integer.h:37,
                 from /<<PKGBUILDDIR>>/ortools/sat/timetable_edgefinding.h:21,
                 from /<<PKGBUILDDIR>>/ortools/sat/timetable_edgefinding.cc:14:
/<<PKGBUILDDIR>>/ortools/graph/iterators.h:105:19: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  105 |     : public std::iterator<std::input_iterator_tag, IntegerType> {
      |                   ^~~~~~~~
In file included from /usr/include/c++/12/bits/stl_algobase.h:65,
                 from /usr/include/c++/12/vector:60,
                 from /<<PKGBUILDDIR>>/ortools/sat/timetable_edgefinding.h:17:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
[ 59%] Building CXX object ortools/sat/CMakeFiles/ortools_sat.dir/util.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/ortools/sat && /usr/bin/c++ -DOR_TOOLS_AS_DYNAMIC_LIB -DUSE_BOP -DUSE_CBC -DUSE_CLP -DUSE_GLOP -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -isystem /usr/include/coin -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fwrapv -std=c++17 -MD -MT ortools/sat/CMakeFiles/ortools_sat.dir/util.cc.o -MF CMakeFiles/ortools_sat.dir/util.cc.o.d -o CMakeFiles/ortools_sat.dir/util.cc.o -c /<<PKGBUILDDIR>>/ortools/sat/util.cc
[ 59%] Building CXX object ortools/sat/CMakeFiles/ortools_sat.dir/var_domination.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/ortools/sat && /usr/bin/c++ -DOR_TOOLS_AS_DYNAMIC_LIB -DUSE_BOP -DUSE_CBC -DUSE_CLP -DUSE_GLOP -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -isystem /usr/include/coin -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fwrapv -std=c++17 -MD -MT ortools/sat/CMakeFiles/ortools_sat.dir/var_domination.cc.o -MF CMakeFiles/ortools_sat.dir/var_domination.cc.o.d -o CMakeFiles/ortools_sat.dir/var_domination.cc.o -c /<<PKGBUILDDIR>>/ortools/sat/var_domination.cc
[ 59%] Building CXX object ortools/sat/CMakeFiles/ortools_sat.dir/zero_half_cuts.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/ortools/sat && /usr/bin/c++ -DOR_TOOLS_AS_DYNAMIC_LIB -DUSE_BOP -DUSE_CBC -DUSE_CLP -DUSE_GLOP -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -isystem /usr/include/coin -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -fwrapv -std=c++17 -MD -MT ortools/sat/CMakeFiles/ortools_sat.dir/zero_half_cuts.cc.o -MF CMakeFiles/ortools_sat.dir/zero_half_cuts.cc.o.d -o CMakeFiles/ortools_sat.dir/zero_half_cuts.cc.o -c /<<PKGBUILDDIR>>/ortools/sat/zero_half_cuts.cc
In file included from /<<PKGBUILDDIR>>/ortools/sat/integer.h:37,
                 from /<<PKGBUILDDIR>>/ortools/sat/var_domination.h:20,
                 from /<<PKGBUILDDIR>>/ortools/sat/var_domination.cc:14:
/<<PKGBUILDDIR>>/ortools/graph/iterators.h:105:19: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  105 |     : public std::iterator<std::input_iterator_tag, IntegerType> {
      |                   ^~~~~~~~
In file included from /usr/include/c++/12/string:45,
                 from /<<PKGBUILDDIR>>/ortools/algorithms/dynamic_partition.h:33,
                 from /<<PKGBUILDDIR>>/ortools/sat/var_domination.h:17:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /<<PKGBUILDDIR>>/ortools/sat/integer.h:37,
                 from /<<PKGBUILDDIR>>/ortools/sat/zero_half_cuts.h:20,
                 from /<<PKGBUILDDIR>>/ortools/sat/zero_half_cuts.cc:14:
/<<PKGBUILDDIR>>/ortools/graph/iterators.h:105:19: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  105 |     : public std::iterator<std::input_iterator_tag, IntegerType> {
      |                   ^~~~~~~~
In file included from /usr/include/c++/12/bits/stl_algobase.h:65,
                 from /usr/include/c++/12/vector:60,
                 from /<<PKGBUILDDIR>>/ortools/sat/zero_half_cuts.h:17:
/usr/include/c++/12/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 59%] Built target ortools_sat
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:139: all] Error 2
make[2]: 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[1]: *** [debian/rules:19: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list