[Debian-med-packaging] Bug#1012913: dssp: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:08:15 BST 2022


Package: src:dssp
Version: 4.0.4-1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/dssp_4.0.4-1_unstable_gcc12.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.

[...]
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f CMakeFiles/mkdssp.dir/build.make CMakeFiles/mkdssp.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 37%] Building CXX object CMakeFiles/mkdssp.dir/src/dssp.cpp.o
[ 50%] Building CXX object CMakeFiles/unit-test.dir/test/unit-test.cpp.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DCACHE_DIR=\"/var/cache/libcifpp\" -DDATA_DIR=\"/usr/share/libcifpp\" -DUSE_RSRC -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/PRIVATE -I/<<PKGBUILDDIR>>/cifpp::cifpp -I/<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=gnu++17 -MD -MT CMakeFiles/mkdssp.dir/src/dssp.cpp.o -MF CMakeFiles/mkdssp.dir/src/dssp.cpp.o.d -o CMakeFiles/mkdssp.dir/src/dssp.cpp.o -c /<<PKGBUILDDIR>>/src/dssp.cpp
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DCACHE_DIR=\"/var/cache/libcifpp\" -DDATA_DIR=\"/usr/share/libcifpp\" -DUSE_RSRC -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/PRIVATE -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=gnu++17 -MD -MT CMakeFiles/unit-test.dir/test/unit-test.cpp.o -MF CMakeFiles/unit-test.dir/test/unit-test.cpp.o.d -o CMakeFiles/unit-test.dir/test/unit-test.cpp.o -c /<<PKGBUILDDIR>>/test/unit-test.cpp
[ 75%] Building CXX object CMakeFiles/mkdssp.dir/src/mkdssp.cpp.o
[ 75%] Building CXX object CMakeFiles/unit-test.dir/src/dssp.cpp.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DCACHE_DIR=\"/var/cache/libcifpp\" -DDATA_DIR=\"/usr/share/libcifpp\" -DUSE_RSRC -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/PRIVATE -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=gnu++17 -MD -MT CMakeFiles/unit-test.dir/src/dssp.cpp.o -MF CMakeFiles/unit-test.dir/src/dssp.cpp.o.d -o CMakeFiles/unit-test.dir/src/dssp.cpp.o -c /<<PKGBUILDDIR>>/src/dssp.cpp
/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DCACHE_DIR=\"/var/cache/libcifpp\" -DDATA_DIR=\"/usr/share/libcifpp\" -DUSE_RSRC -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/PRIVATE -I/<<PKGBUILDDIR>>/cifpp::cifpp -I/<<PKGBUILDDIR>>/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=gnu++17 -MD -MT CMakeFiles/mkdssp.dir/src/mkdssp.cpp.o -MF CMakeFiles/mkdssp.dir/src/mkdssp.cpp.o.d -o CMakeFiles/mkdssp.dir/src/mkdssp.cpp.o -c /<<PKGBUILDDIR>>/src/mkdssp.cpp
In file included from /usr/include/cif++/Cif2PDB.hpp:29,
                 from /<<PKGBUILDDIR>>/src/dssp.cpp:40:
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<char [N]>::compare(const cif::detail::ItemReference&, const char (&)[N], bool)’:
/usr/include/cif++/Cif++.hpp:548:81: error: ‘strcmp’ is not a member of ‘std’
  548 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
      |                                                                                 ^~~~~~
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<const char*>::compare(const cif::detail::ItemReference&, const char*, bool)’:
/usr/include/cif++/Cif++.hpp:562:81: error: ‘strcmp’ is not a member of ‘std’
  562 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
      |                                                                                 ^~~~~~
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<std::__cxx11::basic_string<char> >::compare(const cif::detail::ItemReference&, const std::string&, bool)’:
/usr/include/cif++/Cif++.hpp:576:81: error: ‘strcmp’ is not a member of ‘std’
  576 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value.c_str());
      |                                                                                 ^~~~~~
In file included from /usr/include/cif++/Cif2PDB.hpp:29,
                 from /<<PKGBUILDDIR>>/src/dssp.cpp:40:
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<char [N]>::compare(const cif::detail::ItemReference&, const char (&)[N], bool)’:
/usr/include/cif++/Cif++.hpp:548:81: error: ‘strcmp’ is not a member of ‘std’
  548 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
      |                                                                                 ^~~~~~
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<const char*>::compare(const cif::detail::ItemReference&, const char*, bool)’:
/usr/include/cif++/Cif++.hpp:562:81: error: ‘strcmp’ is not a member of ‘std’
  562 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
      |                                                                                 ^~~~~~
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<std::__cxx11::basic_string<char> >::compare(const cif::detail::ItemReference&, const std::string&, bool)’:
/usr/include/cif++/Cif++.hpp:576:81: error: ‘strcmp’ is not a member of ‘std’
  576 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value.c_str());
      |                                                                                 ^~~~~~
In file included from /usr/include/cif++/Structure.hpp:32,
                 from /<<PKGBUILDDIR>>/src/mkdssp.cpp:39:
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<char [N]>::compare(const cif::detail::ItemReference&, const char (&)[N], bool)’:
/usr/include/cif++/Cif++.hpp:548:81: error: ‘strcmp’ is not a member of ‘std’
  548 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
      |                                                                                 ^~~~~~
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<const char*>::compare(const cif::detail::ItemReference&, const char*, bool)’:
/usr/include/cif++/Cif++.hpp:562:81: error: ‘strcmp’ is not a member of ‘std’
  562 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value);
      |                                                                                 ^~~~~~
/usr/include/cif++/Cif++.hpp: In static member function ‘static int cif::detail::ItemReference::item_value_as<std::__cxx11::basic_string<char> >::compare(const cif::detail::ItemReference&, const std::string&, bool)’:
/usr/include/cif++/Cif++.hpp:576:81: error: ‘strcmp’ is not a member of ‘std’
  576 |                         return icase ? cif::icompare(ref.c_str(), value) : std::strcmp(ref.c_str(), value.c_str());
      |                                                                                 ^~~~~~
make[3]: *** [CMakeFiles/mkdssp.dir/build.make:83: CMakeFiles/mkdssp.dir/src/dssp.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/unit-test.dir/build.make:97: CMakeFiles/unit-test.dir/src/dssp.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/mkdssp.dir/build.make:97: CMakeFiles/mkdssp.dir/src/mkdssp.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:844: CMakeFiles/mkdssp.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:870: CMakeFiles/unit-test.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 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