#1098099 wlopm: ftbfs with GCC-15

#1098099#5
Date:
2025-02-17 18:00:27 UTC
From:
To:
[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/wlopm_0.1.0-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

[...]
dpkg-buildpackage: info: source changed by Birger Schacht <birger@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean
   dh_auto_clean
	make -j8 clean
make[1]: Entering directory '/build/reproducible-path/wlopm-0.1.0'
rm -f wlopm wlr-output-power-management-unstable-v1.c wlr-output-power-management-unstable-v1.h wlopm.o wlr-output-power-management-unstable-v1.o
make[1]: Leaving directory '/build/reproducible-path/wlopm-0.1.0'
   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/wlopm-0.1.0'
wayland-scanner private-code < wlr-output-power-management-unstable-v1.xml > wlr-output-power-management-unstable-v1.c
wayland-scanner client-header < wlr-output-power-management-unstable-v1.xml > wlr-output-power-management-unstable-v1.h
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wlopm-0.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result -Wdate-time -D_FORTIFY_SOURCE=2  -c -o wlopm.o wlopm.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/wlopm-0.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result -Wdate-time -D_FORTIFY_SOURCE=2  -c -o wlr-output-power-management-unstable-v1.o wlr-output-power-management-unstable-v1.c
wlopm.c:127:24: error: initialization of ‘void (*)(void *, struct wl_output *, int32_t,  int32_t,  int32_t,  int32_t,  int32_t,  const char *, const char *, int32_t)’ {aka ‘void (*)(void *, struct wl_output *, int,  int,  int,  int,  int,  const char *, const char *, int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  127 |         .geometry    = noop,
      |                        ^~~~
wlopm.c:127:24: note: (near initialization for ‘wl_output_listener.geometry’)
wlopm.c:96:13: note: ‘noop’ declared here
   96 | static void noop () {}
      |             ^~~~
wlopm.c:128:24: error: initialization of ‘void (*)(void *, struct wl_output *, uint32_t,  int32_t,  int32_t,  int32_t)’ {aka ‘void (*)(void *, struct wl_output *, unsigned int,  int,  int,  int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  128 |         .mode        = noop,
      |                        ^~~~
wlopm.c:128:24: note: (near initialization for ‘wl_output_listener.mode’)
wlopm.c:96:13: note: ‘noop’ declared here
   96 | static void noop () {}
      |             ^~~~
wlopm.c:129:24: error: initialization of ‘void (*)(void *, struct wl_output *, int32_t)’ {aka ‘void (*)(void *, struct wl_output *, int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  129 |         .scale       = noop,
      |                        ^~~~
wlopm.c:129:24: note: (near initialization for ‘wl_output_listener.scale’)
wlopm.c:96:13: note: ‘noop’ declared here
   96 | static void noop () {}
      |             ^~~~
wlopm.c:130:24: error: initialization of ‘void (*)(void *, struct wl_output *, const char *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  130 |         .description = noop,
      |                        ^~~~
wlopm.c:130:24: note: (near initialization for ‘wl_output_listener.description’)
wlopm.c:96:13: note: ‘noop’ declared here
   96 | static void noop () {}
      |             ^~~~
wlopm.c:131:24: error: initialization of ‘void (*)(void *, struct wl_output *)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  131 |         .done        = noop,
      |                        ^~~~
wlopm.c:131:24: note: (near initialization for ‘wl_output_listener.done’)
wlopm.c:96:13: note: ‘noop’ declared here
   96 | static void noop () {}
      |             ^~~~
wlopm.c:170:26: error: initialization of ‘void (*)(void *, struct wl_registry *, uint32_t)’ {aka ‘void (*)(void *, struct wl_registry *, unsigned int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  170 |         .global_remove = noop, /* We don't run long enough to care. */
      |                          ^~~~
wlopm.c:170:26: note: (near initialization for ‘registry_listener.global_remove’)
wlopm.c:96:13: note: ‘noop’ declared here
   96 | static void noop () {}
      |             ^~~~
make[1]: *** [<builtin>: wlopm.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/wlopm-0.1.0'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2