[Debian-med-packaging] Bug#984042: dssp: ftbfs with GCC-11

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


Package: src:dssp
Version: 4.0.0-2
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/dssp_4.0.0-2_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.

[...]
checking for mrc... no
configure: WARNING: The mrc application was not found, not using resources.
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc is Clang... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking how to run the C++ preprocessor... g++ -std=c++17 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking filesystem usability... yes
checking filesystem presence... yes
checking for filesystem... yes
checking for boostlib >= 1.65.1 (106501)... yes
checking whether the Boost::IOStreams library is available... yes
checking for exit in -lboost_iostreams... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config... /usr/bin/pkg-config
checking for libcifpp ... yes
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating src/config.hpp
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p obj
>> src/dssp.cpp
In file included from /usr/include/cif++/Compound.hpp:35,
                 from /usr/include/cif++/Structure.hpp:33,
                 from src/dssp.cpp:38:
/usr/include/cif++/Cif++.hpp:461:50: error: ‘optional’ is not a member of ‘std’
  461 |         struct ItemReference::item_value_as<std::optional<T>>
      |                                                  ^~~~~~~~
/usr/include/cif++/Cif++.hpp:41:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
   40 | #include "cif++/CifUtils.hpp"
  +++ |+#include <optional>
   41 | 
/usr/include/cif++/Cif++.hpp:461:59: error: template argument 1 is invalid
  461 |         struct ItemReference::item_value_as<std::optional<T>>
      |                                                           ^
/usr/include/cif++/Cif++.hpp:461:60: error: expected unqualified-id before ‘>’ token
  461 |         struct ItemReference::item_value_as<std::optional<T>>
      |                                                            ^~
make[1]: *** [GNUmakefile:103: obj/dssp.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list