[Debian-med-packaging] Bug#984086: libbpp-core: ftbfs with GCC-11

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


Package: src:libbpp-core
Version: 2.4.1-5
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/libbpp-core_2.4.1-5_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>>/src/Bpp/App/../Numeric/Matrix/../NumTools.h:43,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/Matrix.h:48,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:50,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.h:44,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.cpp:40:
/<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../Function/Functions.h: In member function ‘double bpp::InfinityDerivableSecondOrderWrapper::getSecondOrderDerivative(const string&) const’:
/<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../Function/Functions.h:570:128: warning: ‘this’ pointer is null [-Wnonnull]
  570 |       return constraintMatch_ ? -log(0.) :  (dynamic_cast<DerivableSecondOrder *>(function_)->getSecondOrderDerivative(variable));
      |                                                                                                                                ^
In file included from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../NumTools.h:43,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/Matrix.h:48,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:50,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.h:44,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.cpp:40:
/<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../Function/Functions.h:217:20: note: in a call to non-static member function ‘virtual double bpp::DerivableSecondOrder::getSecondOrderDerivative(const string&) const’
  217 |     virtual double getSecondOrderDerivative(const std::string& variable) const = 0;
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../NumTools.h:43,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/Matrix.h:48,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:50,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.h:44,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.cpp:40:
/<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../Function/Functions.h: In member function ‘double bpp::InfinityDerivableSecondOrderWrapper::getSecondOrderDerivative(const string&, const string&) const’:
/<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../Function/Functions.h:581:140: warning: ‘this’ pointer is null [-Wnonnull]
  581 |       return constraintMatch_ ? -log(0.) :  (dynamic_cast<DerivableSecondOrder *>(function_)->getSecondOrderDerivative(variable1, variable2));
      |                                                                                                                                            ^
In file included from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../NumTools.h:43,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/Matrix.h:48,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:50,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.h:44,
                 from /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.cpp:40:
/<<PKGBUILDDIR>>/src/Bpp/App/../Numeric/Matrix/../Function/Functions.h:243:20: note: in a call to non-static member function ‘virtual double bpp::DerivableSecondOrder::getSecondOrderDerivative(const string&, const string&) const’
  243 |     virtual double getSecondOrderDerivative(const std::string& variable1, const std::string& variable2) const = 0;
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
[  6%] Building CXX object src/CMakeFiles/bpp-core-shared.dir/Bpp/Exceptions.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -Dbpp_core_shared_EXPORTS -I/<<PKGBUILDDIR>>/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/bpp-core-shared.dir/Bpp/Exceptions.cpp.o -c /<<PKGBUILDDIR>>/src/Bpp/Exceptions.cpp
[  6%] Building CXX object src/CMakeFiles/bpp-core-shared.dir/Bpp/Graph/GlobalGraph.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -Dbpp_core_shared_EXPORTS -I/<<PKGBUILDDIR>>/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/bpp-core-shared.dir/Bpp/Graph/GlobalGraph.cpp.o -c /<<PKGBUILDDIR>>/src/Bpp/Graph/GlobalGraph.cpp
[  7%] Building CXX object src/CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/ColorTools.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -Dbpp_core_shared_EXPORTS -I/<<PKGBUILDDIR>>/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/ColorTools.cpp.o -c /<<PKGBUILDDIR>>/src/Bpp/Graphics/ColorTools.cpp
[  7%] Building CXX object src/CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/Fig/XFigGraphicDevice.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -Dbpp_core_shared_EXPORTS -I/<<PKGBUILDDIR>>/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/Fig/XFigGraphicDevice.cpp.o -c /<<PKGBUILDDIR>>/src/Bpp/Graphics/Fig/XFigGraphicDevice.cpp
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1042: src/CMakeFiles/bpp-core-static.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[  8%] Building CXX object src/CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/Fig/XFigLaTeXFontManager.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -Dbpp_core_shared_EXPORTS -I/<<PKGBUILDDIR>>/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/Fig/XFigLaTeXFontManager.cpp.o -c /<<PKGBUILDDIR>>/src/Bpp/Graphics/Fig/XFigLaTeXFontManager.cpp
[  8%] Building CXX object src/CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/Fig/XFigPostscriptFontManager.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -Dbpp_core_shared_EXPORTS -I/<<PKGBUILDDIR>>/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/bpp-core-shared.dir/Bpp/Graphics/Fig/XFigPostscriptFontManager.cpp.o -c /<<PKGBUILDDIR>>/src/Bpp/Graphics/Fig/XFigPostscriptFontManager.cpp
/<<PKGBUILDDIR>>/src/Bpp/Graph/GlobalGraph.cpp: In member function ‘virtual void bpp::GlobalGraph::orientate()’:
/<<PKGBUILDDIR>>/src/Bpp/Graph/GlobalGraph.cpp:777:20: error: ‘numeric_limits’ was not declared in this scope
  777 |       size_t nbF = numeric_limits<size_t>::infinity();
      |                    ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/Bpp/Graph/GlobalGraph.cpp:777:41: error: expected primary-expression before ‘>’ token
  777 |       size_t nbF = numeric_limits<size_t>::infinity();
      |                                         ^
/<<PKGBUILDDIR>>/src/Bpp/Graph/GlobalGraph.cpp:777:44: error: ‘::infinity’ has not been declared
  777 |       size_t nbF = numeric_limits<size_t>::infinity();
      |                                            ^~~~~~~~
make[3]: *** [src/CMakeFiles/bpp-core-shared.dir/build.make:150: src/CMakeFiles/bpp-core-shared.dir/Bpp/Graph/GlobalGraph.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1015: src/CMakeFiles/bpp-core-shared.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:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list