Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with GCC-10 #247

Open
sebastic opened this issue Apr 17, 2020 · 1 comment
Open

Fails to build with GCC-10 #247

sebastic opened this issue Apr 17, 2020 · 1 comment

Comments

@sebastic
Copy link
Contributor

As reported by Matthias Klose in Debian Bug #957593:

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
@pinotree
Copy link

Duplicate of #212?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants