diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2016-03-31 13:19:27 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-31 23:01:36 +0100 |
commit | 8049f25e9cf1cc9277851fb8ce3ed366588975da (patch) | |
tree | f401bab0e24d6a33410897169113977f9b033cf9 | |
parent | b75505ec33aab04aa40d6f6eb8be1619559c07f6 (diff) | |
download | poky-8049f25e9cf1cc9277851fb8ce3ed366588975da.tar.gz |
pyton-numpy: Add definition of off_t size
NPY_SIZEOF_OFF_T must be defined. Otherwise:
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots
/qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:140:9: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT
^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy
/npy_common.h:142:11: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
#elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT
^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:144:11: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
#elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG
^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:146:11: warning: "NPY_SIZEOF_OFF_T" is not defined [-Wundef]
#elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG
^
/home/ricardo/curro/qt5022/oe/openembedded-core/build/tmp-glibc/sysroots/
qemux86-64/usr/lib/python2.7/site-packages/numpy/core/include/numpy/
npy_common.h:149:10: error: #error Unsupported size for type off_t
#error Unsupported size for type off_t
(From OE-Core rev: f0b21c0c1a5f50126eff098568a792a1be85f422)
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h b/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h index 8e2b5d0940..b330361649 100644 --- a/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h +++ b/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #define NPY_SIZEOF_FLOAT 4 | 5 | #define NPY_SIZEOF_FLOAT 4 |
6 | #define NPY_SIZEOF_COMPLEX_FLOAT 8 | 6 | #define NPY_SIZEOF_COMPLEX_FLOAT 8 |
7 | #define NPY_SIZEOF_DOUBLE 8 | 7 | #define NPY_SIZEOF_DOUBLE 8 |
8 | #define NPY_SIZEOF_OFF_T 8 | ||
8 | #define NPY_SIZEOF_COMPLEX_DOUBLE 16 | 9 | #define NPY_SIZEOF_COMPLEX_DOUBLE 16 |
9 | #define NPY_SIZEOF_LONGDOUBLE 16 | 10 | #define NPY_SIZEOF_LONGDOUBLE 16 |
10 | #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 | 11 | #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 |