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

Bug#1075220: liece: ftbfs with GCC-14



Package: src:liece
Version: 2.0+0.20030527cvs-14
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/liece_2.0+0.20030527cvs-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

[...]
config.status: creating lisp/Makefile
config.status: creating dcc/Makefile
config.status: creating etc/Makefile
config.status: creating etc/icons/Makefile
config.status: creating etc/po/Makefile
config.status: creating etc/styles/Makefile
config.status: executing depfiles commands
   debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -C dcc
make[2]: Entering directory '/<<PKGBUILDDIR>>/dcc'
gcc -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"liece\" -DVERSION=\"2.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_STRTOUL=1 -DHAVE_MEMMOVE=1 -DHAVE_GETADDRINFO=1 -DHAVE_BASENAME=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o dcc.o dcc.c
dcc.c: In function ‘send_file’:
dcc.c:207:34: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=]
  207 |         printf ("DCC send %s %d %u %d\n", ifile, port, addr, statbuf.st_size);
      |                                 ~^                     ~~~~
      |                                  |                     |
      |                                  unsigned int          u_long {aka long unsigned int}
      |                                 %lu
dcc.c:207:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘__off_t’ {aka ‘long int’} [-Wformat=]
  207 |         printf ("DCC send %s %d %u %d\n", ifile, port, addr, statbuf.st_size);
      |                                    ~^                        ~~~~~~~~~~~~~~~
      |                                     |                               |
      |                                     int                             __off_t {aka long int}
      |                                    %ld
dcc.c: In function ‘chat_listen’:
dcc.c:372:27: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=]
  372 |         printf("DCC chat %u %d\n", addr, port);
      |                          ~^        ~~~~
      |                           |        |
      |                           |        u_long {aka long unsigned int}
      |                           unsigned int
      |                          %lu
dcc.c: In function ‘main’:
dcc.c:444:20: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘u_long’ {aka ‘long unsigned int’} [-Wformat=]
  444 |           printf("%u\n", addr);
      |                   ~^     ~~~~
      |                    |     |
      |                    |     u_long {aka long unsigned int}
      |                    unsigned int
      |                   %lu
dcc.c: In function ‘send_file’:
dcc.c:212:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  212 |     write (ofd, buf, len);
      |     ^~~~~~~~~~~~~~~~~~~~~
dcc.c: In function ‘receive_file’:
dcc.c:244:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  244 |     write (ofd, buf, len);
      |     ^~~~~~~~~~~~~~~~~~~~~
dcc.c:248:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  248 |     write (ifd, &netsize, 4);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
dcc.c: In function ‘select_loop’:
dcc.c:290:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  290 |       write (1, buf, len);
      |       ^~~~~~~~~~~~~~~~~~~
dcc.c:298:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  298 |       write(sfd, buf, len);
      |       ^~~~~~~~~~~~~~~~~~~~
gcc  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wl,-z,relro -Wl,-z,now -o ldcc dcc.o  
gcc -I. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"liece\" -DVERSION=\"2.0.0\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_STRTOUL=1 -DHAVE_MEMMOVE=1 -DHAVE_GETADDRINFO=1 -DHAVE_BASENAME=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tcp.o tcp.c
tcp.c:71:1: error: return type defaults to ‘int’ [-Wimplicit-int]
   71 | main (argc, argv)
      | ^~~~
make[2]: *** [Makefile:372: tcp.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/dcc'
make[1]: *** [debian/rules:10: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: