[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1075691: xvier: ftbfs with GCC-14



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

[...]
  455 |   switch (pid = fork()) {
      |                 ^~~~
xvier.c:458:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  458 |     exit(1);
      |     ^~~~
xvier.c:458:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xvier.c:460:9: error: implicit declaration of function ‘dup2’ [-Wimplicit-function-declaration]
  460 |     if (dup2(pipeo[0], 0) < 0 || dup2(pipei[1], 1) < 0) {
      |         ^~~~
xvier.c:471:14: error: implicit declaration of function ‘getdtablesize’ [-Wimplicit-function-declaration]
  471 |     for (i = getdtablesize(); i > 2; i--)
      |              ^~~~~~~~~~~~~
xvier.c:473:7: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  473 |       close(i);
      |       ^~~~~
      |       pclose
xvier.c:482:5: error: implicit declaration of function ‘execvp’ [-Wimplicit-function-declaration]
  482 |     execvp(progname, av);
      |     ^~~~~~
xvier.c:504:9: error: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
  504 |     if (read(pipei[0], &text[i], 1) < 1) {
      |         ^~~~
      |         fread
xvier.c:506:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  506 |       exit(1);
      |       ^~~~
xvier.c:506:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xvier.c:517:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  517 |     exit(1);
      |     ^~~~
xvier.c:517:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xvier.c:580:11: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  580 |           exit(2);
      |           ^~~~
xvier.c:580:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xvier.c:573:10: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
  573 |       if (XAllocColor(mydisplay, cmap, &color) == 0)
      |          ^
xvier.c:715:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  715 |     exit(1);
      |     ^~~~
xvier.c:715:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xvier.c:806:5: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
  806 |     free(data);
      |     ^~~~
xvier.c:806:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
xvier.c:806:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
xvier.c:806:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
xvier.c:851:7: error: implicit declaration of function ‘qsort’ [-Wimplicit-function-declaration]
  851 |       qsort((char *) fontstructarray, fontnum, sizeof(XFontStruct *), font_cmp);
      |       ^~~~~
xvier.c:922:30: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
  922 |                              strlen(playercolor[1 - c_index]));
      |                              ^~~~~~
xvier.c:922:30: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
xvier.c:994:18: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
  994 |               if (col < columns)
      |                  ^
xvier.c:1100:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
 1100 |         exit(1);
      |         ^~~~
xvier.c:1100:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xvier.c:1178:3: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
 1178 |   exit(0);
      |   ^~~~
xvier.c:1178:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
make[1]: *** [<builtin>: xvier.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: xvier] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: