Bug#1075498: sdl-image1.2: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:43:43 BST 2024


Package: src:sdl-image1.2
Version: 1.2.12-13
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

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

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/sdl-image1.2_1.2.12-13_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html

[...]
      |                ^~~~~~~~~
IMG_bmp.c:609:16: warning: unused variable ‘wPlanes’ [-Wunused-variable]
  609 |         Uint16 wPlanes = SDL_ReadLE16(src);
      |                ^~~~~~~
IMG_bmp.c:608:15: warning: unused variable ‘bReserved’ [-Wunused-variable]
  608 |         Uint8 bReserved = SDL_Read8(src);
      |               ^~~~~~~~~
IMG_bmp.c:579:12: warning: variable ‘biClrImportant’ set but not used [-Wunused-but-set-variable]
  579 |     Uint32 biClrImportant;
      |            ^~~~~~~~~~~~~~
IMG_bmp.c:577:12: warning: variable ‘biYPelsPerMeter’ set but not used [-Wunused-but-set-variable]
  577 |     Sint32 biYPelsPerMeter;
      |            ^~~~~~~~~~~~~~~
IMG_bmp.c:576:12: warning: variable ‘biXPelsPerMeter’ set but not used [-Wunused-but-set-variable]
  576 |     Sint32 biXPelsPerMeter;
      |            ^~~~~~~~~~~~~~~
IMG_bmp.c:575:12: warning: variable ‘biSizeImage’ set but not used [-Wunused-but-set-variable]
  575 |     Uint32 biSizeImage;
      |            ^~~~~~~~~~~
IMG_bmp.c:572:12: warning: variable ‘biPlanes’ set but not used [-Wunused-but-set-variable]
  572 |     Uint16 biPlanes;
      |            ^~~~~~~~
IMG_bmp.c:556:12: warning: variable ‘Bmask’ set but not used [-Wunused-but-set-variable]
  556 |     Uint32 Bmask;
      |            ^~~~~
IMG_bmp.c:555:12: warning: variable ‘Gmask’ set but not used [-Wunused-but-set-variable]
  555 |     Uint32 Gmask;
      |            ^~~~~
IMG_bmp.c:554:12: warning: variable ‘Rmask’ set but not used [-Wunused-but-set-variable]
  554 |     Uint32 Rmask;
      |            ^~~~~
IMG_png.c: In function ‘IMG_InitPNG’:
IMG_png.c:274:44: error: assignment to ‘png_info * (*)(png_struct *)’ {aka ‘struct png_info_def * (*)(struct png_struct_def *)’} from incompatible pointer type ‘png_info * (*)(const png_struct * restrict)’ {aka ‘struct png_info_def * (*)(const struct png_struct_def * restrict)’} [-Wincompatible-pointer-types]
  274 |                 lib.png_create_info_struct = png_create_info_struct;
      |                                            ^
IMG_png.c:277:34: error: assignment to ‘png_uint_32 (*)(png_struct *, png_info *, png_uint_32 *, png_uint_32 *, int *, int *, int *, int *, int *)’ {aka ‘unsigned int (*)(struct png_struct_def *, struct png_info_def *, unsigned int *, unsigned int *, int *, int *, int *, int *, int *)’} from incompatible pointer type ‘png_uint_32 (*)(const png_struct * restrict,  const png_info * restrict,  png_uint_32 *, png_uint_32 *, int *, int *, int *, int *, int *)’ {aka ‘unsigned int (*)(const struct png_struct_def * restrict,  const struct png_info_def * restrict,  unsigned int *, unsigned int *, int *, int *, int *, int *, int *)’} [-Wincompatible-pointer-types]
  277 |                 lib.png_get_IHDR = png_get_IHDR;
      |                                  ^
IMG_png.c:278:38: error: assignment to ‘png_byte (*)(png_struct *, png_info *)’ {aka ‘unsigned char (*)(struct png_struct_def *, struct png_info_def *)’} from incompatible pointer type ‘png_byte (*)(const png_struct * restrict,  const png_info * restrict)’ {aka ‘unsigned char (*)(const struct png_struct_def * restrict,  const struct png_info_def * restrict)’} [-Wincompatible-pointer-types]
  278 |                 lib.png_get_channels = png_get_channels;
      |                                      ^
IMG_png.c:279:36: error: assignment to ‘void * (*)(png_struct *)’ {aka ‘void * (*)(struct png_struct_def *)’} from incompatible pointer type ‘void * (*)(const png_struct * restrict)’ {aka ‘void * (*)(const struct png_struct_def * restrict)’} [-Wincompatible-pointer-types]
  279 |                 lib.png_get_io_ptr = png_get_io_ptr;
      |                                    ^
IMG_png.c:280:34: error: assignment to ‘png_uint_32 (*)(png_struct *, png_info *, png_color **, int *)’ {aka ‘unsigned int (*)(struct png_struct_def *, struct png_info_def *, struct png_color_struct **, int *)’} from incompatible pointer type ‘png_uint_32 (*)(const png_struct * restrict,  png_info * restrict,  png_color **, int *)’ {aka ‘unsigned int (*)(const struct png_struct_def * restrict,  struct png_info_def * restrict,  struct png_color_struct **, int *)’} [-Wincompatible-pointer-types]
  280 |                 lib.png_get_PLTE = png_get_PLTE;
      |                                  ^
IMG_png.c:281:34: error: assignment to ‘png_uint_32 (*)(png_struct *, png_info *, png_byte **, int *, png_color_16 **)’ {aka ‘unsigned int (*)(struct png_struct_def *, struct png_info_def *, unsigned char **, int *, struct png_color_16_struct **)’} from incompatible pointer type ‘png_uint_32 (*)(const png_struct * restrict,  png_info * restrict,  png_byte **, int *, png_color_16 **)’ {aka ‘unsigned int (*)(const struct png_struct_def * restrict,  struct png_info_def * restrict,  unsigned char **, int *, struct png_color_16_struct **)’} [-Wincompatible-pointer-types]
  281 |                 lib.png_get_tRNS = png_get_tRNS;
      |                                  ^
IMG_png.c:282:35: error: assignment to ‘png_uint_32 (*)(png_struct *, png_info *, png_uint_32)’ {aka ‘unsigned int (*)(struct png_struct_def *, struct png_info_def *, unsigned int)’} from incompatible pointer type ‘png_uint_32 (*)(const png_struct * restrict,  const png_info * restrict,  png_uint_32)’ {aka ‘unsigned int (*)(const struct png_struct_def * restrict,  const struct png_info_def * restrict,  unsigned int)’} [-Wincompatible-pointer-types]
  282 |                 lib.png_get_valid = png_get_valid;
      |                                   ^
IMG_png.c:292:33: error: assignment to ‘int (*)(png_byte *, png_size_t,  png_size_t)’ {aka ‘int (*)(unsigned char *, long unsigned int,  long unsigned int)’} from incompatible pointer type ‘int (*)(const png_byte *, size_t,  size_t)’ {aka ‘int (*)(const unsigned char *, long unsigned int,  long unsigned int)’} [-Wincompatible-pointer-types]
  292 |                 lib.png_sig_cmp = png_sig_cmp;
      |                                 ^
make[1]: *** [Makefile:614: IMG_png.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG.c -o IMG.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_pnm.c  -fPIC -DPIC -o .libs/IMG_pnm.o
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_jpg.c -o IMG_jpg.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_pcx.c -o IMG_pcx.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_gif.c -o IMG_gif.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_lbm.c -o IMG_lbm.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_pnm.c -o IMG_pnm.o >/dev/null 2>&1
libtool: compile:  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_image\" -DVERSION=\"1.2.12\" -DLOAD_JPG=1 -DLOAD_PNG=1 -DLOAD_TIF=1 -DLOAD_WEBP=1 -DLOAD_BMP=1 -DLOAD_GIF=1 -DLOAD_LBM=1 -DLOAD_PCX=1 -DLOAD_PNM=1 -DLOAD_TGA=1 -DLOAD_XCF=1 -DLOAD_XPM=1 -DLOAD_XV=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/webp -I/usr/include/libpng16 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pipe -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c IMG_bmp.c -o IMG_bmp.o >/dev/null 2>&1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:19: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-sdl-maintainers mailing list