Bug#1012942: gunroar: ftbfs with GCC-12
Matthias Klose
doko at debian.org
Thu Jun 16 13:09:16 BST 2022
Package: src:gunroar
Version: 0.15.dfsg1-9
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/gunroar_0.15.dfsg1-9_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.
[...]
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 gunroar -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_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/opengl.d import/openglu.d src/abagames/gr/boot.d src/abagames/gr/bullet.d src/abagames/gr/crystal.d src/abagames/gr/enemy.d src/abagames/gr/field.d src/abagames/gr/gamemanager.d src/abagames/gr/letter.d src/abagames/gr/mouse.d src/abagames/gr/mouseandpad.d src/abagames/gr/particle.d src/abagames/gr/prefmanager.d src/abagames/gr/reel.d src/abagames/gr/replay.d src/abagames/gr/screen.d src/abagames/gr/shape.d src/abagames/gr/ship.d src/abagames/gr/shot.d src/abagames/gr/soundmanager.d src/abagames/gr/stagemanager.d src/abagames/gr/title.d src/abagames/gr/turret.d src/abagames/util/actor.d src/abagames/util/iterator.d src/abagames/util/logger.d src/abagames/util/math.d src/abagames/util/prefmanager.d src/abagames/util/rand.d src/abagames/util/sdl/displaylist.d src/abagames/util/sdl/gamemanager.d src/abagames/util/sdl/input.d src/abagames/util/sdl/luminous.d src/abagames/util/sdl/mainloop.d src/abagames/util/sdl/mouse.d src/abagames/util/sdl/pad.d src/abagames/util/sdl/recordableinput.d src/abagames/util/sdl/screen.d src/abagames/util/sdl/screen3d.d src/abagames/util/sdl/sdlexception.d src/abagames/util/sdl/shape.d src/abagames/util/sdl/sound.d src/abagames/util/sdl/texture.d src/abagames/util/sdl/twinstick.d src/abagames/util/tokenizer.d src/abagames/util/vector.d -lSDL -lGL -lGLU -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
src/abagames/gr/crystal.d:75:9: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
75 | vel *= 0.95f;
| ^
src/abagames/gr/crystal.d:76:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
76 | pos += vel;
| ^
src/abagames/gr/particle.d:78:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
78 | pos += vel;
| ^
src/abagames/gr/particle.d:79:9: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
79 | vel *= 0.96f;
| ^
src/abagames/gr/particle.d:267:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
267 | pos += vel;
| ^
src/abagames/gr/particle.d:292:11: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
292 | vel *= 0.9f;
| ^
src/abagames/gr/particle.d:308:13: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
308 | vel *= 0.8f;
| ^
src/abagames/gr/particle.d:452:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
452 | pos += vel;
| ^
src/abagames/gr/particle.d:575:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
575 | pos += vel;
| ^
src/abagames/gr/particle.d:681:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
681 | pos += vel;
| ^
src/abagames/gr/particle.d:683:9: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
683 | vel *= 0.96f;
| ^
src/abagames/gr/reel.d:318:9: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
318 | vel *= target[targetIdx].initialVelRatio;
| ^
src/abagames/gr/reel.d:340:9: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
340 | vel *= 0.98f;
| ^
src/abagames/gr/reel.d:342:9: error: ‘opAddAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "+")’ instead.
342 | pos += vel;
| ^
src/abagames/gr/ship.d:215:15: error: ‘opDivAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "/")’ instead.
215 | _midstPos /= boatNum;
| ^
src/abagames/gr/ship.d:505:12: error: ‘opMulAssign’ is obsolete. Use ‘opOpAssign(string op)(...) if (op == "*")’ instead.
505 | refVel *= 0.9f;
| ^
src/abagames/util/vector.d:35:16: error: ‘opMul’ is obsolete. Use ‘opBinary(string op)(...) if (op == "*")’ instead.
35 | float ll = v * v;
| ^
src/abagames/util/vector.d:37:19: error: ‘opMul’ is obsolete. Use ‘opBinary(string op)(...) if (op == "*")’ instead.
37 | float mag = this * v;
| ^
make[2]: *** [Makefile:8: gunroar] 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