[Python-modules-team] Bug#957780: scipy: ftbfs with GCC-10

2020-05-19 Thread Drew Parsons
Source: scipy
Followup-For: Bug #957780

https://github.com/xianyi/OpenBLAS/issues/2262 takes it up further:

-fallow-argument-mismatch would be a better (more targetted) flag than
-std=legacy

___
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

[Python-modules-team] Bug#957780: scipy: ftbfs with GCC-10

2020-05-19 Thread Drew Parsons
Source: scipy
Followup-For: Bug #957780

The error is

gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/dsaitr.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/cnaitr.f
scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/dsaitr.f:671:35:

  369 | call dvout (logfil, 1, rnorm, ndigit,
  |   2
..
  671 | call dvout (logfil, 2, xtemp, ndigit,
  |   1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) 
(scalar and rank-1)

likewise l.743, and cnaitr.f ll.383,666,737

Something to do with rnorm being declared as scalar (Double precision)
but dvout requiring an array, albeit dimension 1 (which would be rnorm(1) ).

Looks like previously gfortran treated scalars as arrays of dimension 1,
but GCC-10 must have changed the handling.

Some discussion at
https://stackoverflow.com/questions/34613356/error-rank-mismatch-in-argument-rank-1-and-scalar

https://github.com/Reference-LAPACK/lapack/issues/353
says netlib source needs -std=legacy to compile.

___
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

[Python-modules-team] Bug#957780: scipy: ftbfs with GCC-10

2020-05-19 Thread Drew Parsons
Source: scipy
Followup-For: Bug #957780

In any case, addressed upstream, 

https://github.com/scipy/scipy/pull/11842

___
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

[Python-modules-team] Bug#957780: scipy: ftbfs with GCC-10

2020-04-17 Thread Matthias Klose
Package: src:scipy
Version: 1.3.3-3
Severity: normal
Tags: sid bullseye
User: debian-...@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/scipy_1.3.3-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

[...]
stat.h:8:35:

Warning: Unused variable ‘t4’ declared at (1) [-Wunused-variable]
stat.h:8:39:

Warning: Unused variable ‘t5’ declared at (1) [-Wunused-variable]
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/zmout.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/second_NONE.f
scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/second_NONE.f:17:27:

   17 |   REAL   T1
  |   1
Warning: Unused variable ‘t1’ declared at (1) [-Wunused-variable]
scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/second_NONE.f:20:36:

   20 |   REAL   TARRAY( 2 )
  |1
Warning: Unused variable ‘tarray’ declared at (1) [-Wunused-variable]
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/smout.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/cvout.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/ssortr.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/sstatn.f
stat.h:8:19:

Warning: Unused variable ‘t0’ declared at (1) [-Wunused-variable]
stat.h:8:23:

Warning: Unused variable ‘t1’ declared at (1) [-Wunused-variable]
stat.h:8:27:

Warning: Unused variable ‘t2’ declared at (1) [-Wunused-variable]
stat.h:8:31:

Warning: Unused variable ‘t3’ declared at (1) [-Wunused-variable]
stat.h:8:35:

Warning: Unused variable ‘t4’ declared at (1) [-Wunused-variable]
stat.h:8:39:

Warning: Unused variable ‘t5’ declared at (1) [-Wunused-variable]
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/dmout.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/zvout.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/svout.f
gfortran:f77: /<>/scipy/_build_utils/src/wrap_dummy_g77_abi.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/dvout.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/icnteq.f
gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/icopy.f
Running from scipy source directory.
/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:690: UserWarning: 
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
  self.calc_info()
/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:782: UserWarning: 
Specified path /usr/local/include/python3.8 is invalid.
  return self.get_paths(self.section, key)
/usr/lib/python3/dist-packages/numpy/distutils/system_info.py:782: UserWarning: 
Specified path /usr/include/suitesparse/python3.8 is invalid.
  return self.get_paths(self.section, key)
/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/__init__.py:517: 
UserWarning: FFLAGS is used as is, not appended to flags already defined by 
numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior 
instead (this behavior will become default in a future release).
  fflags = self.flag_vars.flags + dflags + oflags + aflags
/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/__init__.py:517: 
UserWarning: FFLAGS is used as is, not appended to flags already defined by 
numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior 
instead (this behavior will become default in a future release).
  fflags = self.flag_vars.flags + dflags + oflags + aflags
/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/__init__.py:517: 
UserWarning: FFLAGS is used as is, not appended to flags already defined by 
numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior 
instead (this behavior will become default in a future release).
  fflags = self.flag_vars.flags + dflags + oflags + aflags
e