Bug#984113: libitpp: ftbfs with GCC-11

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


Package: src:libitpp
Version: 4.3.1-9.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/libitpp_4.3.1-9.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.

[...]
      |   ^~~~~~~~~~~
/<<PKGBUILDDIR>>/gtests/vec_test.cpp:1186:15: error: reference to ‘any’ is ambiguous
 1186 |   ASSERT_TRUE(any(b1));
      |               ^~~
/usr/src/gtest/include/gtest/internal/gtest-internal.h:1511:34: note: in definition of macro ‘GTEST_TEST_BOOLEAN_’
 1511 |       ::testing::AssertionResult(expression)) \
      |                                  ^~~~~~~~~~
/<<PKGBUILDDIR>>/gtests/vec_test.cpp:1186:3: note: in expansion of macro ‘ASSERT_TRUE’
 1186 |   ASSERT_TRUE(any(b1));
      |   ^~~~~~~~~~~
In file included from /usr/src/gtest/include/gtest/internal/gtest-port.h:2279,
                 from /usr/src/gtest/include/gtest/internal/gtest-internal.h:40,
                 from /usr/src/gtest/include/gtest/gtest.h:62,
                 from /<<PKGBUILDDIR>>/gtests/vec_test.cpp:31:
/usr/include/c++/11/any:77:9: note: candidates are: ‘class std::any’
   77 |   class any
      |         ^~~
In file included from /<<PKGBUILDDIR>>/itpp/base/math/integration.h:35,
                 from /<<PKGBUILDDIR>>/itpp/itbase.h:99,
                 from /<<PKGBUILDDIR>>/gtests/vec_test.cpp:29:
/<<PKGBUILDDIR>>/itpp/base/matfunc.h:865:18: note:                 ‘bool itpp::any(const bvec&)’
  865 | ITPP_EXPORT bool any(const bvec &testvec);
      |                  ^~~
In file included from /usr/src/gtest/include/gtest/gtest.h:62,
                 from /<<PKGBUILDDIR>>/gtests/vec_test.cpp:31:
/usr/src/gtest/include/gtest/internal/gtest-internal.h:1511:33: error: expected primary-expression before ‘(’ token
 1511 |       ::testing::AssertionResult(expression)) \
      |                                 ^
/usr/src/gtest/include/gtest/gtest.h:1990:3: note: in expansion of macro ‘GTEST_TEST_BOOLEAN_’
 1990 |   GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
      |   ^~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtests/vec_test.cpp:1187:3: note: in expansion of macro ‘ASSERT_FALSE’
 1187 |   ASSERT_FALSE(any(b2));
      |   ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtests/vec_test.cpp:1187:16: error: reference to ‘any’ is ambiguous
 1187 |   ASSERT_FALSE(any(b2));
      |                ^~~
/usr/src/gtest/include/gtest/internal/gtest-internal.h:1511:34: note: in definition of macro ‘GTEST_TEST_BOOLEAN_’
 1511 |       ::testing::AssertionResult(expression)) \
      |                                  ^~~~~~~~~~
/<<PKGBUILDDIR>>/gtests/vec_test.cpp:1187:3: note: in expansion of macro ‘ASSERT_FALSE’
 1187 |   ASSERT_FALSE(any(b2));
      |   ^~~~~~~~~~~~
In file included from /usr/src/gtest/include/gtest/internal/gtest-port.h:2279,
                 from /usr/src/gtest/include/gtest/internal/gtest-internal.h:40,
                 from /usr/src/gtest/include/gtest/gtest.h:62,
                 from /<<PKGBUILDDIR>>/gtests/vec_test.cpp:31:
/usr/include/c++/11/any:77:9: note: candidates are: ‘class std::any’
   77 |   class any
      |         ^~~
In file included from /<<PKGBUILDDIR>>/itpp/base/math/integration.h:35,
                 from /<<PKGBUILDDIR>>/itpp/itbase.h:99,
                 from /<<PKGBUILDDIR>>/gtests/vec_test.cpp:29:
/<<PKGBUILDDIR>>/itpp/base/matfunc.h:865:18: note:                 ‘bool itpp::any(const bvec&)’
  865 | ITPP_EXPORT bool any(const bvec &testvec);
      |                  ^~~
make[5]: *** [gtests/CMakeFiles/itpp_gtests.dir/build.make:904: gtests/CMakeFiles/itpp_gtests.dir/vec_test.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[4]: *** [CMakeFiles/Makefile2:164: gtests/CMakeFiles/itpp_gtests.dir/all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[3]: *** [CMakeFiles/Makefile2:171: gtests/CMakeFiles/itpp_gtests.dir/rule] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [Makefile:199: itpp_gtests] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j4 itpp_gtests VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:22: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list