python-numpy: fix build failure with python-matplotlib
PATCH 1/1 python-numpy: fix build failure with python-matplotlib
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for type off_t
--- meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1 -0
@@ -11,6 +11,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
Signature · 1 line
2.3.5
Quoted 18 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-0
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 4 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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
Why does the test to select size of off_t fails ?
we might need similar fix for mips64 too.
Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 13 lines · Khem Raj
Quoted 13 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)
Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 9 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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 8Why does the test to select size of
off_tfails ?
core/include/numpy/npy_common.h
#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT
#define NPY_OFF_T_PYFMT "h"
#elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT
#define NPY_OFF_T_PYFMT "i"
#elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG
#define NPY_OFF_T_PYFMT "l"
#elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG
#define NPY_OFF_T_PYFMT "L"
#else
#error Unsupported size for type off_t
#endifits gotta match one of them. X86-64 has NPY_SIZEOF_OFF_T value set.
Quoted 1 line
we might need similar fix for mips64 too.
yep, I just built mips64 and ppc64 and they both fail like aach64.
will send v2 to fix those as well.
-armin
Quoted 13 lines
Quoted 12 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 40 lines · On May 16, 2016, at 7:26 PM, akuster808 <[email protected]> wrote:
Quoted 13 lines · Khem Raj
Quoted 13 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 9 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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 8Why does the test to select size of
off_tfails ?
core/include/numpy/npy_common.h#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT #define NPY_OFF_T_PYFMT "h" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT #define NPY_OFF_T_PYFMT "i" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG #define NPY_OFF_T_PYFMT "l" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG #define NPY_OFF_T_PYFMT "L"
Quoted 5 lines
#else
#error Unsupported size for typeoff_t
#endifits gotta match one of them. X86-64 has
NPY_SIZEOF_OFF_Tvalue set.
yes thats the use of it. i was asking for place where it is set, most probably during configure
Quoted 6 lines
Quoted 3 lines
we might need similar fix for mips64 too.
yep, I just built mips64 and ppc64 and they both fail like aach64.
will send v2 to fix those as well.
OK
Quoted 16 lines
-armin
Quoted 13 lines
Quoted 12 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 44 lines · Khem Raj
Quoted 44 lines · On May 16, 2016, at 7:26 PM, akuster808 <[email protected]> wrote:
Quoted 13 lines · Khem Raj
Quoted 13 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 9 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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 8Why does the test to select size of
off_tfails ?
core/include/numpy/npy_common.h#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT #define NPY_OFF_T_PYFMT "h" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT #define NPY_OFF_T_PYFMT "i" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG #define NPY_OFF_T_PYFMT "l" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG #define NPY_OFF_T_PYFMT "L"#else
#error Unsupported size for typeoff_t
#endif
Quoted 3 lines
Quoted 1 line
its gotta match one of them. X86-64 has
NPY_SIZEOF_OFF_Tvalue set.yes thats the use of it. i was asking for place where it is set, most probably during configure
oh. hmm, let me check.
- armin
Quoted 27 lines
Quoted 7 lines
Quoted 4 lines
we might need similar fix for mips64 too.
yep, I just built mips64 and ppc64 and they both fail like aach64.
will send v2 to fix those as well.
OK
Quoted 16 lines
-armin
Quoted 13 lines
Quoted 12 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 44 lines · Khem Raj
Quoted 44 lines · On May 16, 2016, at 7:26 PM, akuster808 <[email protected]> wrote:
Quoted 13 lines · Khem Raj
Quoted 13 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 9 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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 8Why does the test to select size of
off_tfails ?
core/include/numpy/npy_common.h#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT #define NPY_OFF_T_PYFMT "h" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT #define NPY_OFF_T_PYFMT "i" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG #define NPY_OFF_T_PYFMT "l" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG #define NPY_OFF_T_PYFMT "L"#else
#error Unsupported size for typeoff_t
#endif
Quoted 4 lines
Quoted 1 line
its gotta match one of them. X86-64 has
NPY_SIZEOF_OFF_Tvalue set.yes thats the use of it. i was asking for place where it is set, most probably during configure
There is no configure for this python package. It uses hardcoded values in config.h or _numpyconfig.h per arch. X86-64 has the NPY_SIZEOF_OFF_T defined in _numpyconfig.h. To keep it consistent, I put the Aarch64 changes in the same place.
- armin
Quoted 26 lines
Quoted 6 lines
Quoted 3 lines
we might need similar fix for mips64 too.
yep, I just built mips64 and ppc64 and they both fail like aach64.
will send v2 to fix those as well.
OK
Quoted 16 lines
-armin
Quoted 13 lines
Quoted 12 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 50 lines · On May 16, 2016, at 8:34 PM, akuster808 <[email protected]> wrote:
Quoted 46 lines · Khem Raj
Quoted 45 lines · On May 16, 2016, at 7:26 PM, akuster808 <[email protected]> wrote:
Quoted 13 lines · Khem Raj
Quoted 13 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 9 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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 8Why does the test to select size of
off_tfails ?
core/include/numpy/npy_common.h#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT #define NPY_OFF_T_PYFMT "h" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT #define NPY_OFF_T_PYFMT "i" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG #define NPY_OFF_T_PYFMT "l" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG #define NPY_OFF_T_PYFMT "L"#else
#error Unsupported size for typeoff_t
#endifits gotta match one of them. X86-64 has
NPY_SIZEOF_OFF_Tvalue set.
Quoted 7 lines
Quoted 2 lines
yes thats the use of it. i was asking for place where it is set, most probably during configure
There is no configure for this python package. It uses hardcoded values in
config.hor_numpyconfig.hper arch. X86-64 has theNPY_SIZEOF_OFF_Tdefined in_numpyconfig.h. To keep it consistent, I put the Aarch64 changes in the same place.
is this config.h or _numpyconfig.h generated too ? see if thats the case
Quoted 27 lines
- armin
Quoted 24 lines
Quoted 6 lines
Quoted 3 lines
we might need similar fix for mips64 too.
yep, I just built mips64 and ppc64 and they both fail like aach64.
will send v2 to fix those as well.
OK
Quoted 15 lines
-armin
Quoted 12 lines
Quoted 12 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 53 lines · Khem Raj
Quoted 53 lines · On May 16, 2016, at 8:34 PM, akuster808 <[email protected]> wrote:
Quoted 48 lines · Khem Raj
Quoted 40 lines · On May 16, 2016, at 7:26 PM, akuster808 <[email protected]> wrote:
Quoted 13 lines · Khem Raj
Quoted 13 lines · Armin Kuster
From: Armin Kuster <[email protected]>
numpy/core/include/numpy/npy_common.h:149:10: error:
| #error Unsupported size for typeoff_tSigned-off-by Armin Kuster <[email protected]>---
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h| 1 +1 file changed, 1 insertion(+)Quoted 11 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h line 14
Quoted 9 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +1
-0@@ -11,6 +11,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 8Why does the test to select size of
off_tfails ?
core/include/numpy/npy_common.h#if NPY_SIZEOF_OFF_T == NPY_SIZEOF_SHORT #define NPY_OFF_T_PYFMT "h" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_INT #define NPY_OFF_T_PYFMT "i" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONG #define NPY_OFF_T_PYFMT "l" #elif NPY_SIZEOF_OFF_T == NPY_SIZEOF_LONGLONG #define NPY_OFF_T_PYFMT "L"Quoted 5 lines
#else
#error Unsupported size for typeoff_t
#endifits gotta match one of them. X86-64 has
NPY_SIZEOF_OFF_Tvalue set.yes thats the use of it. i was asking for place where it is set, most probably during configure
Quoted 7 lines
Quoted 4 lines
There is no configure for this python package. It uses hardcoded values in
config.hor_numpyconfig.hper arch. X86-64 has theNPY_SIZEOF_OFF_Tdefined in_numpyconfig.h. To keep it consistent, I put the Aarch64 changes in the same place.is this
config.hor_numpyconfig.hgenerated too ? see if thats the case
Sorry, missed this email last night.
Not sure what you mean by generated. Both config and _numpyconfig.h are files that reside under an "arch" dir and brought in when building. I don't know why this needed to be done this way. Don't you recall, you did a patch for this package too ; ) Maybe Ross remembers, his fingerprints are all over this package.
- armin
Quoted 29 lines
Quoted 28 lines
- armin
Quoted 24 lines
Quoted 6 lines
Quoted 3 lines
we might need similar fix for mips64 too.
yep, I just built mips64 and ppc64 and they both fail like aach64.
will send v2 to fix those as well.
OK
Quoted 15 lines
-armin
Quoted 12 lines
Quoted 12 lines
meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h +0
-1#define NPY_NO_SMP 0#define NPY_HAVE_DECL_ISNAN #define NPY_HAVE_DECL_ISINF --2.3.5
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 8 lines · On 17 May 2016 at 14:19, akuster808 <[email protected]> wrote:
Sorry, missed this email last night.
Not sure what you mean by generated. Both config and
_numpyconfig.hare files that reside under an "arch" dir and brought in when building. I don't know why this needed to be done this way. Don't you recall, you did a patch for this package too ; ) Maybe Ross remembers, his fingerprints are all over this package.
I just beat it into submission when it moved from meta-oe to oe-core. The config and numpyconfig crazy already existed and yes it's hideous but I was worried about changing something so fundamental.
Ross
Quoted 12 lines · Ross
Quoted 8 lines · On 17 May 2016 at 14:19, akuster808 <[email protected]> wrote:
Sorry, missed this email last night.
Not sure what you mean by generated. Both config and
_numpyconfig.hare files that reside under an "arch" dir and brought in when building. I don't know why this needed to be done this way. Don't you recall, you did a patch for this package too ; ) Maybe Ross remembers, his fingerprints are all over this package.
Quoted 3 lines
I just beat it into submission when it moved from meta-oe to oe-core. The config and numpyconfig crazy already existed and yes it's hideous but I was worried about changing something so fundamental.
Thats fine. I was just wondering if we are caching things which could some how be generated.
Quoted 2 lines
Ross
Quoted 5 lines · On 17 May 2016 at 04:34, akuster808 <[email protected]> wrote:
There is no configure for this python package. It uses hardcoded values in
config.hor_numpyconfig.hper arch. X86-64 has theNPY_SIZEOF_OFF_Tdefined in_numpyconfig.h. To keep it consistent, I put the Aarch64 changes in the same place.
I hate numpy.
There's also a largefile DISTRO_FEATURE that the recipe should be respecting...
Ross