Package: src:xvier
Version: 1.0-12
Severity: important
Tags: sid forky
User: debian-...@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/xvier_1.0-12_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

[...]
  197 | void recalculate(width, height)
      |      ^~~~~~~~~~~
xvier.c: In function ‘main’:
xvier.c:376:5: warning: old-style function definition [-Wold-style-definition]
  376 | int main(argc, argv)
      |     ^~~~
rm -f xvier
gcc -o xvier -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/xvier-1.0=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-ffile-prefix-map=/build/reproducible-path/xvier-1.0=.        xvier.o  -lXext 
-lX11       
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/xvier-1.0=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-ffile-prefix-map=/build/reproducible-path/xvier-1.0=.          -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                           
-DPROGNAME=\"/usr/games/xvier_prog\"  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o 
vierinit.o vierinit.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from vierinit.c:1:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/xvier-1.0=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-ffile-prefix-map=/build/reproducible-path/xvier-1.0=.          -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                           
-DPROGNAME=\"/usr/games/xvier_prog\"  -Wdate-time -D_FORTIFY_SOURCE=2  -c -o 
vier.o vier.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from vier.c:1:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE 
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use 
_DEFAULT_SOURCE"
      |   ^~~~~~~
vier.c: In function ‘read_char’:
vier.c:33:6: warning: old-style function definition [-Wold-style-definition]
   33 | char read_char(ch)
      |      ^~~~~~~~~
vier.c: In function ‘write_char’:
vier.c:43:6: warning: old-style function definition [-Wold-style-definition]
   43 | void write_char(ch)
      |      ^~~~~~~~~~
vier.c: In function ‘w_test’:
vier.c:52:6: warning: old-style function definition [-Wold-style-definition]
   52 | void w_test(pos)
      |      ^~~~~~
vier.c: In function ‘s_test’:
vier.c:120:6: warning: old-style function definition [-Wold-style-definition]
  120 | void s_test(pos)
      |      ^~~~~~
vier.c: In function ‘w_zugzwang’:
vier.c:188:5: warning: old-style function definition [-Wold-style-definition]
  188 | int w_zugzwang(remain)
      |     ^~~~~~~~~~
vier.c: In function ‘s_zugzwang’:
vier.c:254:5: warning: old-style function definition [-Wold-style-definition]
  254 | int s_zugzwang(remain)
      |     ^~~~~~~~~~
vier.c: In function ‘comp_weiss’:
vier.c:320:5: warning: old-style function definition [-Wold-style-definition]
  320 | int comp_weiss(pos, lev, limit)
      |     ^~~~~~~~~~
vier.c: In function ‘comp_schwarz’:
vier.c:398:5: warning: old-style function definition [-Wold-style-definition]
  398 | int comp_schwarz(pos, lev, limit)
      |     ^~~~~~~~~~~~
vier.c: In function ‘main’:
vier.c:475:5: warning: old-style function definition [-Wold-style-definition]
  475 | int main(argc, argv)
      |     ^~~~
vier.c:493:15: error: too many arguments to function ‘time’; expected 0, have 1
  493 |   srand((int) time(NULL));
      |               ^~~~ ~~~~
vier.c:8:8: note: declared here
    8 | time_t time();
      |        ^~~~
make[2]: *** [<builtin>: vier.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/xvier-1.0'
make[1]: *** [debian/rules:16: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/xvier-1.0'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to