Bug#1097266: libsdl-perl: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:33:43 GMT 2025
Package: src:libsdl-perl
Version: 2.548-5
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15
[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/libsdl-perl_2.548-5_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html
[...]
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/SDL/Mixer/Samples/Samples.bs')
x86_64-linux-gnu-gcc -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wl,-z,relro -Wl,-z,now -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/SDL/Mixer/Samples/Samples.so lib/SDL/Mixer/Samples.o src/support/win32.o -lSDL -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lSDL -lSDL_mixer
x86_64-linux-gnu-gcc -Isrc -I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE '-DVERSION="2.548"' '-DXS_VERSION="2.548"' -fPIC -DNOSIGCATCH -O2 -I/usr/include/SDL '-D_GNU_SOURCE=1' -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/include -I/usr/include/ogg -I/usr/include/smpeg -I/usr/include/vorbis -I/usr/local/include -DHAVE_SDL -DHAVE_SDL_MIXER -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wdate-time '-D_FORTIFY_SOURCE=2' -o lib/SDL/Mixer/MixChunk.o lib/SDL/Mixer/MixChunk.c
In file included from /usr/lib/x86_64-linux-gnu/perl/5.40/CORE/perl.h:46,
from lib/SDL/Mixer/MixChunk.xs:2:
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/config.h:5282:17: warning: ‘USE_THREADS’ redefined
5282 | #define USE_THREADS /**/
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/SDL/Mixer/MixChunk/MixChunk.bs')
x86_64-linux-gnu-gcc -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wl,-z,relro -Wl,-z,now -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/SDL/Mixer/MixChunk/MixChunk.so lib/SDL/Mixer/MixChunk.o src/support/win32.o -lSDL -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lSDL -lSDL_mixer
x86_64-linux-gnu-gcc -Isrc -I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE '-DVERSION="2.548"' '-DXS_VERSION="2.548"' -fPIC -DNOSIGCATCH -O2 -I/usr/include/SDL '-D_GNU_SOURCE=1' -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/include -I/usr/include/ogg -I/usr/include/smpeg -I/usr/include/vorbis -I/usr/local/include -DHAVE_SDL -DHAVE_SDL_MIXER -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wdate-time '-D_FORTIFY_SOURCE=2' -o lib/SDL/Mixer/MixMusic.o lib/SDL/Mixer/MixMusic.c
In file included from /usr/lib/x86_64-linux-gnu/perl/5.40/CORE/perl.h:46,
from lib/SDL/Mixer/MixMusic.xs:2:
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/config.h:5282:17: warning: ‘USE_THREADS’ redefined
5282 | #define USE_THREADS /**/
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/SDL/Mixer/MixMusic/MixMusic.bs')
x86_64-linux-gnu-gcc -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wl,-z,relro -Wl,-z,now -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/SDL/Mixer/MixMusic/MixMusic.so lib/SDL/Mixer/MixMusic.o src/support/win32.o -lSDL -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lSDL -lSDL_mixer
x86_64-linux-gnu-gcc -Isrc -I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE '-DVERSION="2.548"' '-DXS_VERSION="2.548"' -fPIC -DNOSIGCATCH -O2 -I/usr/include/SDL '-D_GNU_SOURCE=1' -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/include -I/usr/include/ogg -I/usr/include/smpeg -I/usr/include/vorbis -I/usr/local/include -DHAVE_SDL -DHAVE_SDL_PANGO -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wdate-time '-D_FORTIFY_SOURCE=2' -o lib/SDL/Pango.o lib/SDL/Pango.c
In file included from /usr/lib/x86_64-linux-gnu/perl/5.40/CORE/perl.h:46,
from lib/SDL/Pango.xs:2:
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/config.h:5282:17: warning: ‘USE_THREADS’ redefined
5282 | #define USE_THREADS /**/
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/SDL/Pango/Pango.bs')
x86_64-linux-gnu-gcc -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wl,-z,relro -Wl,-z,now -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/SDL/Pango/Pango.so lib/SDL/Pango.o src/support/win32.o -lSDL -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lSDL -lSDL_Pango
x86_64-linux-gnu-gcc -Isrc -I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE '-DVERSION="2.548"' '-DXS_VERSION="2.548"' -fPIC -DNOSIGCATCH -O2 -I/usr/include/SDL '-D_GNU_SOURCE=1' -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/include -I/usr/include/ogg -I/usr/include/smpeg -I/usr/include/vorbis -I/usr/local/include -DHAVE_SDL -DHAVE_SDL_PANGO -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wdate-time '-D_FORTIFY_SOURCE=2' -o lib/SDL/Pango/Context.o lib/SDL/Pango/Context.c
In file included from /usr/lib/x86_64-linux-gnu/perl/5.40/CORE/perl.h:46,
from lib/SDL/Pango/Context.xs:2:
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/config.h:5282:17: warning: ‘USE_THREADS’ redefined
5282 | #define USE_THREADS /**/
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/SDL/Pango/Context/Context.bs')
x86_64-linux-gnu-gcc -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wl,-z,relro -Wl,-z,now -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/SDL/Pango/Context/Context.so lib/SDL/Pango/Context.o src/support/win32.o -lSDL -L/usr/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lSDL -lSDL_Pango
x86_64-linux-gnu-gcc -Isrc -I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE '-DVERSION="2.548"' '-DXS_VERSION="2.548"' -fPIC -DNOSIGCATCH -O2 -I/usr/include/SDL '-D_GNU_SOURCE=1' -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/include -I/usr/include/ogg -I/usr/include/smpeg -I/usr/include/vorbis -I/usr/local/include -DHAVE_SDL -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -g -O2 '-Werror=implicit-function-declaration' '-ffile-prefix-map=/build/reproducible-path/libsdl-perl-2.548=.' -fstack-protector-strong -fstack-clash-protection -Wformat '-Werror=format-security' -fcf-protection -Wdate-time '-D_FORTIFY_SOURCE=2' -o lib/SDL_perl.o lib/SDL_perl.c
In file included from /usr/lib/x86_64-linux-gnu/perl/5.40/CORE/perl.h:46,
from lib/SDL_perl.xs:31:
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/config.h:5282:17: warning: ‘USE_THREADS’ redefined
5282 | #define USE_THREADS /**/
| ^~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
In file included from lib/SDL_perl.xs:32:
lib/SDL_perl.c:654:13: error: conflicting types for ‘boot_SDL’; have ‘void(PerlInterpreter *, CV *)’ {aka ‘void(struct interpreter *, struct cv *)’}
654 | XS_EXTERNAL(boot_SDL); /* prototype to pass -Wmissing-prototypes */
| ^~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/XSUB.h:149:34: note: in definition of macro ‘XS_EXTERNAL’
149 | # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
| ^~~~
lib/SDL_perl.xs:147:6: note: previous declaration of ‘boot_SDL’ with type ‘void(void)’
147 | void boot_SDL();
| ^~~~~~~~
lib/SDL_perl.c:655:13: error: conflicting types for ‘boot_SDL’; have ‘void(PerlInterpreter *, CV *)’ {aka ‘void(struct interpreter *, struct cv *)’}
655 | XS_EXTERNAL(boot_SDL)
| ^~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.40/CORE/XSUB.h:149:34: note: in definition of macro ‘XS_EXTERNAL’
149 | # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
| ^~~~
lib/SDL_perl.xs:147:6: note: previous declaration of ‘boot_SDL’ with type ‘void(void)’
147 | void boot_SDL();
| ^~~~~~~~
error building lib/SDL_perl.o from 'lib/SDL_perl.c' at /usr/share/perl/5.40/ExtUtils/CBuilder/Base.pm line 185.
dh_auto_build: error: /usr/bin/perl Build returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-perl-maintainers
mailing list