[Pkg-electronics-devel] Bug#1096695: gerbv: ftbfs with GCC-15

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


Package: src:gerbv
Version: 2.10.0-1
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/gerbv_2.10.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

[...]
render.h:35:6: note: declared here
   35 | void render_recreate_composite_surface ();
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
callbacks.c: In function ‘callbacks_move_layer_down_button_clicked’:
callbacks.c:2471:25: error: too many arguments to function ‘render_recreate_composite_surface’; expected 0, have 1
 2471 |                         render_recreate_composite_surface (screen.drawing_area);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~
render.h:35:6: note: declared here
   35 | void render_recreate_composite_surface ();
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
callbacks.c: In function ‘callbacks_move_layer_up_button_clicked’:
callbacks.c:2500:25: error: too many arguments to function ‘render_recreate_composite_surface’; expected 0, have 1
 2500 |                         render_recreate_composite_surface (screen.drawing_area);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~
render.h:35:6: note: declared here
   35 | void render_recreate_composite_surface ();
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
callbacks.c: In function ‘callbacks_layer_tree_row_inserted’:
callbacks.c:2528:33: error: too many arguments to function ‘render_recreate_composite_surface’; expected 0, have 1
 2528 |                                 render_recreate_composite_surface (screen.drawing_area);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~
render.h:35:6: note: declared here
   35 | void render_recreate_composite_surface ();
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
callbacks.c: In function ‘callbacks_update_statusbar’:
callbacks.c:3881:40: warning: the comparison will always evaluate as ‘true’ for the address of ‘coordstr’ will never be NULL [-Waddress]
 3881 |         if ((screen.statusbar.coordstr != NULL)&&(GTK_IS_LABEL(screen.win.statusMessageLeft))) {
      |                                        ^~
In file included from callbacks.c:54:
main.h:94:14: note: ‘coordstr’ declared here
   94 |         char coordstr[MAX_COORDLEN];
      |              ^~~~~~~~
callbacks.c:3884:39: warning: the comparison will always evaluate as ‘true’ for the address of ‘diststr’ will never be NULL [-Waddress]
 3884 |         if ((screen.statusbar.diststr != NULL)&&(GTK_IS_LABEL(screen.win.statusMessageRight))) {
      |                                       ^~
main.h:95:14: note: ‘diststr’ declared here
   95 |         char diststr[MAX_DISTLEN];
      |              ^~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:36,
                 from /usr/include/glib-2.0/glib.h:56,
                 from gerbv.h:72,
                 from callbacks.c:29:
callbacks.c: In function ‘callbacks_bugs_activate’:
/usr/include/glib-2.0/glib/gstring.h:76:5: warning: ignoring return value of ‘g_string_free_and_steal’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   72 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   76 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   77 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
callbacks.c:1984:5: note: in expansion of macro ‘g_string_free’
 1984 |     g_string_free(bugs_string, FALSE);
      |     ^~~~~~~~~~~~~
make[4]: *** [Makefile:700: callbacks.o] Error 1
make[4]: Leaving directory '/build/reproducible-path/gerbv-2.10.0/src'
make[3]: *** [Makefile:532: all] Error 2
make[3]: Leaving directory '/build/reproducible-path/gerbv-2.10.0/src'
make[2]: *** [Makefile:489: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/gerbv-2.10.0'
make[1]: *** [Makefile:421: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/gerbv-2.10.0'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-electronics-devel mailing list