Bug#957445: libhdf4: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:04:22 BST 2020


Package: src:libhdf4
Version: 4.2.14-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/libhdf4_4.2.14-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

[...]
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfff.f  -fPIC -o .libs/dfff.o
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfff.f -o dfff.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dfpf.lo ../../../../HDF4.2.14/hdf/src/dfpf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfpf.c  -fPIC -DPIC -o .libs/dfpf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfpf.c -o dfpf.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=F77   --mode=compile gfortran  -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c -o dfpff.lo ../../../../HDF4.2.14/hdf/src/dfpff.f
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfpff.f  -fPIC -o .libs/dfpff.o
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfpff.f -o dfpff.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dfr8f.lo ../../../../HDF4.2.14/hdf/src/dfr8f.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfr8f.c  -fPIC -DPIC -o .libs/dfr8f.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfr8f.c -o dfr8f.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=F77   --mode=compile gfortran  -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c -o dfr8ff.lo ../../../../HDF4.2.14/hdf/src/dfr8ff.f
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfr8ff.f  -fPIC -o .libs/dfr8ff.o
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfr8ff.f -o dfr8ff.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dfsdf.lo ../../../../HDF4.2.14/hdf/src/dfsdf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfsdf.c  -fPIC -DPIC -o .libs/dfsdf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfsdf.c -o dfsdf.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=F77   --mode=compile gfortran  -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c -o dfsdff.lo ../../../../HDF4.2.14/hdf/src/dfsdff.f
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfsdff.f  -fPIC -o .libs/dfsdff.o
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfsdff.f -o dfsdff.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=F77   --mode=compile gfortran  -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c -o dfufp2iff.lo ../../../../HDF4.2.14/hdf/src/dfufp2iff.f
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfufp2iff.f  -fPIC -o .libs/dfufp2iff.o
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/dfufp2iff.f -o dfufp2iff.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dfutilf.lo ../../../../HDF4.2.14/hdf/src/dfutilf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfutilf.c  -fPIC -DPIC -o .libs/dfutilf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfutilf.c -o dfutilf.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o herrf.lo ../../../../HDF4.2.14/hdf/src/herrf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/herrf.c  -fPIC -DPIC -o .libs/herrf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/herrf.c -o herrf.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hfilef.lo ../../../../HDF4.2.14/hdf/src/hfilef.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/hfilef.c  -fPIC -DPIC -o .libs/hfilef.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/hfilef.c -o hfilef.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o df24f.lo ../../../../HDF4.2.14/hdf/src/df24f.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/df24f.c  -fPIC -DPIC -o .libs/df24f.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/df24f.c -o df24f.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dfufp2if.lo ../../../../HDF4.2.14/hdf/src/dfufp2if.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfufp2if.c  -fPIC -DPIC -o .libs/dfufp2if.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/dfufp2if.c -o dfufp2if.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=F77   --mode=compile gfortran  -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c -o hfileff.lo ../../../../HDF4.2.14/hdf/src/hfileff.f
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/hfileff.f  -fPIC -o .libs/hfileff.o
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/hfileff.f -o hfileff.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mfanf.lo ../../../../HDF4.2.14/hdf/src/mfanf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/mfanf.c  -fPIC -DPIC -o .libs/mfanf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/mfanf.c -o mfanf.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src   -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mfgrf.lo ../../../../HDF4.2.14/hdf/src/mfgrf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/mfgrf.c  -fPIC -DPIC -o .libs/mfgrf.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../HDF4.2.14/hdf/src -Wdate-time -D_FORTIFY_SOURCE=2 -DBIG_LONGS -DSWAP -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c ../../../../HDF4.2.14/hdf/src/mfgrf.c -o mfgrf.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=F77   --mode=compile gfortran  -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c -o mfgrff.lo ../../../../HDF4.2.14/hdf/src/mfgrff.f
libtool: compile:  gfortran -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -O -c ../../../../HDF4.2.14/hdf/src/mfgrff.f  -fPIC -o .libs/mfgrff.o
../../../../HDF4.2.14/hdf/src/mfgrff.f:155:48:

  132 |       mgsnatt = mgisattr(riid, name, nt, count, data, len(name))
      |                                                2
......
  155 |       mgsattr = mgisattr(riid, name, nt, count, data, len(name))
      |                                                1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(0)/INTEGER(4)).
make[5]: *** [Makefile:733: mfgrff.lo] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-hdf4/hdf/src'
make[4]: *** [Makefile:534: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-hdf4/hdf/src'
make[3]: *** [Makefile:440: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-hdf4/hdf'
make[2]: *** [Makefile:529: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-hdf4'
dh_auto_build: error: cd debian/build-hdf4 && make -j1 F77=gfortran CC=gcc CXX=g\+\+ "CFLAGS=-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "LDFLAGS=-Wl,-z,relro -Wl,-z,now" "LIBS=-ljpeg -lz -lm" returned exit code 2
make[1]: *** [debian/rules:108: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:55: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-grass-devel mailing list