Bug#1075211: libterm-slang-perl: ftbfs with GCC-14

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


Package: src:libterm-slang-perl
Version: 0.07-14
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/libterm-slang-perl_0.07-14_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

[...]
User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=unstable
SCHROOT_CHROOT_NAME=sid-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-4d344f0d-2ec5-4fab-b420-62c9ea17259c
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package libterm-slang-perl
dpkg-buildpackage: info: source version 0.07-14
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Jelmer Vernooij <jelmer at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
	/usr/bin/perl Makefile.PL INSTALLDIRS=vendor "OPTIMIZE=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" "LD=x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,-z,now"
Checking for 'slang.h'
Checking in /usr/include/...
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Term::Slang
Writing MYMETA.yml and MYMETA.json
   dh_auto_build
	make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Running Mkbootstrap for Slang ()
"/usr/bin/perl" "/usr/share/perl/5.38/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.38/ExtUtils/typemap' -typemap '/<<PKGBUILDDIR>>/typemap'  Slang.xs > Slang.xsc
chmod 644 "Slang.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Slang.bs blib/arch/auto/Term/Slang/Slang.bs 644
cp Slang/Scroll.pm blib/lib/Term/Slang/Scroll.pm
cp Slang/Window.pm blib/lib/Term/Slang/Window.pm
cp Slang.pm blib/lib/Term/Slang.pm
mv Slang.xsc Slang.c
x86_64-linux-gnu-gcc -c  -I/usr/include  -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=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.07\" -DXS_VERSION=\"0.07\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.38/CORE"   Slang.c
Slang.xs: In function ‘XS_Term__Slang_SLline_get’:
Slang.xs:415:28: error: assignment to ‘SV *’ {aka ‘struct sv *’} from incompatible pointer type ‘Scroll_Line_Type *’ {aka ‘struct _Scroll_Line_Type *’} [-Wincompatible-pointer-types]
  415 |                         sv = (Scroll_Line_Type*)SvPV( lines->sv_next, PL_na );
      |                            ^
Slang.xs:420:28: error: assignment to ‘SV *’ {aka ‘struct sv *’} from incompatible pointer type ‘Scroll_Line_Type *’ {aka ‘struct _Scroll_Line_Type *’} [-Wincompatible-pointer-types]
  420 |                         sv = (Scroll_Line_Type*)SvIV( lines->sv_prev );
      |                            ^
make[1]: *** [Makefile:345: Slang.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 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