Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] python-numpy: fix compile error for qemumips
@ 2014-02-26  7:33 Chen Qi
  2014-02-26  7:33 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 6+ messages in thread
From: Chen Qi @ 2014-02-26  7:33 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 5a4b5c6b8ebd5f8d29888aafcd9608e03717bcd5:

  runqemu: Use readlink instead of realpath (2014-02-25 21:29:51 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/python-numpy
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/python-numpy

Chen Qi (1):
  python-numpy: fix compile error for qemumips

 meta/recipes-devtools/python/python-numpy_1.7.0.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/1] python-numpy: fix compile error for qemumips
  2014-02-26  7:33 [PATCH 0/1] python-numpy: fix compile error for qemumips Chen Qi
@ 2014-02-26  7:33 ` Chen Qi
  2014-02-26 10:02   ` Burton, Ross
  0 siblings, 1 reply; 6+ messages in thread
From: Chen Qi @ 2014-02-26  7:33 UTC (permalink / raw)
  To: openembedded-core

When building python-numpy for qemumips, the following error appeared.

cp: cannot stat `xxx/python-numpy/1.7.0-r1/*config.h': No such file or directory

This is because for qemumips, there are no such files in SRC_URI. And
actually we don't need such files. So for qemumips, the `cp' command
is expected to fail.

The same problem appeared for qemumips64 and qemuppc.

This patch fixes this compiling error.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-devtools/python/python-numpy_1.7.0.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python-numpy_1.7.0.bb b/meta/recipes-devtools/python/python-numpy_1.7.0.bb
index 3fa485e..43f5a40 100644
--- a/meta/recipes-devtools/python/python-numpy_1.7.0.bb
+++ b/meta/recipes-devtools/python/python-numpy_1.7.0.bb
@@ -45,7 +45,7 @@ do_compile_prepend_class-target() {
     BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
     ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
     true
-    cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/
+    cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/ || true
 }
 
 FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] python-numpy: fix compile error for qemumips
  2014-02-26  7:33 ` [PATCH 1/1] " Chen Qi
@ 2014-02-26 10:02   ` Burton, Ross
  2014-02-26 10:22     ` ChenQi
  0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2014-02-26 10:02 UTC (permalink / raw)
  To: Chen Qi; +Cc: OE-core

On 26 February 2014 07:33, Chen Qi <Qi.Chen@windriver.com> wrote:
> This is because for qemumips, there are no such files in SRC_URI. And
> actually we don't need such files. So for qemumips, the `cp' command
> is expected to fail.

Those files contain the definitions of things like word size and byte
ordering, so unless I've misunderstood the build process for numpy
what's happening with this patch is that it's using the host
environment.

Ross


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] python-numpy: fix compile error for qemumips
  2014-02-26 10:02   ` Burton, Ross
@ 2014-02-26 10:22     ` ChenQi
  2014-02-26 10:44       ` Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: ChenQi @ 2014-02-26 10:22 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On 02/26/2014 06:02 PM, Burton, Ross wrote:
> On 26 February 2014 07:33, Chen Qi <Qi.Chen@windriver.com> wrote:
>> This is because for qemumips, there are no such files in SRC_URI. And
>> actually we don't need such files. So for qemumips, the `cp' command
>> is expected to fail.
> Those files contain the definitions of things like word size and byte
> ordering, so unless I've misunderstood the build process for numpy
> what's happening with this patch is that it's using the host
> environment.
>
> Ross
>
>

Those files are there already.
For archs like x86, we first replace them so that the build process 
doesn't fail (according to the comments in the recipe); but for 
mips/ppc, we don't need to do so, the build just succeeds.

chenqi@pek-hostel-vm07:~/poky/build-qemumips64 [0] $ ls 
tmp/work/mips64-poky-linux/python-numpy/1.7.0-r1/numpy-1.7.0/build/src.linux-i686-2.7/numpy/core/include/numpy/
config.h  __multiarray_api.c  __multiarray_api.h multiarray_api.txt  
_numpyconfig.h  __ufunc_api.c  __ufunc_api.h ufunc_api.txt  
__umath_generated.c

Best Regards,
Chen Qi


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] python-numpy: fix compile error for qemumips
  2014-02-26 10:22     ` ChenQi
@ 2014-02-26 10:44       ` Richard Purdie
  2014-02-27  3:25         ` ChenQi
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2014-02-26 10:44 UTC (permalink / raw)
  To: ChenQi; +Cc: OE-core

On Wed, 2014-02-26 at 18:22 +0800, ChenQi wrote:
> On 02/26/2014 06:02 PM, Burton, Ross wrote:
> > On 26 February 2014 07:33, Chen Qi <Qi.Chen@windriver.com> wrote:
> >> This is because for qemumips, there are no such files in SRC_URI. And
> >> actually we don't need such files. So for qemumips, the `cp' command
> >> is expected to fail.
> > Those files contain the definitions of things like word size and byte
> > ordering, so unless I've misunderstood the build process for numpy
> > what's happening with this patch is that it's using the host
> > environment.
> >
> > Ross
> >
> >
> 
> Those files are there already.
> For archs like x86, we first replace them so that the build process 
> doesn't fail (according to the comments in the recipe); but for 
> mips/ppc, we don't need to do so, the build just succeeds.
> 
> chenqi@pek-hostel-vm07:~/poky/build-qemumips64 [0] $ ls 
> tmp/work/mips64-poky-linux/python-numpy/1.7.0-r1/numpy-1.7.0/build/src.linux-i686-2.7/numpy/core/include/numpy/
> config.h  __multiarray_api.c  __multiarray_api.h multiarray_api.txt  
> _numpyconfig.h  __ufunc_api.c  __ufunc_api.h ufunc_api.txt  
> __umath_generated.c

Ross' point stands, its just using the values from the host (build)
system. If your build system was mips it might stand a chance of
working, I suspect you're building on x86 though and x86 != mips.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] python-numpy: fix compile error for qemumips
  2014-02-26 10:44       ` Richard Purdie
@ 2014-02-27  3:25         ` ChenQi
  0 siblings, 0 replies; 6+ messages in thread
From: ChenQi @ 2014-02-27  3:25 UTC (permalink / raw)
  To: Richard Purdie; +Cc: OE-core

On 02/26/2014 06:44 PM, Richard Purdie wrote:
> On Wed, 2014-02-26 at 18:22 +0800, ChenQi wrote:
>> On 02/26/2014 06:02 PM, Burton, Ross wrote:
>>> On 26 February 2014 07:33, Chen Qi <Qi.Chen@windriver.com> wrote:
>>>> This is because for qemumips, there are no such files in SRC_URI. And
>>>> actually we don't need such files. So for qemumips, the `cp' command
>>>> is expected to fail.
>>> Those files contain the definitions of things like word size and byte
>>> ordering, so unless I've misunderstood the build process for numpy
>>> what's happening with this patch is that it's using the host
>>> environment.
>>>
>>> Ross
>>>
>>>
>> Those files are there already.
>> For archs like x86, we first replace them so that the build process
>> doesn't fail (according to the comments in the recipe); but for
>> mips/ppc, we don't need to do so, the build just succeeds.
>>
>> chenqi@pek-hostel-vm07:~/poky/build-qemumips64 [0] $ ls
>> tmp/work/mips64-poky-linux/python-numpy/1.7.0-r1/numpy-1.7.0/build/src.linux-i686-2.7/numpy/core/include/numpy/
>> config.h  __multiarray_api.c  __multiarray_api.h multiarray_api.txt
>> _numpyconfig.h  __ufunc_api.c  __ufunc_api.h ufunc_api.txt
>> __umath_generated.c
> Ross' point stands, its just using the values from the host (build)
> system. If your build system was mips it might stand a chance of
> working, I suspect you're building on x86 though and x86 != mips.
>
> Cheers,
>
> Richard
>
>
>

Ross & Richard,

Thanks for making it clear.
Yesterday, I built it and tested it on target. As some basic tests 
passed, I thought everything was OK.
Now I've checked those files, and obviously I've made a mistake.
I'll rework on this one.

Best Regards,
Chen Qi


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-27  3:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26  7:33 [PATCH 0/1] python-numpy: fix compile error for qemumips Chen Qi
2014-02-26  7:33 ` [PATCH 1/1] " Chen Qi
2014-02-26 10:02   ` Burton, Ross
2014-02-26 10:22     ` ChenQi
2014-02-26 10:44       ` Richard Purdie
2014-02-27  3:25         ` ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox