Bug#957593: netcdf-fortran: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:07:06 BST 2020


Package: src:netcdf-fortran
Version: 4.5.2+ds-1
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/netcdf-fortran_4.5.2+ds-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

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-10/porting_to.html

[...]
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
netcdf4_func.f90:700:73:

  700 |     nf90_inq_var_fill_TwoByteInt = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(2)/REAL(8)).
netcdf4_func.f90:690:73:

  690 |     nf90_inq_var_fill_OneByteInt = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  740 |     nf90_inq_var_fill_EightByteReal = nf_inq_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(1)/REAL(8)).
netcdf4_func.f90:670:75:

  670 |     nf90_def_var_fill_FourByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                           1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
netcdf4_func.f90:660:75:

  660 |     nf90_def_var_fill_EightByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                           1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/REAL(8)).
netcdf4_func.f90:650:74:

  650 |     nf90_def_var_fill_FourByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                          1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
netcdf4_func.f90:640:73:

  640 |     nf90_def_var_fill_TwoByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(2)/REAL(8)).
netcdf4_func.f90:630:73:

  630 |     nf90_def_var_fill_OneByteInt = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                         1
......
  680 |     nf90_def_var_fill_EightByteReal = nf_def_var_fill(ncid, varid, no_fill, fill)
      |                                                                            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(1)/REAL(8)).
gfortran -I. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -c -o module_netcdf_fortv2_c_interfaces.o  module_netcdf_fortv2_c_interfaces.f90
gfortran -I. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -c -o module_netcdf4_nc_interfaces.o  module_netcdf4_nc_interfaces.f90
make[3]: *** [Makefile:767: netcdf4.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/fortran'
make[2]: *** [Makefile:540: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:27: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-grass-devel mailing list