Bug#980606: supertuxkart: FTBFS: gamepad_config.cpp:35:45: error: static assertion failed: non continous name

2021-01-20 Thread Simon McVittie
On Wed, 20 Jan 2021 at 21:30:37 +0100, Lucas Nussbaum wrote:
> >35 | static_assert(SDL_CONTROLLER_BUTTON_MAX - 1 == 
> > SDL_CONTROLLER_BUTTON_DPAD_RIGHT, "non continous name");

I think this is caused by SDL 2.0.14 adding support for more controller
buttons, and supertuxkart assuming that this would never happen. Upstream
commit
https://github.com/supertuxkart/stk-code/commit/61833c9c26da5520f2eaa02f2458971ba07f2aad
seems relevant.

smcv



Bug#980606: supertuxkart: FTBFS: gamepad_config.cpp:35:45: error: static assertion failed: non continous name

2021-01-20 Thread Lucas Nussbaum
Source: supertuxkart
Version: 1.2+ds-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210120 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> /usr/bin/c++ -DENABLE_CRYPTO_NETTLE -DENABLE_IPV6 -DENABLE_SOUND 
> -DENABLE_SQLITE3 -DENABLE_WIIUSE -DGLEW_NO_GLU -DNDEBUG 
> -DSUPERTUXKART_DATADIR=\"/usr/share/games/supertuxkart\" 
> -DSUPERTUXKART_VERSION=\"1.2\" -I/<>/lib/bullet/src 
> -I/<>/lib/enet/include -I/<>/lib/graphics_utils 
> -I/usr/include/SDL2 -I/<>/lib/irrlicht/include 
> -I/<>/lib/wiiuse/src -I/<>/src 
> -I/<>/lib/angelscript/include -I/usr/include/AL 
> -I/<>/lib/sheenbidi/Headers -I/usr/include/freetype2 
> -I/usr/include/libpng16 -g -O2 -ffile-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -Wno-unused-function -O2 -DNDEBUG -o 
> CMakeFiles/supertuxkart.dir/src/input/gamepad_config.cpp.o -c 
> /<>/src/input/gamepad_config.cpp
> /<>/src/input/gamepad_config.cpp:35:45: error: static assertion 
> failed: non continous name
>35 | static_assert(SDL_CONTROLLER_BUTTON_MAX - 1 == 
> SDL_CONTROLLER_BUTTON_DPAD_RIGHT, "non continous name");
>   |   
> ~~^~~
> [ 60%] Building CXX object 
> CMakeFiles/supertuxkart.dir/src/input/gamepad_device.cpp.o
> /usr/bin/c++ -DENABLE_CRYPTO_NETTLE -DENABLE_IPV6 -DENABLE_SOUND 
> -DENABLE_SQLITE3 -DENABLE_WIIUSE -DGLEW_NO_GLU -DNDEBUG 
> -DSUPERTUXKART_DATADIR=\"/usr/share/games/supertuxkart\" 
> -DSUPERTUXKART_VERSION=\"1.2\" -I/<>/lib/bullet/src 
> -I/<>/lib/enet/include -I/<>/lib/graphics_utils 
> -I/usr/include/SDL2 -I/<>/lib/irrlicht/include 
> -I/<>/lib/wiiuse/src -I/<>/src 
> -I/<>/lib/angelscript/include -I/usr/include/AL 
> -I/<>/lib/sheenbidi/Headers -I/usr/include/freetype2 
> -I/usr/include/libpng16 -g -O2 -ffile-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -Wno-unused-function -O2 -DNDEBUG -o 
> CMakeFiles/supertuxkart.dir/src/input/gamepad_device.cpp.o -c 
> /<>/src/input/gamepad_device.cpp
> [ 61%] Building CXX object 
> CMakeFiles/supertuxkart.dir/src/input/input_device.cpp.o
> /usr/bin/c++ -DENABLE_CRYPTO_NETTLE -DENABLE_IPV6 -DENABLE_SOUND 
> -DENABLE_SQLITE3 -DENABLE_WIIUSE -DGLEW_NO_GLU -DNDEBUG 
> -DSUPERTUXKART_DATADIR=\"/usr/share/games/supertuxkart\" 
> -DSUPERTUXKART_VERSION=\"1.2\" -I/<>/lib/bullet/src 
> -I/<>/lib/enet/include -I/<>/lib/graphics_utils 
> -I/usr/include/SDL2 -I/<>/lib/irrlicht/include 
> -I/<>/lib/wiiuse/src -I/<>/src 
> -I/<>/lib/angelscript/include -I/usr/include/AL 
> -I/<>/lib/sheenbidi/Headers -I/usr/include/freetype2 
> -I/usr/include/libpng16 -g -O2 -ffile-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -Wno-unused-function -O2 -DNDEBUG -o 
> CMakeFiles/supertuxkart.dir/src/input/input_device.cpp.o -c 
> /<>/src/input/input_device.cpp
> make[3]: *** [CMakeFiles/supertuxkart.dir/build.make:1892: 
> CMakeFiles/supertuxkart.dir/src/input/gamepad_config.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2021/01/20/supertuxkart_1.2+ds-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.