[Debichem-devel] Bug#983979: bagel: ftbfs with GCC-11

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


Package: src:bagel
Version: 1.2.2-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/bagel_1.2.2-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.

[...]
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c ztranspose.cc -o ztranspose.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o sparsematrix.lo sparsematrix.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c sparsematrix.cc -o sparsematrix.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o blocksparsematrix.lo blocksparsematrix.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c blocksparsematrix.cc -o blocksparsematrix.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o xyzfile.lo xyzfile.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c xyzfile.cc -o xyzfile.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o algo.lo algo.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c algo.cc -o algo.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o btas_interface.lo btas_interface.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c btas_interface.cc -o btas_interface.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o preallocarray.lo preallocarray.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c preallocarray.cc -o preallocarray.o
/bin/bash ../../../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I../../..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c -o sphharmonics.lo sphharmonics.cc
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I../../.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I../../.. -g1 -O2 -DNDEBUG -DZDOT_RETURN -c sphharmonics.cc -o sphharmonics.o
sphharmonics.cc: In member function ‘std::complex<double> bagel::SphHarmonics::ylm() const’:
sphharmonics.cc:85:22: error: reference to ‘legendre’ is ambiguous
   85 |   const double plm = legendre.compute(l, am, cth);
      |                      ^~~~~~~~
In file included from /usr/include/c++/11/cmath:1927,
                 from /usr/include/c++/11/complex:44,
                 from ../../../src/util/math/sphharmonics.h:30,
                 from sphharmonics.cc:28:
/usr/include/c++/11/bits/specfun.h:1007:5: note: candidates are: ‘template<class _Tp> typename __gnu_cxx::__promote<_Tp>::__type std::legendre(unsigned int, _Tp)’
 1007 |     legendre(unsigned int __l, _Tp __x)
      |     ^~~~~~~~
sphharmonics.cc:33:23: note:                 ‘const bagel::Legendre legendre’
   33 | const static Legendre legendre;
      |                       ^~~~~~~~
sphharmonics.cc: In member function ‘double bagel::SphHarmonics::zlm() const’:
sphharmonics.cc:112:22: error: reference to ‘legendre’ is ambiguous
  112 |   const double plm = legendre.compute(l, am, cth);
      |                      ^~~~~~~~
In file included from /usr/include/c++/11/cmath:1927,
                 from /usr/include/c++/11/complex:44,
                 from ../../../src/util/math/sphharmonics.h:30,
                 from sphharmonics.cc:28:
/usr/include/c++/11/bits/specfun.h:1007:5: note: candidates are: ‘template<class _Tp> typename __gnu_cxx::__promote<_Tp>::__type std::legendre(unsigned int, _Tp)’
 1007 |     legendre(unsigned int __l, _Tp __x)
      |     ^~~~~~~~
sphharmonics.cc:33:23: note:                 ‘const bagel::Legendre legendre’
   33 | const static Legendre legendre;
      |                       ^~~~~~~~
sphharmonics.cc: In member function ‘double bagel::SphHarmonics::zlm(int, int) const’:
sphharmonics.cc:136:22: error: reference to ‘legendre’ is ambiguous
  136 |   const double plm = legendre.compute(l, am, cth);
      |                      ^~~~~~~~
In file included from /usr/include/c++/11/cmath:1927,
                 from /usr/include/c++/11/complex:44,
                 from ../../../src/util/math/sphharmonics.h:30,
                 from sphharmonics.cc:28:
/usr/include/c++/11/bits/specfun.h:1007:5: note: candidates are: ‘template<class _Tp> typename __gnu_cxx::__promote<_Tp>::__type std::legendre(unsigned int, _Tp)’
 1007 |     legendre(unsigned int __l, _Tp __x)
      |     ^~~~~~~~
sphharmonics.cc:33:23: note:                 ‘const bagel::Legendre legendre’
   33 | const static Legendre legendre;
      |                       ^~~~~~~~
make[5]: *** [Makefile:466: sphharmonics.lo] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/util/math'
make[4]: *** [Makefile:462: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/util'
make[3]: *** [Makefile:625: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:424: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:356: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:12: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debichem-devel mailing list