[Debian-med-packaging] Bug#1012973: libcifpp: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:10:45 BST 2022


Package: src:libcifpp
Version: 2.0.5-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/libcifpp_2.0.5-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/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DCACHE_DIR=\"/var/cache/libcifpp\" -DCIFPP_USE_RSRC -DDATA_DIR=\"/usr/share/libcifpp\" -Dcifpp_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/PRIVATE -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 -fPIC -std=gnu++17 -MD -MT CMakeFiles/cifpp.dir/src/Cif2PDB.cpp.o -MF CMakeFiles/cifpp.dir/src/Cif2PDB.cpp.o.d -o CMakeFiles/cifpp.dir/src/Cif2PDB.cpp.o -c /<<PKGBUILDDIR>>/src/Cif2PDB.cpp
In file included from /<<PKGBUILDDIR>>/src/AtomType.cpp:30:
/<<PKGBUILDDIR>>/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)’:
/<<PKGBUILDDIR>>/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);
      |                                                                                 ^~~~~~
/<<PKGBUILDDIR>>/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)’:
/<<PKGBUILDDIR>>/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);
      |                                                                                 ^~~~~~
/<<PKGBUILDDIR>>/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)’:
/<<PKGBUILDDIR>>/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/BondMap.cpp:31:
/<<PKGBUILDDIR>>/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)’:
/<<PKGBUILDDIR>>/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);
      |                                                                                 ^~~~~~
/<<PKGBUILDDIR>>/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)’:
/<<PKGBUILDDIR>>/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);
      |                                                                                 ^~~~~~
/<<PKGBUILDDIR>>/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)’:
/<<PKGBUILDDIR>>/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/cifpp.dir/build.make:79: CMakeFiles/cifpp.dir/src/AtomType.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/<<PKGBUILDDIR>>/src/CifUtils.cpp: In constructor ‘mrsrc::rsrc_data::rsrc_data()’:
/<<PKGBUILDDIR>>/src/CifUtils.cpp:841:21: warning: the address of ‘gResourceIndex’ will never be NULL [-Waddress]
  841 |                 if (gResourceIndex and (gResourceIndex[0].m_child > 0 or gResourceIndex[0].m_size > 0) and gResourceIndex and gResourceName)
      |                     ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp:809:23: note: ‘gResourceIndex’ declared here
  809 | const mrsrc::rsrc_imp gResourceIndex[1] = {};
      |                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp:841:108: warning: the address of ‘gResourceIndex’ will never be NULL [-Waddress]
  841 |                 if (gResourceIndex and (gResourceIndex[0].m_child > 0 or gResourceIndex[0].m_size > 0) and gResourceIndex and gResourceName)
      |                                                                                                            ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp:809:23: note: ‘gResourceIndex’ declared here
  809 | const mrsrc::rsrc_imp gResourceIndex[1] = {};
      |                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp:841:127: warning: the address of ‘gResourceName’ will never be NULL [-Waddress]
  841 |                 if (gResourceIndex and (gResourceIndex[0].m_child > 0 or gResourceIndex[0].m_size > 0) and gResourceIndex and gResourceName)
      |                                                                                                                               ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp:811:12: note: ‘gResourceName’ declared here
  811 | const char gResourceName[1] = {};
      |            ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp: In function ‘std::unique_ptr<std::basic_istream<char> > cif::loadResource(std::filesystem::__cxx11::path)’:
/<<PKGBUILDDIR>>/src/CifUtils.cpp:1264:28: warning: the address of ‘gResourceData’ will never be NULL [-Waddress]
 1264 |         if (not result and gResourceData)
      |                            ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/CifUtils.cpp:810:12: note: ‘gResourceData’ declared here
  810 | const char gResourceData[1] = {};
      |            ^~~~~~~~~~~~~
make[3]: *** [CMakeFiles/cifpp.dir/build.make:93: CMakeFiles/cifpp.dir/src/BondMap.cpp.o] Error 1
/<<PKGBUILDDIR>>/src/Compound.cpp:232:48: warning: ‘visibility’ attribute ignored [-Wattributes]
  232 | CIFPP_EXPORT const std::map<std::string, char> kAAMap{
      |                                                ^~~~~~
/<<PKGBUILDDIR>>/src/Compound.cpp:256:48: warning: ‘visibility’ attribute ignored [-Wattributes]
  256 | CIFPP_EXPORT const std::map<std::string, char> kBaseMap{
      |                                                ^~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:851: CMakeFiles/cifpp.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:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list