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

Bug#984033: din: ftbfs with GCC-11



Package: src:din
Version: 5.2.1-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/din_5.2.1-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.

[...]
checking for libircclient.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for liblo... yes
checking for jack... yes
checking for fftw3f... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating data/Makefile
config.status: executing depfiles commands
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
docbook-to-man debian/din.1.sgml > debian/din.1
dh_auto_build
	make -j4
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in include
make[3]: Entering directory '/<<PKGBUILDDIR>>/include'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/include'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -DPACKAGE_NAME=\"din\" -DPACKAGE_TARNAME=\"din\" -DPACKAGE_VERSION=\"5.2.1\" -DPACKAGE_STRING=\"din\ 5.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"din\" -DVERSION=\"5.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_TCL8_6_TCL_H=1 -DHAVE_LIBIRCCLIENT_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2    -I /usr/include -I /usr/local/include -I /opt/include -I/usr/include/tcl8.6 -I/usr/local/include/tcl8.6 -I /opt/include/tcl8.6 -I ../include  -Wall -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o main.o main.cc
g++ -DPACKAGE_NAME=\"din\" -DPACKAGE_TARNAME=\"din\" -DPACKAGE_VERSION=\"5.2.1\" -DPACKAGE_STRING=\"din\ 5.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"din\" -DVERSION=\"5.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_TCL8_6_TCL_H=1 -DHAVE_LIBIRCCLIENT_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2    -I /usr/include -I /usr/local/include -I /opt/include -I/usr/include/tcl8.6 -I/usr/local/include/tcl8.6 -I /opt/include/tcl8.6 -I ../include  -Wall -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o din.o din.cc
g++ -DPACKAGE_NAME=\"din\" -DPACKAGE_TARNAME=\"din\" -DPACKAGE_VERSION=\"5.2.1\" -DPACKAGE_STRING=\"din\ 5.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"din\" -DVERSION=\"5.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_TCL8_6_TCL_H=1 -DHAVE_LIBIRCCLIENT_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2    -I /usr/include -I /usr/local/include -I /opt/include -I/usr/include/tcl8.6 -I/usr/local/include/tcl8.6 -I /opt/include/tcl8.6 -I ../include  -Wall -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o audio.o audio.cc
g++ -DPACKAGE_NAME=\"din\" -DPACKAGE_TARNAME=\"din\" -DPACKAGE_VERSION=\"5.2.1\" -DPACKAGE_STRING=\"din\ 5.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"din\" -DVERSION=\"5.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_TCL8_6_TCL_H=1 -DHAVE_LIBIRCCLIENT_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2    -I /usr/include -I /usr/local/include -I /opt/include -I/usr/include/tcl8.6 -I/usr/local/include/tcl8.6 -I /opt/include/tcl8.6 -I ../include  -Wall -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o range.o range.cc
In file included from /usr/include/c++/11/bits/specfun.h:49,
                 from /usr/include/c++/11/cmath:1927,
                 from /usr/include/c++/11/math.h:36,
                 from audio.cc:35:
/usr/include/c++/11/tr1/gamma.tcc: In function ‘_Tp std::__detail::__log_gamma_bernoulli(_Tp)’:
/usr/include/c++/11/tr1/gamma.tcc:162:18: error: expected unqualified-id before ‘=’ token
  162 |       _Tp __help = _Tp(1) / __x;
      |                  ^
/usr/include/c++/11/tr1/gamma.tcc:166:18: error: expected primary-expression before ‘/=’ token
  166 |           __help /= __2i * (__2i - _Tp(1)) * __xx;
      |                  ^~
/usr/include/c++/11/tr1/gamma.tcc:167:53: error: expected primary-expression before ‘;’ token
  167 |           __lg += __bernoulli<_Tp>(2 * __i) * __help;
      |                                                     ^
g++ -DPACKAGE_NAME=\"din\" -DPACKAGE_TARNAME=\"din\" -DPACKAGE_VERSION=\"5.2.1\" -DPACKAGE_STRING=\"din\ 5.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"din\" -DVERSION=\"5.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GL_GL_H=1 -DHAVE_TCL8_6_TCL_H=1 -DHAVE_LIBIRCCLIENT_H=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2    -I /usr/include -I /usr/local/include -I /opt/include -I/usr/include/tcl8.6 -I/usr/local/include/tcl8.6 -I /opt/include/tcl8.6 -I ../include  -Wall -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o note.o note.cc
main.cc: In function ‘void add_commands(Tcl_Interp*)’:
main.cc:561:73: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  561 |     Tcl_CreateObjCommand (interp, cmdp->longname.c_str(), cmd_funcs[i], (void *) i, 0);
      |                                                                         ^~~~~~~~~~
main.cc:562:74: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  562 |     Tcl_CreateObjCommand (interp, cmdp->shortname.c_str(), cmd_funcs[i], (void *) i, 0);
      |                                                                          ^~~~~~~~~~
main.cc: In function ‘int main(int, char**)’:
main.cc:707:7: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
  707 |   int ignore = system (". ~/.din/m00"); // xset m 0 0 for clean mouse data, without any acceleration applied by X
      |       ^~~~~~
make[3]: *** [Makefile:517: audio.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from main.cc:58:
../include/checkdotdin.h: In constructor ‘checkdotdin::checkdotdin()’:
../include/checkdotdin.h:39:14: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |       system ("checkdotdin");
      |       ~~~~~~~^~~~~~~~~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:352: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: