[Debichem-devel] Bug#957101: cp2k: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:58:13 BST 2020


Package: src:cp2k
Version: 6.1-3
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/cp2k_6.1-3_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

[...]
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_operations.F:1267:0:

 1267 |          CALL acc_devmem_setzero_bytes(area%d%acc_devmem, s*l, s*u, area%d%memory_type%acc_stream)
      | 
Warning: ‘u’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_operations.F:1267:0: Warning: ‘l’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_operations.F:979:0:

  979 |                                   dst_sizes(1), dst_sizes(2))
      | 
Warning: ‘src_ub[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_operations.F:689:87:

  689 |       INTEGER                                            :: lb2_s, lb_s, ub, ub2, ub2_s, ub_s
      |                                                                                       ^
Warning: ‘ub2_s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_operations.F:821:0:

  821 |                scale%r_sp*src%d%r2_sp(lb_s:ub_s, lb2_s:ub2_s)
      | 
Warning: ‘lb2_s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/<<PKGBUILDDIR>>/tools/build_utils/fypp -n /<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_data_operations.F dbcsr_data_operations.F90
mpif90 -c -g -Wall -O2 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -ffree-line-length-none -D__GFORTRAN -D__FFTSG -D__FFTW3  -D__LIBINT -D__LIBXC -D__SPGLIB -D__parallel -D__BLACS -D__SCALAPACK -D__ELPA=201605 -I/usr/include/elpa/modules/ -I/usr/include/elpa/elpa/ -I/usr/include -D__COMPILE_ARCH="\"Linux-x86_64-gfortran\"" -D__COMPILE_DATE="\"Wed Feb 26 11:48:12 UTC 2020\"" -D__COMPILE_HOST="\"ip-172-31-14-223\"" -D__COMPILE_REVISION="\"svn:18464\"" -D__DATA_DIR="\"/usr/share/cp2k\"" -D__SHORT_FILE__="\"dbcsr/block/dbcsr_data_operations.F\"" -I'/<<PKGBUILDDIR>>/src/dbcsr/block/' dbcsr_data_operations.F90 
/<<PKGBUILDDIR>>/tools/build_utils/fypp -n /<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_iterator_operations.F dbcsr_iterator_operations.F90
mpif90 -c -g -Wall -O2 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -ffree-line-length-none -D__GFORTRAN -D__FFTSG -D__FFTW3  -D__LIBINT -D__LIBXC -D__SPGLIB -D__parallel -D__BLACS -D__SCALAPACK -D__ELPA=201605 -I/usr/include/elpa/modules/ -I/usr/include/elpa/elpa/ -I/usr/include -D__COMPILE_ARCH="\"Linux-x86_64-gfortran\"" -D__COMPILE_DATE="\"Wed Feb 26 11:48:12 UTC 2020\"" -D__COMPILE_HOST="\"ip-172-31-14-223\"" -D__COMPILE_REVISION="\"svn:18464\"" -D__DATA_DIR="\"/usr/share/cp2k\"" -D__SHORT_FILE__="\"dbcsr/block/dbcsr_iterator_operations.F\"" -I'/<<PKGBUILDDIR>>/src/dbcsr/block/' dbcsr_iterator_operations.F90 
/<<PKGBUILDDIR>>/tools/build_utils/fypp -n /<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_work_operations.F dbcsr_work_operations.F90
mpif90 -c -g -Wall -O2 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -ffree-line-length-none -D__GFORTRAN -D__FFTSG -D__FFTW3  -D__LIBINT -D__LIBXC -D__SPGLIB -D__parallel -D__BLACS -D__SCALAPACK -D__ELPA=201605 -I/usr/include/elpa/modules/ -I/usr/include/elpa/elpa/ -I/usr/include -D__COMPILE_ARCH="\"Linux-x86_64-gfortran\"" -D__COMPILE_DATE="\"Wed Feb 26 11:48:12 UTC 2020\"" -D__COMPILE_HOST="\"ip-172-31-14-223\"" -D__COMPILE_REVISION="\"svn:18464\"" -D__DATA_DIR="\"/usr/share/cp2k\"" -D__SHORT_FILE__="\"dbcsr/block/dbcsr_work_operations.F\"" -I'/<<PKGBUILDDIR>>/src/dbcsr/block/' dbcsr_work_operations.F90 
/<<PKGBUILDDIR>>/tools/build_utils/fypp -n /<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_access.F dbcsr_block_access.F90
mpif90 -c -g -Wall -O2 -ffast-math -funroll-loops -ftree-vectorize -ffree-form -ffree-line-length-none -D__GFORTRAN -D__FFTSG -D__FFTW3  -D__LIBINT -D__LIBXC -D__SPGLIB -D__parallel -D__BLACS -D__SCALAPACK -D__ELPA=201605 -I/usr/include/elpa/modules/ -I/usr/include/elpa/elpa/ -I/usr/include -D__COMPILE_ARCH="\"Linux-x86_64-gfortran\"" -D__COMPILE_DATE="\"Wed Feb 26 11:48:12 UTC 2020\"" -D__COMPILE_HOST="\"ip-172-31-14-223\"" -D__COMPILE_REVISION="\"svn:18464\"" -D__DATA_DIR="\"/usr/share/cp2k\"" -D__SHORT_FILE__="\"dbcsr/block/dbcsr_block_access.F\"" -I'/<<PKGBUILDDIR>>/src/dbcsr/block/' dbcsr_block_access.F90 
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_access.f90:441:61:

  368 |                 CALL ${nametype1}$axpy (nze, scale, block(1:nze), 1,&
      |                                        2                     
......
  441 |                    CALL ${nametype1}$axpy (nze, ${one1[n]}$, block(1), 1,&
      |                                                             1
Error: Element of assumed-shape or pointer array as actual argument at (1) can not correspond to actual argument at (2) 
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_access.f90:441:61:

  368 |                 CALL ${nametype1}$axpy (nze, scale, block(1:nze), 1,&
      |                                        2                     
......
  441 |                    CALL ${nametype1}$axpy (nze, ${one1[n]}$, block(1), 1,&
      |                                                             1
Error: Element of assumed-shape or pointer array as actual argument at (1) can not correspond to actual argument at (2) 
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_access.f90:441:48:

  368 |                 CALL ${nametype1}$axpy (nze, scale, block(1:nze), 1,&
      |                                        2        
......
  441 |                    CALL ${nametype1}$axpy (nze, ${one1[n]}$, block(1), 1,&
      |                                                1
Error: Element of assumed-shape or pointer array as actual argument at (1) can not correspond to actual argument at (2) 
/<<PKGBUILDDIR>>/src/dbcsr/block/dbcsr_block_access.f90:441:48:

  368 |                 CALL ${nametype1}$axpy (nze, scale, block(1:nze), 1,&
      |                                        2        
......
  441 |                    CALL ${nametype1}$axpy (nze, ${one1[n]}$, block(1), 1,&
      |                                                1
Error: Element of assumed-shape or pointer array as actual argument at (1) can not correspond to actual argument at (2) 
make[5]: *** [/<<PKGBUILDDIR>>/makefiles/Makefile:459: dbcsr_block_access.o] Error 1
make[4]: *** [/<<PKGBUILDDIR>>/makefiles/Makefile:129: all] Error 2
make[3]: *** [/<<PKGBUILDDIR>>/makefiles/Makefile:118: popt] Error 2
make[2]: *** [Makefile:113: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/makefiles'
make[1]: *** [debian/rules:39: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:25: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debichem-devel mailing list