Opened 3 years ago

Closed 3 years ago

#62024 closed defect (fixed)

supertuxkart: @1.2_1 build failure: static_assert failure, re: SDL_CONTROLLER_BUTTON

Reported by: mascguy (Christopher Nielsen) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: supertuxkart

Description

Build fails on macOS 10.12, with a static_assert failure. Looks like it could be related to libsdl2?

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_supertuxkart/supertuxkart/work/supertuxkart-1.2/src/input/gamepad_config.cpp:35:1: error: static_assert failed "non continous name"
static_assert(SDL_CONTROLLER_BUTTON_MAX - 1 == SDL_CONTROLLER_BUTTON_DPAD_RIGHT, "non continous name");
^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/supertuxkart.dir/src/input/gamepad_config.cpp.o] Error 1

Full main.log attached.

Attachments (1)

supertuxkart-main-log-10.12.txt.gz (37.6 KB) - added by mascguy (Christopher Nielsen) 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by mascguy (Christopher Nielsen)

comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)

Summary: supertuxkart: @1.2_1 build failure on macOS 10.12: static_assert failure, re: SDL_CONTROLLER_BUTTONsupertuxkart: @1.2_1 build failure: static_assert failure, re: SDL_CONTROLLER_BUTTON

comment:3 Changed 3 years ago by mascguy (Christopher Nielsen)

Confirmed that build failures aren't specific to any macOS release.

Pull request created with upstream's patch:

https://github.com/macports/macports-ports/pull/9677

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:4 Changed 3 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 6e68d13e5a95d3e13ff05cd16415b3a8ca68fa11/macports-ports (master):

supertuxkart: patch to fix SDL-related build failure in file src/input/gamepad_config.cpp

Fixes: #62024

Note: See TracTickets for help on using tickets.