Bug#1013049: tatan: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:14:21 BST 2022


Package: src:tatan
Version: 1.0.dfsg2-0.1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/tatan_1.0.dfsg2-0.1_unstable_gcc12.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.

[...]
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-18d0f114-2b52-4704-a078-859ddc7bab28
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package tatan
dpkg-buildpackage: info: source version 1.0.dfsg2-0.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Ivo De Decker <ivodd at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_auto_clean
	make -j8 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f tatan
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -- DFLAGS="-frelease"
	make -j8 "INSTALL=install --strip-program=true" DFLAGS=-frelease
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gdc -o tatan -Iimport -Isrc -Wdeprecated -frelease -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro import/SDL.d import/SDL_active.d import/SDL_audio.d import/SDL_byteorder.d import/SDL_cdrom.d import/SDL_copying.d import/SDL_endian.d import/SDL_error.d import/SDL_events.d import/SDL_getenv.d import/SDL_joystick.d import/SDL_keyboard.d import/SDL_keysym.d import/SDL_keysym_.d import/SDL_mixer.d import/SDL_mouse.d import/SDL_mutex.d import/SDL_quit.d import/SDL_rwops.d import/SDL_syswm.d import/SDL_thread.d import/SDL_timer.d import/SDL_types.d import/SDL_version_.d import/SDL_video.d import/bulletml.d import/hell2.d import/opengl.d import/openglu.d src/br/append.d src/br/background.d src/br/boot.d src/br/boss.d src/br/bullet.d src/br/cursor.d src/br/enemy.d src/br/frame.d src/br/gamemanager.d src/br/laserImpl.d src/br/mainloop.d src/br/particleImpl.d src/br/pattern.d src/br/screen.d src/br/shapeImpl.d src/br/ship.d src/br/shot.d src/br/sound.d src/br/stage.d src/br/star.d src/br/wall.d src/util/actor.d src/util/animation.d src/util/animationImpl.d src/util/ascii.d src/util/basis.d src/util/beam.d src/util/button.d src/util/cloneable.d src/util/collision.d src/util/font.d src/util/key.d src/util/laser.d src/util/list.d src/util/log.d src/util/matrix.d src/util/mouse.d src/util/particle.d src/util/parts.d src/util/rand.d src/util/record.d src/util/shape.d src/util/timer.d src/util/vector.d -lSDL -lGLU -lGL -lSDL_mixer
d21: warning: command-line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++ but not for D
d21: warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for D
d21: warning: command-line option ‘-Wdate-time’ is valid for C/C++/Fortran/ObjC/ObjC++ but not for D
import/hell2.d:144:21: error: instead of C-style syntax, use D-style ‘int[] mask’
  144 |                 int mask[]  = g_poolTexture[key].getMaskInfo();
      |                     ^
src/br/mainloop.d:66:25: error: instead of C-style syntax, use D-style ‘GLubyte[128] mask’
   66 |                 GLubyte mask[128];
      |                         ^
src/br/screen.d:24:30: error: instead of C-style syntax, use D-style ‘GLfloat[] ambientCol’
   24 |         static const GLfloat ambientCol[] = [1, 1, 1, 0.5];
      |                              ^
src/br/screen.d:26:30: error: instead of C-style syntax, use D-style ‘GLfloat[] lightPos1’
   26 |         static const GLfloat lightPos1[] = [ 0 , 0 , 100 , 0.0 ];
      |                              ^
src/br/screen.d:27:30: error: instead of C-style syntax, use D-style ‘GLfloat[] lightCol1’
   27 |         static const GLfloat lightCol1[] = [ 1 , 1 , 1 , 1 ];
      |                              ^
src/br/screen.d:29:30: error: instead of C-style syntax, use D-style ‘GLfloat[] lightPos2’
   29 |         static const GLfloat lightPos2[] = [ 0 , 0 , 100 , 1.0 ];
      |                              ^
src/br/screen.d:30:30: error: instead of C-style syntax, use D-style ‘GLfloat[] lightCol2’
   30 |         static const GLfloat lightCol2[] = [ 0 , 0 , 1 , 1 ];
      |                              ^
src/util/parts.d:446:33: error: instead of C-style syntax, use D-style ‘GLfloat[] color’
  446 |                         GLfloat color[] = [ R, G, B, alpha ];
      |                                 ^
make[2]: *** [Makefile:8: tatan] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" DFLAGS=-frelease returned exit code 2
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list