[Debian-med-packaging] Bug#984301: proftmb: ftbfs with GCC-11

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


Package: src:proftmb
Version: 1.1.12-9
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/proftmb_1.1.12-9_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.

[...]
HMMOutput.h:24:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   24 | void PrintEmit(ostream&,Par&,uint,char* ="");
      |                                            ^
In file included from proftmb.cpp:20:
Zscore.h:9:49: error: ISO C++17 does not allow dynamic exception specifications
    9 | Z_Calibrate(set<pair<int,double> >&,int,double) throw (string&);
      |                                                 ^~~~~
In file included from proftmb.cpp:22:
Eval.h:48:59: error: ISO C++17 does not allow dynamic exception specifications
   48 | float RelativeEntropy(vector<float>& A, vector<float>& B) throw (char *);
      |                                                           ^~~~~
proftmb.cpp:68:88: error: ISO C++17 does not allow dynamic exception specifications
   68 |                                         const char *, double, Par&, const char*, bool) throw (string &);
      |                                                                                        ^~~~~
proftmb.cpp:273:113: error: ISO C++17 does not allow dynamic exception specifications
  273 |                                         const char *datfile, double cut, Par& m, const char *name, bool multiQ) throw (string &) {
      |                                                                                                                 ^~~~~
make[3]: *** [Makefile:537: BaumWelch.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from TrainSeq.h:5,
                 from Eval.h:11,
                 from Eval.cpp:6:
Seq.h:85:53: error: ISO C++17 does not allow dynamic exception specifications
   85 |         bool InitLabels(set<pair<string,string> >&) throw (string&);
      |                                                     ^~~~~
Seq.h:194:67: error: ISO C++17 does not allow dynamic exception specifications
  194 |         static map<string,set<pair<string,string> > > Read(char*) throw (string&);
      |                                                                   ^~~~~
In file included from TrainSeq.h:6,
                 from Eval.h:11,
                 from Eval.cpp:6:
Par.h:34:36: error: ISO C++17 does not allow dynamic exception specifications
   34 |         static void LoadL2L(char*) throw (string&);
      |                                    ^~~~~
Par.h:35:36: error: ISO C++17 does not allow dynamic exception specifications
   35 |         static void LoadL2A(char*) throw (string&);
      |                                    ^~~~~
Par.h:36:36: error: ISO C++17 does not allow dynamic exception specifications
   36 |         static void LoadA2E(char*) throw (string&);
      |                                    ^~~~~
Par.h:37:40: error: ISO C++17 does not allow dynamic exception specifications
   37 |         static void LoadConnect(char*) throw (string&);
      |                                        ^~~~~
Par.h:40:74: error: ISO C++17 does not allow dynamic exception specifications
   40 |                                                   vector<unsigned int>&) throw (string&);
      |                                                                          ^~~~~
Par.h:120:40: error: ISO C++17 does not allow dynamic exception specifications
  120 |         static void ReadZCurve(char *) throw (string &);
      |                                        ^~~~~
Par.h:121:42: error: ISO C++17 does not allow dynamic exception specifications
  121 |         static void ReadNullFreq(char *) throw (string &);
      |                                          ^~~~~
In file included from Eval.cpp:6:
Eval.h:48:59: error: ISO C++17 does not allow dynamic exception specifications
   48 | float RelativeEntropy(vector<float>& A, vector<float>& B) throw (char *);
      |                                                           ^~~~~
make[3]: *** [Makefile:537: Backward.o] Error 1
make[3]: *** [Makefile:537: proftmb.o] Error 1
Eval.cpp:654:59: error: ISO C++17 does not allow dynamic exception specifications
  654 | float RelativeEntropy(vector<float>& A, vector<float>& B) throw (char *){
      |                                                           ^~~~~
make[3]: *** [Makefile:537: Eval.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:419: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:339: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list