Bug#1097440: ncview: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:39:08 GMT 2025


Package: src:ncview
Version: 2.1.11+ds-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/ncview_2.1.11+ds-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

[...]
Compiler:
        CC                 = gcc
        Runtime path flags =  -Wl,-rpath,/usr/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu/hdf5/serial
 
UDUNITS:
        UDUNITS2_LIBS     = -ludunits2
        UDUNITS2_CPPFLAGS = -I.
        UDUNITS2_LDFLAGS  = -L. -ludunits2 -lexpat -L. -ludunits2
 
 
NETCDF:
        VERSION          = netCDF 4.9.3
        COMPILER USED    = /usr/bin/cc
        NETCDF_CPPFLAGS  = -I/usr/include -I/usr/include/hdf5/serial
        NETCDF_LDFLAGS   = -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lnetcdf
        NETCDF_V4        = yes
 
X:
        X_CFLAGS         = 
        X11_LIBS         = -lX11 
        XAW_LIBS         = -lXaw -lXt 
        X_PRE_LIBS       =  -lSM -lICE
        X_LIBS           = 
        X_EXTRA_LIBS     = 
 
PNG:
        PNG_LIBS         = -lpng
        PNG_CPPFLAGS     = -I.
        PNG_LDFLAGS      = -L. -lpng
 
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/ncview-2.1.11+ds'
make  all-recursive
make[2]: Entering directory '/build/reproducible-path/ncview-2.1.11+ds'
Making all in src
make[3]: Entering directory '/build/reproducible-path/ncview-2.1.11+ds/src'
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ncview.o ncview.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o file.o file.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o util.o util.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o do_buttons.o do_buttons.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o file_netcdf.o file_netcdf.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o view.o view.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o do_print.o do_print.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o epic_time.o epic_time.c
epic_time.c: In function ‘ep_time_to_mdyhms’:
epic_time.c:20:1: warning: old-style function definition [-Wold-style-definition]
   20 | ep_time_to_mdyhms(time, mon, day, yr, hour, min, sec)
      | ^~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o overlay.o overlay.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o interface/filesel.o interface/filesel.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o interface/set_options.o interface/set_options.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o interface/plot_range.o interface/plot_range.c
gcc -DHAVE_CONFIG_H -I. -I..  -DNCVIEW_LIB_DIR=\"/usr/share/ncview\" -I. -I. -I/usr/include -I/usr/include/hdf5/serial -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ncview-2.1.11+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o udu.o udu.c
interface/set_options.c:867:1: error: conflicting types for ‘expose_cbsel_cbar’; have ‘void(struct _WidgetRec *, void *, XExposeEvent *, Boolean *)’ {aka ‘void(struct _WidgetRec *, void *, XExposeEvent *, char *)’}
  867 | expose_cbsel_cbar( Widget w, XtPointer client_data, XExposeEvent *event, Boolean *continue_to_dispatch )
      | ^~~~~~~~~~~~~~~~~
interface/set_options.c:114:6: note: previous declaration of ‘expose_cbsel_cbar’ with type ‘void(void)’
  114 | void expose_cbsel_cbar          ();
      |      ^~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:543: interface/set_options.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/ncview-2.1.11+ds/src'
make[2]: *** [Makefile:392: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/ncview-2.1.11+ds'
make[1]: *** [Makefile:333: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/ncview-2.1.11+ds'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-grass-devel mailing list