All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/5] package/python-numpy: fix occasional build and run-time failure with lapack
@ 2019-08-01 21:09 Romain Naour
  2019-08-01 21:09 ` [Buildroot] [PATCH 2/5] package/liblapack: add liblapack as virtual package with lapack and clapack as providers Romain Naour
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Romain Naour @ 2019-08-01 21:09 UTC (permalink / raw)
  To: buildroot

From: Alexandre PAYEN <alexandre.payen@smile.fr>

python-numpy fail at run-time because `cblas` reference is missing in
BR2_PYTHON_NUMPY_SITE_CFG_LIBS.
clapack is the C implementation of lapack so when using clapack python numpy
depends on clapack.
cblas is a blas layer which allow to call blas routine from C code. So python
numpy need cblas instead of blas to work correclty

So :
- add cblas reference in BR2_PYTHON_NUMPY_SITE_CFG_LIBS when
  BR2_PACKAGE_CLAPACK = y

Fixes:
http://autobuild.buildroot.net/results/50f/50f7f09a9f830cd7b94f8fc83c09fc3d39297d3d/
http://lists.busybox.net/pipermail/buildroot/2019-June/252380.html

Initial patch from Giulio Benetti :
[v1] http://patchwork.ozlabs.org/patch/1100100/
[v2] http://patchwork.ozlabs.org/patch/1100208/

Signed-off-by: Alexandre PAYEN <alexandre.payen@smile.fr>
Cc: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
 package/python-numpy/python-numpy.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/python-numpy/python-numpy.mk b/package/python-numpy/python-numpy.mk
index 5d2fbfc7ad..aa8052dca4 100644
--- a/package/python-numpy/python-numpy.mk
+++ b/package/python-numpy/python-numpy.mk
@@ -17,7 +17,7 @@ PYTHON_NUMPY_SETUP_TYPE = setuptools
 
 ifeq ($(BR2_PACKAGE_CLAPACK),y)
 PYTHON_NUMPY_DEPENDENCIES += clapack
-PYTHON_NUMPY_SITE_CFG_LIBS += blas lapack
+PYTHON_NUMPY_SITE_CFG_LIBS += cblas lapack
 else
 PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
 endif
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-08-18 17:28 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01 21:09 [Buildroot] [PATCH 1/5] package/python-numpy: fix occasional build and run-time failure with lapack Romain Naour
2019-08-01 21:09 ` [Buildroot] [PATCH 2/5] package/liblapack: add liblapack as virtual package with lapack and clapack as providers Romain Naour
2019-08-03 10:23   ` Arnout Vandecappelle
2019-08-03 11:09     ` Thomas De Schampheleire
2019-08-05 12:30     ` Thomas De Schampheleire
2019-08-05 12:49       ` Alexandre PAYEN
2019-08-06 15:57         ` Alexandre PAYEN
2019-08-09 16:03           ` Alexandre PAYEN
2019-08-15 13:03             ` Arnout Vandecappelle
2019-08-18 17:28               ` Romain Naour
2019-08-01 21:09 ` [Buildroot] [PATCH 3/5] package/python-numpy: use liblapack virtual package Romain Naour
2019-08-01 21:09 ` [Buildroot] [PATCH 4/5] package/python-numpy: disable numpy if fenv.h is not provided by libc Romain Naour
2019-08-02 20:59   ` Alexey Brodkin
2019-08-03 10:44   ` Arnout Vandecappelle
2019-08-03 10:48     ` Alexey Brodkin
2019-08-03 12:25       ` Arnout Vandecappelle
2019-08-03 12:49         ` Alexey Brodkin
2019-08-03 14:12           ` Arnout Vandecappelle
2019-08-06  9:32             ` Alexey Brodkin
2019-08-01 21:09 ` [Buildroot] [PATCH 5/5] support/testing: add python-numpy tests Romain Naour
2019-08-03 10:45   ` Arnout Vandecappelle
2019-08-03  9:04 ` [Buildroot] [PATCH 1/5] package/python-numpy: fix occasional build and run-time failure with lapack Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.