Bug#1096348: autoclass: ftbfs with GCC-15
Package: src:autoclass
Version: 3.3.6.dfsg.2-2
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/autoclass_3.3.6.dfsg.2-2_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
[...]
search-control-2.c:1779:27: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(int *, int *)’ [-Wincompatible-pointer-types]
1779 | int (* comp_func) () = int_compare_greater;
| ^~~~~~~~~~~~~~~~~~~
autoclass.h:1310:5: note: ‘int_compare_greater’ declared here
1310 | int int_compare_greater (int *i_ptr, int *j_ptr);
| ^~~~~~~~~~~~~~~~~~~
search-control-2.c:1789:55: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
1789 | qsort( temp_num_ptr, clsf->n_classes, sizeof(int), comp_func);
| ^~~~~~~~~
| |
| int (*)(void)
In file included from search-control-2.c:3:
/usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’
971 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
/usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here
948 | typedef int (*__compar_fn_t) (const void *, const void *);
| ^~~~~~~~~~~~~
search-control-2.c: In function ‘save_search’:
search-control-2.c:1340:7: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1340 | system( str);
| ^~~~~~~~~~~~
search-control-2.c:1344:5: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1344 | system( str);
| ^~~~~~~~~~~~
search-control-2.c: In function ‘get_search_from_file’:
search-control-2.c:1536:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1536 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1547:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1547 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1551:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1551 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1554:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1554 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1560:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1560 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1568:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1568 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1579:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1579 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c: In function ‘get_search_try_from_file’:
search-control-2.c:1621:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1621 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1655:3: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1655 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1658:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1658 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1664:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1664 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
search-control-2.c:1673:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1673 | fgets( line, sizeof(line), search_file_fp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:40: search-control-2.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/autoclass-3.3.6.dfsg.2/prog'
dh_auto_build: error: cd prog && make -j1 "INSTALL=install --strip-program=true" "CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/autoclass-3.3.6.dfsg.2=. -fstack-protector-strong -fstack-clash-protection -fcf-protection" returned exit code 2
make[1]: *** [debian/rules:34: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/autoclass-3.3.6.dfsg.2'
make: *** [debian/rules:31: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: