[oe-commits] [openembedded-core] 17/58: python-numpy: fix build for libn32

git at git.openembedded.org git at git.openembedded.org
Sun Sep 15 16:59:11 UTC 2019


This is an automated email from the git hooks/post-receive script.

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

commit b659b6dcb6be203e8c7bc678c902d4a31ce9fe70
Author: Chen Qi <Qi.Chen at windriver.com>
AuthorDate: Tue Sep 10 19:00:08 2019 +0800

    python-numpy: fix build for libn32
    
    Fix do_compile failure for libn32. To reproduce, use the following config.
    
      MACHINE = "qemumips64"
      require conf/multilib.conf
      MULTILIB_GLOBAL_VARIANTS_append = " libn32"
      MULTILIBS ?= "multilib:lib32 multilib:libn32"
      DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
      DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
    
    The error message is as following.
    
      numpy/core/include/numpy/npy_common.h:206:10: error: #error Unsupported size for type off_t
    
    Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-devtools/python-numpy/files/mipsarchn32eb/_numpyconfig.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python-numpy/files/mipsarchn32eb/_numpyconfig.h b/meta/recipes-devtools/python-numpy/files/mipsarchn32eb/_numpyconfig.h
index 8e2b5d0..debb390 100644
--- a/meta/recipes-devtools/python-numpy/files/mipsarchn32eb/_numpyconfig.h
+++ b/meta/recipes-devtools/python-numpy/files/mipsarchn32eb/_numpyconfig.h
@@ -12,6 +12,7 @@
 #define NPY_SIZEOF_PY_INTPTR_T 8
 #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