[Debichem-devel] Bug#984154: gnome-chemistry-utils: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:12:49 GMT 2021


Package: src:gnome-chemistry-utils
Version: 0.14.17-5
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/gnome-chemistry-utils_0.14.17-5_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.

[...]
  181 |         bool SetTarget (char const *id, Object **target, Object *parent, Object *owner = NULL, Action action = ActionException) throw (std::runtime_error);
      |                                                                                                                                 ^~~~~
document.h:187:32: error: ISO C++17 does not allow dynamic exception specifications
  187 |         virtual bool Loaded () throw (LoaderError);
      |                                ^~~~~
make[4]: *** [Makefile:687: chain.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:687: atom.lo] Error 1
make[4]: *** [Makefile:687: bond.lo] Error 1
application.cc: In member function ‘void gcu::Application::AddRule(gcu::TypeId, gcu::RuleId, gcu::TypeId)’:
application.cc:432:64: warning: this statement may fall through [-Wimplicit-fallthrough=]
  432 |                 typedesc1.RequiredChildren.insert (typedesc2.Id);
      |                                                                ^
application.cc:433:9: note: here
  433 |         case RuleMayContain:
      |         ^~~~
application.cc:438:63: warning: this statement may fall through [-Wimplicit-fallthrough=]
  438 |                 typedesc1.RequiredParents.insert (typedesc2.Id);
      |                                                               ^
application.cc:439:9: note: here
  439 |         case RuleMayBeIn:
      |         ^~~~
application.cc: In member function ‘char* gcu::Application::ConvertToCML(const string&, const char*, const char*)’:
application.cc:597:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  597 |                 write (sock, buf.c_str (), buf.length ());
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
application.cc:644:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  644 |                 write (sock, buf.c_str (), buf.length ());
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
application.cc:645:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  645 |                 write (sock, szbuf, size);
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~
application.cc: In member function ‘char* gcu::Application::ConvertToCML(GsfInput*, const char*, const char*)’:
application.cc:696:15: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  696 |         write (sock, buf.c_str (), buf.length ());
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
application.cc:697:15: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  697 |         write (sock, outbuf, n);
      |         ~~~~~~^~~~~~~~~~~~~~~~~
application.cc: In member function ‘void gcu::Application::ConvertFromCML(const char*, const string&, const char*, const char*)’:
application.cc:745:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  745 |                 write (sock, os.str ().c_str (), os.str ().length ());
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
application.cc:746:23: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  746 |                 write (sock, cml, l);
      |                 ~~~~~~^~~~~~~~~~~~~~
application.cc:753:15: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  753 |         write (sock, os.str ().c_str (), os.str ().length ());
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
application.cc:754:15: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  754 |         write (sock, cml, l);
      |         ~~~~~~^~~~~~~~~~~~~~
application.cc: In member function ‘void gcu::Application::ConvertFromCML(const char*, GsfOutput*, const char*, const char*)’:
application.cc:797:15: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  797 |         write (sock, os.str ().c_str (), os.str ().length ());
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
application.cc:798:15: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  798 |         write (sock, cml, l);
      |         ~~~~~~^~~~~~~~~~~~~~
make[4]: *** [Makefile:687: application.lo] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/libs/gcu'
make[3]: *** [Makefile:455: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libs'
make[2]: *** [Makefile:603: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:514: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debichem-devel mailing list