[Debian-med-packaging] Bug#1012906: cif-tools: ftbfs with GCC-12

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


Package: src:cif-tools
Version: 1.0.1b-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/cif-tools_1.0.1b-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.

[...]
/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());
      |                                                                                 ^~~~~~
[ 71%] Building CXX object CMakeFiles/mmCQL.dir/src/pr-main.cpp.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB -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/mmCQL.dir/src/pr-main.cpp.o -MF CMakeFiles/mmCQL.dir/src/pr-main.cpp.o.d -o CMakeFiles/mmCQL.dir/src/pr-main.cpp.o -c /<<PKGBUILDDIR>>/src/pr-main.cpp
[ 75%] Building CXX object CMakeFiles/cif2pdb.dir/src/pr-main.cpp.o
/usr/bin/c++ -DBOOST_ALL_NO_LIB -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/cif2pdb.dir/src/pr-main.cpp.o -MF CMakeFiles/cif2pdb.dir/src/pr-main.cpp.o.d -o CMakeFiles/cif2pdb.dir/src/pr-main.cpp.o -c /<<PKGBUILDDIR>>/src/pr-main.cpp
make[3]: *** [CMakeFiles/cif-grep.dir/build.make:97: CMakeFiles/cif-grep.dir/src/pr-main.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /<<PKGBUILDDIR>>/src/pr-main.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/cif-diff.dir/build.make:97: CMakeFiles/cif-diff.dir/src/pr-main.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:908: CMakeFiles/cif-diff.dir/all] Error 2
make[3]: *** [CMakeFiles/pdb2cif.dir/build.make:97: CMakeFiles/pdb2cif.dir/src/pr-main.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /<<PKGBUILDDIR>>/src/pr-main.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());
      |                                                                                 ^~~~~~
In file included from /<<PKGBUILDDIR>>/src/pr-main.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/cif2pdb.dir/build.make:97: CMakeFiles/cif2pdb.dir/src/pr-main.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/mmCQL.dir/build.make:97: CMakeFiles/mmCQL.dir/src/pr-main.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1038: CMakeFiles/mmCQL.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:882: CMakeFiles/cif2pdb.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:960: CMakeFiles/cif-grep.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:856: CMakeFiles/pdb2cif.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:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list