[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984007: ccbuild: ftbfs with GCC-11



Package: src:ccbuild
Version: 2.0.7+git20160227.c1179286-3
Severity: normal
Tags: sid bookworm
User: debian-gcc@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/ccbuild_2.0.7+git20160227.c1179286-3_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.

[...]
In file included from /<<PKGBUILDDIR>>/src/MD5Info/MD5Info.ih:21,
                 from /<<PKGBUILDDIR>>/src/MD5Info/save.cc:18:
/<<PKGBUILDDIR>>/src/MD5Info/../fileSystem/fileSystem.hh:138:56: error: ISO C++17 does not allow dynamic exception specifications
  138 |         static time_t modTime(std::string const &file) throw (Problem);
      |                                                        ^~~~~
In file included from /<<PKGBUILDDIR>>/src/MD5Info/MD5Info.ih:21,
                 from /<<PKGBUILDDIR>>/src/MD5Info/statics.cc:19:
/<<PKGBUILDDIR>>/src/MD5Info/../fileSystem/fileSystem.hh:138:56: error: ISO C++17 does not allow dynamic exception specifications
  138 |         static time_t modTime(std::string const &file) throw (Problem);
      |                                                        ^~~~~
In file included from /<<PKGBUILDDIR>>/src/ccbuild.cc:21:
/<<PKGBUILDDIR>>/src/system/system.hh:204:90: error: ISO C++17 does not allow dynamic exception specifications
  204 |         static int system(std::string const &command, bool simulate = Options::simulate) throw(Problem);
      |                                                                                          ^~~~~
/<<PKGBUILDDIR>>/src/system/system.hh:228:69: error: ISO C++17 does not allow dynamic exception specifications
  228 |         static std::string mkdtemp(std::string const& nameTemplate) throw(Problem);
      |                                                                     ^~~~~
/<<PKGBUILDDIR>>/src/system/system.hh:232:39: error: ISO C++17 does not allow dynamic exception specifications
  232 |         static std::string username() throw(Problem);
      |                                       ^~~~~
In file included from /<<PKGBUILDDIR>>/src/ccbuild.cc:23:
/<<PKGBUILDDIR>>/src/fileSystem/fileSystem.hh:138:56: error: ISO C++17 does not allow dynamic exception specifications
  138 |         static time_t modTime(std::string const &file) throw (Problem);
      |                                                        ^~~~~
In file included from /<<PKGBUILDDIR>>/src/MD5Info/MD5Info.ih:22,
                 from /<<PKGBUILDDIR>>/src/MD5Info/old.cc:19:
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:204:90: error: ISO C++17 does not allow dynamic exception specifications
  204 |         static int system(std::string const &command, bool simulate = Options::simulate) throw(Problem);
      |                                                                                          ^~~~~
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:228:69: error: ISO C++17 does not allow dynamic exception specifications
  228 |         static std::string mkdtemp(std::string const& nameTemplate) throw(Problem);
      |                                                                     ^~~~~
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:232:39: error: ISO C++17 does not allow dynamic exception specifications
  232 |         static std::string username() throw(Problem);
      |                                       ^~~~~
In file included from /<<PKGBUILDDIR>>/src/MD5Info/MD5Info.ih:22,
                 from /<<PKGBUILDDIR>>/src/MD5Info/save.cc:18:
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:204:90: error: ISO C++17 does not allow dynamic exception specifications
  204 |         static int system(std::string const &command, bool simulate = Options::simulate) throw(Problem);
      |                                                                                          ^~~~~
In file included from /<<PKGBUILDDIR>>/src/MD5Info/MD5Info.ih:22,
                 from /<<PKGBUILDDIR>>/src/MD5Info/statics.cc:19:
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:204:90: error: ISO C++17 does not allow dynamic exception specifications
  204 |         static int system(std::string const &command, bool simulate = Options::simulate) throw(Problem);
      |                                                                                          ^~~~~
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:228:69: error: ISO C++17 does not allow dynamic exception specifications
  228 |         static std::string mkdtemp(std::string const& nameTemplate) throw(Problem);
      |                                                                     ^~~~~
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:232:39: error: ISO C++17 does not allow dynamic exception specifications
  232 |         static std::string username() throw(Problem);
      |                                       ^~~~~
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:228:69: error: ISO C++17 does not allow dynamic exception specifications
  228 |         static std::string mkdtemp(std::string const& nameTemplate) throw(Problem);
      |                                                                     ^~~~~
/<<PKGBUILDDIR>>/src/MD5Info/../system/system.hh:232:39: error: ISO C++17 does not allow dynamic exception specifications
  232 |         static std::string username() throw(Problem);
      |                                       ^~~~~
make[3]: *** [CMakeFiles/ccbuild.dir/build.make:98: CMakeFiles/ccbuild.dir/src/MD5Info/statics.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/ccbuild.dir/build.make:85: CMakeFiles/ccbuild.dir/src/ccbuild.cc.o] Error 1
make[3]: *** [CMakeFiles/ccbuild.dir/build.make:124: CMakeFiles/ccbuild.dir/src/MD5Info/old.cc.o] Error 1
make[3]: *** [CMakeFiles/ccbuild.dir/build.make:111: CMakeFiles/ccbuild.dir/src/MD5Info/save.cc.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:98: CMakeFiles/ccbuild.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:152: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: