[Pkg-electronics-devel] Bug#1096757: gplcver: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:17:25 GMT 2025


Package: src:gplcver
Version: 2.12a-3
Severity: important
Tags: sid forky
User: debian-gcc at 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/gplcver_2.12a-3_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

[...]
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/gplcver-2.12a'
Making all in src
make[2]: Entering directory '/build/reproducible-path/gplcver-2.12a/src'
make  all-am
make[3]: Entering directory '/build/reproducible-path/gplcver-2.12a/src'
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-dig_main.o `test -f 'dig_main.c' || echo './'`dig_main.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-cver.o `test -f 'cver.c' || echo './'`cver.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_src.o `test -f 'v_src.c' || echo './'`v_src.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_src2.o `test -f 'v_src2.c' || echo './'`v_src2.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_src3.o `test -f 'v_src3.c' || echo './'`v_src3.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_fx.o `test -f 'v_fx.c' || echo './'`v_fx.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_fx2.o `test -f 'v_fx2.c' || echo './'`v_fx2.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_fx3.o `test -f 'v_fx3.c' || echo './'`v_fx3.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I../pli_incs -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/gplcver-2.12a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o cver-v_cnv.o `test -f 'v_cnv.c' || echo './'`v_cnv.c
cver.c: In function ‘__dig_main’:
cver.c:1016:4: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1016 |    (void (*)()) __comp_sigint_handler);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |    |
      |    void (*)(void)
In file included from cver.c:49:
/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)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
make[3]: *** [Makefile:477: cver-cver.o] Error 1
make[3]: *** Waiting for unfinished jobs....
v_src3.c: In function ‘movedir_match_dir_pats’:
v_src3.c:5229:2: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5229 |  getcwd(dirstr, RECLEN);
      |  ^~~~~~~~~~~~~~~~~~~~~~
v_src3.c:5246:6: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5246 |      chdir(dirstr);
      |      ^~~~~~~~~~~~~
v_src3.c:5258:2: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5258 |  chdir(dirstr);
      |  ^~~~~~~~~~~~~
v_src3.c: In function ‘expand_hier_files’:
v_src3.c:5018:2: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5018 |  getcwd(dirstr, RECLEN);
      |  ^~~~~~~~~~~~~~~~~~~~~~
v_src3.c:5033:8: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5033 |        chdir(dirstr);
      |        ^~~~~~~~~~~~~
v_src3.c:5053:2: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5053 |  chdir(dirstr);
      |  ^~~~~~~~~~~~~
In function ‘match_hier_name’,
    inlined from ‘find_hier’ at v_src3.c:4984:10:
v_src3.c:4906:25: warning: ‘strchr’ reading 1 or more bytes from a region of size 0 [-Wstringop-overread]
 4906 |      if (xfp->incall && strchr(cp, '/') == NULL) return(TRUE);
      |                         ^~~~~~~~~~~~~~~
In function ‘find_hier’:
cc1: note: source object is likely at address zero
make[3]: Leaving directory '/build/reproducible-path/gplcver-2.12a/src'
make[2]: *** [Makefile:309: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/gplcver-2.12a/src'
make[1]: *** [Makefile:360: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/gplcver-2.12a'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-electronics-devel mailing list