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

Bug#1096659: fspy: ftbfs with GCC-15



Package: src:fspy
Version: 0.1.1-4
Severity: important
Tags: sid forky
User: debian-gcc@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/fspy_0.1.1-4_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

[...]
   dh_clean
 debian/rules binary
dh  binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
	make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/reproducible-path/fspy-0.1.1'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/fspy.c -o obj/fspy.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/enumdirs.c -o obj/enumdirs.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/fsevents.c -o obj/fsevents.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/isnumber.c -o obj/isnumber.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/stating.c -o obj/stating.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/output.c -o obj/output.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/regmatch.c -o obj/regmatch.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/numlen.c -o obj/numlen.o
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fspy-0.1.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now   -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=2020060722 -DCODENAME=\"25c3\" -c src/adaptive.c -o obj/adaptive.o
src/enumdirs.c:106:5: error: conflicting types for ‘pathlookup’; have ‘int(char *, unsigned int,  struct felement *)’
  106 | int pathlookup(char *lpath, unsigned int wd, struct felement *lsptr) {
      |     ^~~~~~~~~~
In file included from src/fspy.h:35,
                 from src/enumdirs.c:42:
src/enumdirs.h:43:5: note: previous declaration of ‘pathlookup’ with type ‘int(void)’
   43 | int pathlookup();
      |     ^~~~~~~~~~
src/enumdirs.c: In function ‘grab_max_element_count’:
src/enumdirs.c:67:5: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |     read(fd, buf, 64);
      |     ^~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:31: obj/enumdirs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
src/fspy.c: In function ‘main’:
src/fspy.c:451:14: error: too many arguments to function ‘pathlookup’; expected 0, have 3
  451 |           if(pathlookup(lpath, event->wd, lsptr) == FALSE)
      |              ^~~~~~~~~~ ~~~~~
In file included from src/fspy.h:35,
                 from src/fspy.c:42:
src/enumdirs.h:43:5: note: declared here
   43 | int pathlookup();
      |     ^~~~~~~~~~
src/fspy.c:473:88: warning: operation on ‘dprint.G’ may be undefined [-Wsequence-point]
  473 |             dprint.s = dprint.A = dprint.M = dprint.S = dprint.O = dprint.U = dprint.G = dprint.G = dprint.I = dprint.D = 0;
      |                                                                               ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:31: obj/fspy.o] Error 1
src/output.c: In function ‘print_data’:
src/output.c:128:3: warning: ‘freeme’ may be used uninitialized [-Wmaybe-uninitialized]
  128 |   free(freeme);
      |   ^~~~~~~~~~~~
src/output.c:54:9: note: ‘freeme’ was declared here
   54 |   char *freeme;
      |         ^~~~~~
src/stating.c: In function ‘checktype’:
src/stating.c:148:3: warning: ‘freeme’ may be used uninitialized [-Wmaybe-uninitialized]
  148 |   free(freeme);
      |   ^~~~~~~~~~~~
src/stating.c:84:9: note: ‘freeme’ was declared here
   84 |   char *freeme;
      |         ^~~~~~
src/adaptive.c: In function ‘adaptive_delete’:
src/adaptive.c:136:19: warning: ‘id’ may be used uninitialized [-Wmaybe-uninitialized]
  136 |       free_wds[i] = id;
      |       ~~~~~~~~~~~~^~~~
src/adaptive.c:109:19: note: ‘id’ was declared here
  109 |   unsigned int i, id;
      |                   ^~
make[1]: Leaving directory '/build/reproducible-path/fspy-0.1.1'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: