[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/aiksaurus_1.2.1+dev-0.12-6.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.
[...]
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in base
make[3]: Entering directory '/<<PKGBUILDDIR>>/base'
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -DAIK_DATA_DIR=\"/usr/share/aiksaurus/\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o aiksaurus.t.o aiksaurus.t.cpp
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I.. -DAIK_DATA_DIR=\"/usr/share/aiksaurus/\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o Aiksaurus.lo Aiksaurus.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -DAIK_DATA_DIR=\"/usr/share/aiksaurus/\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c Aiksaurus.cpp -fPIC -DPIC -o .libs/Aiksaurus.o
In file included from Aiksaurus.cpp:28:
MeaningsFile.h:49:17: error: ISO C++17 does not allow dynamic exception specifications
49 | throw(AiksaurusException);
| ^~~~~
MeaningsFile.h:54:45: error: ISO C++17 does not allow dynamic exception specifications
54 | MeaningsFile(const char* fname) throw(AiksaurusException);
| ^~~~~
MeaningsFile.h:58:35: error: ISO C++17 does not allow dynamic exception specifications
58 | int* getWords(int id) throw(AiksaurusException);
| ^~~~~
In file included from Aiksaurus.cpp:29:
WordsFile.h:58:42: error: ISO C++17 does not allow dynamic exception specifications
58 | WordsFile(const char* fname) throw(AiksaurusException);
| ^~~~~
WordsFile.h:62:35: error: ISO C++17 does not allow dynamic exception specifications
62 | void loadWord(int id) throw(AiksaurusException);
| ^~~~~
WordsFile.h:63:56: error: ISO C++17 does not allow dynamic exception specifications
63 | bool findWord(const char* str, int& index) throw(AiksaurusException);
| ^~~~~
In file included from Aiksaurus.cpp:30:
WordStream.h:41:36: error: ISO C++17 does not allow dynamic exception specifications
41 | WordStream(int* words) throw(std::bad_alloc)
| ^~~~~
Aiksaurus.cpp:101:17: error: ISO C++17 does not allow dynamic exception specifications
101 | throw(AiksaurusException);
| ^~~~~
Aiksaurus.cpp:107:41: error: ISO C++17 does not allow dynamic exception specifications
107 | bool find(const char* word) throw(AiksaurusException);
| ^~~~~
Aiksaurus.cpp:108:39: error: ISO C++17 does not allow dynamic exception specifications
108 | const char* next(int& id) throw(AiksaurusException);
| ^~~~~
Aiksaurus.cpp:109:35: error: ISO C++17 does not allow dynamic exception specifications
109 | const char* similar() throw(AiksaurusException);
| ^~~~~
Aiksaurus.cpp:115:1: error: ISO C++17 does not allow dynamic exception specifications
115 | throw(AiksaurusException)
| ^~~~~
Aiksaurus.cpp:155:39: error: ISO C++17 does not allow dynamic exception specifications
155 | ThesaurusImpl::find(const char* word) throw(AiksaurusException)
| ^~~~~
Aiksaurus.cpp:200:42: error: ISO C++17 does not allow dynamic exception specifications
200 | const char* ThesaurusImpl::next(int& id) throw(AiksaurusException)
| ^~~~~
Aiksaurus.cpp:223:38: error: ISO C++17 does not allow dynamic exception specifications
223 | const char* ThesaurusImpl::similar() throw(AiksaurusException)
| ^~~~~
make[3]: *** [Makefile:565: Aiksaurus.lo] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/base'
make[2]: *** [Makefile:432: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:362: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2