Bug#984070: jaula: ftbfs with GCC-11
Package: src:jaula
Version: 1.4.0-6
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/jaula_1.4.0-6_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.
[...]
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c jaula_syntax_error.cc -o jaula_syntax_error.o >/dev/null 2>&1
jaula_parse.cc:459:22: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
459 | std::auto_ptr<Value> pItemVal(parseValue(lexan, token));
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from jaula_parse.cc:47:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
jaula_parse.cc: At global scope:
jaula_parse.cc:563:5: error: ISO C++17 does not allow dynamic exception specifications
563 | throw(Exception)
| ^~~~~
make[4]: *** [Makefile:617: jaula_parse.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from jaula_value.cc:41:
../jaula/jaula_value.h:110:45: error: ISO C++17 does not allow dynamic exception specifications
110 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
../jaula/jaula_value.h:130:43: error: ISO C++17 does not allow dynamic exception specifications
130 | Value &operator=(Value const &orig) throw(Bad_Data_Type);
| ^~~~~
In file included from jaula_value.cc:42:
../jaula/jaula_value_array.h:151:45: error: ISO C++17 does not allow dynamic exception specifications
151 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
In file included from jaula_value.cc:43:
../jaula/jaula_value_boolean.h:98:45: error: ISO C++17 does not allow dynamic exception specifications
98 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
In file included from jaula_value.cc:44:
../jaula/jaula_value_null.h:83:45: error: ISO C++17 does not allow dynamic exception specifications
83 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
In file included from jaula_value.cc:45:
../jaula/jaula_value_number.h:98:45: error: ISO C++17 does not allow dynamic exception specifications
98 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
In file included from jaula_value.cc:46:
../jaula/jaula_value_number_int.h:99:45: error: ISO C++17 does not allow dynamic exception specifications
99 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
In file included from jaula_value.cc:47:
../jaula/jaula_value_object.h:154:45: error: ISO C++17 does not allow dynamic exception specifications
154 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
../jaula/jaula_value_object.h:172:9: error: ISO C++17 does not allow dynamic exception specifications
172 | throw(Name_Duplicated);
| ^~~~~
In file included from jaula_value.cc:48:
../jaula/jaula_value_string.h:98:45: error: ISO C++17 does not allow dynamic exception specifications
98 | virtual void set(Value const &origin) throw(Bad_Data_Type);
| ^~~~~
jaula_value.cc:61:40: error: ISO C++17 does not allow dynamic exception specifications
61 | void Value::set(Value const &origin) throw(Bad_Data_Type)
| ^~~~~
jaula_value.cc:69:46: error: ISO C++17 does not allow dynamic exception specifications
69 | Value &Value::operator=(Value const &orig) throw(Bad_Data_Type)
| ^~~~~
make[4]: *** [Makefile:617: jaula_value.lo] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/jaula'
make[3]: *** [Makefile:681: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/jaula'
make[2]: *** [Makefile:428: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:360: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:5: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: