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

Bug#1098184: yagiuda: ftbfs with GCC-15



Package: src:yagiuda
Version: 1.19-12
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/yagiuda_1.19-12_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

[...]
  198 |                         scanf("%lf", &p[i][DIAMETER]);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/yagiuda-1.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o vswr.o vswr.c
read_header.c: In function ‘read_header’:
read_header.c:15:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |         fread((char *) &elements, sizeof(elements), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:16:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |         fread((char *) &driven, sizeof(driven), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:17:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   17 |         fread((char *) &parasitic, sizeof(parasitic), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:18:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   18 |         fread((char *) min_f, sizeof(*min_f), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:19:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   19 |         fread((char *) max_f,sizeof(*max_f), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:20:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   20 |         fread((char *) f, sizeof(*f), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:21:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   21 |         fread((char *) step_f, sizeof(*step_f), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
read_header.c:22:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         fread((char *) angular_step, sizeof(*angular_step), 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DPACKAGE_NAME=\"yagiuda\" -DPACKAGE_TARNAME=\"yagiuda\" -DPACKAGE_VERSION=\"1.19\" -DPACKAGE_STRING=\"yagiuda\ 1.19\" -DPACKAGE_BUGREPORT=\"david.kirkby@onetel.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"yagiuda\" -DVERSION=\"1.19\" -DHAVE_LIBM=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDIO_H=1 -DHAVE_MATH_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STRING_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VALUES_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/yagiuda-1.19=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o reflection_coefficient.o reflection_co
 efficient.c
output.c: In function ‘main’:
output.c:204:56: error: passing argument 1 of ‘zbrent’ from incompatible pointer type [-Wincompatible-pointer-types]
  204 |               pattern_shape.three_dB_H=(double) zbrent(error_3dB_H, 0.0,H_max,0.1);
      |                                                        ^~~~~~~~~~~
      |                                                        |
      |                                                        double (*)(double)
In file included from output.c:18:
yagi.h:189:24: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’
  189 | double zbrent(double (*func)(), double x1, double x2, double tol);
      |               ~~~~~~~~~^~~~~~~
yagi.h:188:8: note: ‘error_3dB_H’ declared here
  188 | double error_3dB_H(double x);
      |        ^~~~~~~~~~~
output.c:208:66: error: passing argument 1 of ‘zbrent’ from incompatible pointer type [-Wincompatible-pointer-types]
  208 |                         pattern_shape.three_dB_E=(double) zbrent(error_3dB_E, 90.0,E_max,0.1);
      |                                                                  ^~~~~~~~~~~
      |                                                                  |
      |                                                                  double (*)(double)
yagi.h:189:24: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’
  189 | double zbrent(double (*func)(), double x1, double x2, double tol);
      |               ~~~~~~~~~^~~~~~~
yagi.h:187:8: note: ‘error_3dB_E’ declared here
  187 | double error_3dB_E(double x);
      |        ^~~~~~~~~~~
output.c:140:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  140 |         fread((char *) &coordinates[1], sizeof(struct element_data),elements,ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output.c:145:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  145 |         fread((char *) &voltage[1], sizeof(struct FCOMPLEX),elements, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
output.c:167:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  167 |                 fread((char *) &current[1], sizeof(struct FCOMPLEX),elements, ifp);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:619: output.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/reproducible-path/yagiuda-1.19/src'
make[1]: *** [Makefile:343: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/yagiuda-1.19'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: