Package: src:gkrellm-thinkbat
Version: 0.2.3-1
Severity: important
Tags: sid forky
User: debian-...@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/gkrellm-thinkbat_0.2.3-1_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_auto_build
        make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/reproducible-path/gkrellm-thinkbat-0.2.3'
gcc `pkg-config gtk+-2.0 --cflags` -fPIC -DVERSION=\"0.2.3\" -Wdate-time 
-D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/gkrellm-thinkbat-0.2.3=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -I. -Wall -pedantic -O2 -c 
collect_data.c
collect_data.c: In function ‘read_battery_data’:
collect_data.c:75:18: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   75 |         design = read_from_file(file);
      |                  ^~~~~~~~~~~~~~ ~~~~
In file included from collect_data.c:27:
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:78:21: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   78 |         remaining = read_from_file(file);
      |                     ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:81:21: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   81 |         power_now = read_from_file(file);
      |                     ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:84:21: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   84 |         power_avg = read_from_file(file);
      |                     ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:87:21: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   87 |         last_full = read_from_file(file);
      |                     ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:90:34: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   90 |         remaining_running_time = read_from_file(file);
      |                                  ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:93:35: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   93 |         remaining_charging_time = read_from_file(file);
      |                                   ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c:96:14: error: too many arguments to function ‘read_from_file’; 
expected 0, have 1
   96 |         ac = read_from_file(file);
      |              ^~~~~~~~~~~~~~ ~~~~
collect_data.h:7:5: note: declared here
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c: At top level:
collect_data.c:157:5: error: conflicting types for ‘read_from_file’; have 
‘int(char *)’
  157 | int read_from_file(char *file)
      |     ^~~~~~~~~~~~~~
collect_data.h:7:5: note: previous declaration of ‘read_from_file’ with type 
‘int(void)’
    7 | int read_from_file();
      |     ^~~~~~~~~~~~~~
collect_data.c: In function ‘read_battery_data’:
collect_data.c:62:9: warning: ignoring return value of ‘fscanf’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
   62 |         fscanf(fp, "%s", state);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:21: collect_data.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/gkrellm-thinkbat-0.2.3'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned 
exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to