Bug#1075267: mgba: ftbfs with GCC-14
Ryan Tandy
ryan at nardis.ca
Thu Jul 25 05:29:58 BST 2024
[ 67%] Building C object CMakeFiles/updater-stub.dir/src/feature/updater-main.c.o
/usr/bin/cc -DBUILD_GL -DBUILD_GLES2 -DBUILD_GLES3 -DBUILD_STATIC -DENABLE_SCRIPTING -DHAVE_CRC32 -DHAVE_FREELOCALE -DHAVE_FUTIMENS -DHAVE_FUTIMES -DHAVE_LOCALE -DHAVE_LOCALTIME_R -DHAVE_NEWLOCALE -DHAVE_PTHREAD_CREATE -DHAVE_PTHREAD_SETNAME_NP -DHAVE_SETLOCALE -DHAVE_STRDUP -DHAVE_STRLCPY -DHAVE_STRNDUP -DHAVE_USELOCALE -DHAVE_VASPRINTF -DLUA_VERSION_ONLY=\"5.4\" -DM_CORE_GB -DM_CORE_GBA -DUSE_DEBUGGERS -DUSE_DISCORD_RPC -DUSE_EDITLINE -DUSE_EGL -DUSE_ELF -DUSE_FFMPEG -DUSE_GDB_STUB -DUSE_GLX -DUSE_LIBSWRESAMPLE -DUSE_LIBZIP -DUSE_LUA -DUSE_LZMA -DUSE_PNG -DUSE_PTHREADS -DUSE_SQLITE3 -DUSE_ZLIB -D_7ZIP_PPMD_SUPPPORT -D_GNU_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/usr/include/editline -I/<<PKGBUILDDIR>>/src/third-party/lzma -I/<<PKGBUILDDIR>>/src/third-party/discord-rpc/include -I/usr/include/lua5.4 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-missing-field-initializers -Werror=implicit-function-declaration -pthread -std=c11 -MD -MT CMakeFiles/updater-stub.dir/src/feature/updater-main.c.o -MF CMakeFiles/updater-stub.dir/src/feature/updater-main.c.o.d -o CMakeFiles/updater-stub.dir/src/feature/updater-main.c.o -c /<<PKGBUILDDIR>>/src/feature/updater-main.c
/<<PKGBUILDDIR>>/src/feature/updater-main.c: In function ‘main’:
/<<PKGBUILDDIR>>/src/feature/updater-main.c:328:28: error: passing argument 2 of ‘execv’ from incompatible pointer type [-Wincompatible-pointer-types]
328 | execv(bin, argv);
| ^~~~
| |
| const char **
In file included from /<<PKGBUILDDIR>>/include/mgba-util/common.h:61,
from /<<PKGBUILDDIR>>/include/mgba/core/config.h:9,
from /<<PKGBUILDDIR>>/src/feature/updater-main.c:6:
/usr/include/unistd.h:584:51: note: expected ‘char * const*’ but argument is of type ‘const char **’
584 | extern int execv (const char *__path, char *const __argv[])
| ~~~~~~~~~~~~^~~~~~~~
make[3]: *** [CMakeFiles/updater-stub.dir/build.make:625: CMakeFiles/updater-stub.dir/src/feature/updater-main.c.o] Error 1
More information about the Pkg-games-devel
mailing list