[oe-commits] [openembedded-core] 24/122: python{3}-numpy: Predefine of sizeof off_t on mips/mipsel/ppc
git at git.openembedded.org
git at git.openembedded.org
Tue Jul 19 14:06:04 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit a3ed6570d24a465d3a614f0abe36679e6ed9c16e
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Fri Jul 8 16:03:43 2016 -0700
python{3}-numpy: Predefine of sizeof off_t on mips/mipsel/ppc
Fixes below errors as seen on musl
| In file included from numpy/core/include/numpy/ndarraytypes.h:4:0,
| from numpy/core/include/numpy/ndarrayobject.h:18,
| from numpy/core/include/numpy/arrayobject.h:4,
| from numpy/core/src/multiarray/compiled_base.c:7:
| numpy/core/include/numpy/npy_common.h:167:10: error: #error Unsupported size for type off_t
| #error Unsupported size for type off_t
| ^~~~~
| In file included from numpy/core/include/numpy/ndarraytypes.h:4:0,
| from numpy/core/include/numpy/ndarrayobject.h:18,
| from numpy/core/include/numpy/arrayobject.h:4,
| from numpy/core/src/multiarray/compiled_base.c:7:
| numpy/core/include/numpy/npy_common.h:167:10: error: #error Unsupported size for type off_t
| #error Unsupported size for type off_t
| ^~~~~
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h | 1 +
meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h | 1 +
meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h | 1 +
3 files changed, 3 insertions(+)
diff --git a/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h b/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h
index 05d2b8b..4c465c2 100644
--- a/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h
+++ b/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h
@@ -12,6 +12,7 @@
#define NPY_SIZEOF_PY_INTPTR_T 4
#define NPY_SIZEOF_PY_LONG_LONG 8
#define NPY_SIZEOF_LONGLONG 8
+#define NPY_SIZEOF_OFF_T 8
#define NPY_NO_SMP 0
#define NPY_HAVE_DECL_ISNAN
#define NPY_HAVE_DECL_ISINF
diff --git a/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h b/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h
index c4bf654..0b7cd51 100644
--- a/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h
+++ b/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h
@@ -13,5 +13,6 @@
#define NPY_SIZEOF_LONGLONG 8
#define NPY_SIZEOF_PY_LONG_LONG 8
+#define NPY_SIZEOF_OFF_T 8
/* #define CHAR_BIT 8 */
diff --git a/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h b/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h
index 0f45d5b..6e7262a 100644
--- a/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h
+++ b/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h
@@ -12,6 +12,7 @@
#define NPY_SIZEOF_PY_INTPTR_T 4
#define NPY_SIZEOF_PY_LONG_LONG 8
#define NPY_SIZEOF_LONGLONG 8
+#define NPY_SIZEOF_OFF_T 8
#define NPY_NO_SMP 0
#define NPY_HAVE_DECL_ISNAN
#define NPY_HAVE_DECL_ISINF
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list