Package: src:xscavenger
Version: 1.4.5-7
Severity: important
Tags: sid trixie
User: debian-...@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/xscavenger_1.4.5-7_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

[...]
        -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS
rm -f debian/substvars
 debian/rules build
test -f debian/rules
# build package
test -f stamp-xmkmf || /usr/bin/make -f debian/rules xmkmf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cd src && cp ../debian/Imakefile.debian Imakefile && xmkmf && touch 
../stamp-xmkmf
imake -DUseInstalled -I/usr/lib/X11/config
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
cd src && /usr/bin/make CCOPTIONS="`dpkg-buildflags --get CFLAGS` 
`dpkg-buildflags --get LDFLAGS` `pkg-config --cflags --libs alsa` -O2 -g -pipe 
-Wall -Wno-pointer-sign"
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
Makefile:1115: warning: overriding recipe for target 'xscavenger'
Makefile:1064: warning: ignoring old recipe for target 'xscavenger'
gcc -g -O2 -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>/src=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wl,-z,relro -lasound  -O2 -g -pipe -Wall -Wno-pointer-sign        -Dlinux 
-D__amd64__ -D_POSIX_C_SOURCE=199309L                               
-D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE 
-D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64                                                          
         -DFUNCPROTO=15 -DNARROWPROTO    
-DLIBNAME=\"/usr/lib/games/xscavenger\"   -c -o anim.o anim.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from anim.c:5:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
anim.c: In function ‘animprocess’:
anim.c:669:20: warning: ‘bx’ may be used uninitialized [-Wmaybe-uninitialized]
  669 |                 dbx=bx;
      |                 ~~~^~~
anim.c:613:5: note: ‘bx’ was declared here
  613 | int bx,by;
      |     ^~
anim.c:670:20: warning: ‘by’ may be used uninitialized [-Wmaybe-uninitialized]
  670 |                 dby=by;
      |                 ~~~^~~
anim.c:613:8: note: ‘by’ was declared here
  613 | int bx,by;
      |        ^~
anim.c: In function ‘savegfx’:
anim.c:1134:25: warning: ‘%s’ directive writing up to 255 bytes into a region 
of size between 0 and 255 [-Wformat-overflow=]
 1134 |         
sprintf(ttt,"%s/%s/%s",localname,localdirname,gfxnames[workingon]);
      |                         ^~               ~~~~~~~~~~~~
anim.c:1134:9: note: ‘sprintf’ output 3 or more bytes (assuming 513) into a 
destination of size 256
 1134 |         
sprintf(ttt,"%s/%s/%s",localname,localdirname,gfxnames[workingon]);
      |         
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>/src=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wl,-z,relro -lasound  -O2 -g -pipe -Wall -Wno-pointer-sign        -Dlinux 
-D__amd64__ -D_POSIX_C_SOURCE=199309L                               
-D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE 
-D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64                                                          
         -DFUNCPROTO=15 -DNARROWPROTO    
-DLIBNAME=\"/usr/lib/games/xscavenger\"   -c -o edit.o edit.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from edit.c:3:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
gcc -g -O2 -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/<<PKGBUILDDIR>>/src=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wl,-z,relro -lasound  -O2 -g -pipe -Wall -Wno-pointer-sign        -Dlinux 
-D__amd64__ -D_POSIX_C_SOURCE=199309L                               
-D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE 
-D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64                                                          
         -DFUNCPROTO=15 -DNARROWPROTO    
-DLIBNAME=\"/usr/lib/games/xscavenger\"   -c -o scav.o scav.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:26,
                 from scav.c:3:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
scav.c: In function ‘doiff’:
scav.c:281:7: warning: variable ‘comp’ set but not used 
[-Wunused-but-set-variable]
  281 | uchar comp;
      |       ^~~~
scav.c: In function ‘main’:
scav.c:1581:25: error: ‘return’ with no value, in function returning non-void 
[-Wreturn-mismatch]
 1581 |                         return;
      |                         ^~~~~~
scav.c:1528:5: note: declared here
 1528 | int main (int argc, char** argv)
      |     ^~~~
make[1]: *** [<builtin>: scav.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
make: *** [debian/rules:76: stamp-build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to