[oe-commits] [openembedded-core] 02/13: pyton-numpy: Add definition of off_t size

git at git.openembedded.org git at git.openembedded.org
Thu Mar 31 11:58:35 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 8f8b1586faf7560984b18a30fa5a5f6a9075d46b
Author: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
AuthorDate: Thu Mar 31 13:19:27 2016 +0200

    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
    
    Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h | 1 +
 1 file changed, 1 insertion(+)

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 8e2b5d0..b330361 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 @@
 #define NPY_SIZEOF_FLOAT 4
 #define NPY_SIZEOF_COMPLEX_FLOAT 8
 #define NPY_SIZEOF_DOUBLE 8
+#define NPY_SIZEOF_OFF_T 8
 #define NPY_SIZEOF_COMPLEX_DOUBLE 16
 #define NPY_SIZEOF_LONGDOUBLE 16
 #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list