Bug#984305: pynac: ftbfs with GCC-11

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


Package: src:pynac
Version: 0.7.27-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/pynac_0.7.27-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.

[...]
numeric.cpp:2212:21: note: to match this ‘(’
 2212 |                 if ((lh.v._long > 0
      |                     ^
numeric.cpp:2221:18: error: expected ‘)’ before ‘lh’
 2221 |                 }
      |                  ^
      |                  )
 2222 |                 lh.t = MPZ;
      |                 ~~
numeric.cpp:2212:20: note: to match this ‘(’
 2212 |                 if ((lh.v._long > 0
      |                    ^
numeric.cpp:2222:27: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
 2222 |                 lh.t = MPZ;
      |                           ^
numeric.cpp: In function ‘GiNaC::numeric& GiNaC::operator*=(GiNaC::numeric&, const GiNaC::numeric&)’:
numeric.cpp:2318:46: error: ‘numeric_limits’ is not a member of ‘std’
 2318 |                                         std::numeric_limits<long>::max()));
      |                                              ^~~~~~~~~~~~~~
numeric.cpp:2318:61: error: expected primary-expression before ‘long’
 2318 |                                         std::numeric_limits<long>::max()));
      |                                                             ^~~~
numeric.cpp: In member function ‘int GiNaC::numeric::to_int() const’:
numeric.cpp:3208:36: error: ‘numeric_limits’ is not a member of ‘std’
 3208 |                 if (v._long < std::numeric_limits<int>::max()
      |                                    ^~~~~~~~~~~~~~
numeric.cpp:3208:51: error: expected primary-expression before ‘int’
 3208 |                 if (v._long < std::numeric_limits<int>::max()
      |                                                   ^~~
numeric.cpp:3208:51: error: expected ‘)’ before ‘int’
 3208 |                 if (v._long < std::numeric_limits<int>::max()
      |                    ~                              ^~~
      |                                                   )
numeric.cpp: In member function ‘const GiNaC::numeric GiNaC::numeric::real() const’:
numeric.cpp:3613:29: warning: catching polymorphic type ‘class std::logic_error’ by value [-Wcatch-value=]
 3613 |                 catch (std::logic_error) {}
      |                             ^~~~~~~~~~~
numeric.cpp:3617:29: warning: catching polymorphic type ‘class std::logic_error’ by value [-Wcatch-value=]
 3617 |                 catch (std::logic_error) {}
      |                             ^~~~~~~~~~~
numeric.cpp: In member function ‘const GiNaC::numeric GiNaC::numeric::imag() const’:
numeric.cpp:3641:29: warning: catching polymorphic type ‘class std::logic_error’ by value [-Wcatch-value=]
 3641 |                 catch (std::logic_error) {}
      |                             ^~~~~~~~~~~
numeric.cpp:3645:29: warning: catching polymorphic type ‘class std::logic_error’ by value [-Wcatch-value=]
 3645 |                 catch (std::logic_error) {}
      |                             ^~~~~~~~~~~
numeric.cpp: In function ‘const GiNaC::numeric GiNaC::Li2(const GiNaC::numeric&, PyObject*)’:
numeric.cpp:4920:21: warning: catching polymorphic type ‘class std::logic_error’ by value [-Wcatch-value=]
 4920 |         catch (std::logic_error) {}
      |                     ^~~~~~~~~~~
numeric.cpp:4924:21: warning: catching polymorphic type ‘class std::logic_error’ by value [-Wcatch-value=]
 4924 |         catch (std::logic_error) {}
      |                     ^~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
make[3]: *** [Makefile:883: libpynac_la-numeric.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics
make[3]: Leaving directory '/<<PKGBUILDDIR>>/ginac'
make[2]: *** [Makefile:495: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:402: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list