[PATCHv5,3/3] package/python-numpy: fix occasional build and run-time failure with lapack
diff mbox series

Message ID 20190715122239.17147-1-alexandre.payen@smile.fr
State Not Applicable
Headers show
Series
  • [PATCHv5,1/3] package/python-numpy: fix occasional build and run-time failure with lapack
Related show

Commit Message

Alexandre PAYEN July 15, 2019, 12:22 p.m. UTC
From: Alexandre PAYEN <alexandre.payen@smile.fr>

With the virtual packet liblapack, numpy can be build using both providers.
Due to run-time failure when complex option is enable,
the cblas reference must be add when :
BR2_PACKAGE_LAPACK_COMPLEX = y

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Alexandre PAYEN <alexandre.payen@smile.fr>
---
 package/python-numpy/python-numpy.mk | 3 +++
 1 file changed, 3 insertions(+)

Comments

Alexandre PAYEN July 15, 2019, 12:27 p.m. UTC | #1
Please, ignore this mail, it's a mistake.


Le lun. 15 juil. 2019 à 14:22, Aalx <alexandre.payen@smile.fr> a écrit :

> From: Alexandre PAYEN <alexandre.payen@smile.fr>
>
> With the virtual packet liblapack, numpy can be build using both providers.
> Due to run-time failure when complex option is enable,
> the cblas reference must be add when :
> BR2_PACKAGE_LAPACK_COMPLEX = y
>
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
> Signed-off-by: Alexandre PAYEN <alexandre.payen@smile.fr>
> ---
>  package/python-numpy/python-numpy.mk | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/
> python-numpy.mk
> index b90ff7d70f..30db0b3797 100644
> --- a/package/python-numpy/python-numpy.mk
> +++ b/package/python-numpy/python-numpy.mk
> @@ -18,6 +18,9 @@ PYTHON_NUMPY_SETUP_TYPE = setuptools
>  ifeq ($(BR2_PACKAGE_CLAPACK),y)
>  PYTHON_NUMPY_DEPENDENCIES += clapack
>  PYTHON_NUMPY_SITE_CFG_LIBS += cblas clapack
> +else ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y)
> +PYTHON_NUMPY_DEPENDENCIES += lapack
> +PYTHON_NUMPY_SITE_CFG_LIBS += blas cblas lapack
>  else
>  PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
>  endif
> --
> 2.21.0
>
>

Patch
diff mbox series

diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk
index b90ff7d70f..30db0b3797 100644
--- a/package/python-numpy/python-numpy.mk
+++ b/package/python-numpy/python-numpy.mk
@@ -18,6 +18,9 @@  PYTHON_NUMPY_SETUP_TYPE = setuptools
 ifeq ($(BR2_PACKAGE_CLAPACK),y)
 PYTHON_NUMPY_DEPENDENCIES += clapack
 PYTHON_NUMPY_SITE_CFG_LIBS += cblas clapack
+else ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y)
+PYTHON_NUMPY_DEPENDENCIES += lapack
+PYTHON_NUMPY_SITE_CFG_LIBS += blas cblas lapack
 else
 PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
 endif