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

Bug#1074810: ample: ftbfs with GCC-14



Package: src:ample
Version: 0.5.7-13
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/ample_0.5.7-13_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

[...]
helper.c: In function ‘setid3v2title’:
helper.c:746:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  746 |         fread(header, sizeof(char), 10, file);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
helper.c: In function ‘setid3v1title’:
helper.c:704:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  704 |                 fgets(buffer, 31, file);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
configuration.c: In function ‘readrequest’:
configuration.c:298:32: warning: comparison between pointer and zero character constant [-Wpointer-compare]
  298 |                         if(tmp == '\0' || strlen(tmp) < 1) {
      |                                ^~
configuration.c:298:28: note: did you mean to dereference the pointer?
  298 |                         if(tmp == '\0' || strlen(tmp) < 1) {
      |                            ^
configuration.c: In function ‘parseconfopt’:
configuration.c:570:54: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
  570 |                 snprintf(retval, (end - tmp + 1), "%.*s", (end - tmp), tmp);
      |                                                    ~~^~   ~~~~~~~~~~~
      |                                                      |         |
      |                                                      int       long int
configuration.c:584:54: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
  584 |                 snprintf(retval, (end - tmp + 1), "%.*s", (end - tmp), tmp);
      |                                                    ~~^~   ~~~~~~~~~~~
      |                                                      |         |
      |                                                      int       long int
entries.c: In function ‘checkpathtype’:
entries.c:750:25: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  750 |                         chdir(dname);
      |                         ^~~~~~~~~~~~
entries.c:757:25: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  757 |                         chdir(owd);
      |                         ^~~~~~~~~~
configuration.c: In function ‘preparehtml’:
entries.c: In function ‘parsem3u’:
entries.c:890:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  890 |         chdir(dname);
      |         ^~~~~~~~~~~~
entries.c:922:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  922 |         chdir(owd);
      |         ^~~~~~~~~~
configuration.c:438:33: warning: ignoring return value of ‘realloc’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  438 |                                 realloc(tmp, tmpsize);
      |                                 ^~~~~~~~~~~~~~~~~~~~~
configuration.c:442:17: warning: ignoring return value of ‘realloc’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  442 |                 realloc(tmp, strlen(tmp) + 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
entries.c: In function ‘parsedir’:
entries.c:853:9: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  853 |         chdir(owd);
      |         ^~~~~~~~~~
ample.c: In function ‘main’:
ample.c:553:29: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  553 |         if (signal(SIGTERM, removepidfile) == SIG_ERR) {
      |                             ^~~~~~~~~~~~~
      |                             |
      |                             void (*)(void)
In file included from /usr/include/x86_64-linux-gnu/sys/wait.h:36,
                 from ample.c:44:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
make[2]: *** [Makefile:63: ample.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:58: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: