diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2011-11-04 20:25:03 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-30 16:38:14 +0000 |
commit | ccf6077d4ea4fcec3834a9566a267c0058ce31bd (patch) | |
tree | 6cebc60964384f00d50db1dfdb5a80ca624aad58 /meta/classes/package_rpm.bbclass | |
parent | 38978dc0b8fdd337eb44b68ae2c673bfbe5ddd20 (diff) | |
download | poky-ccf6077d4ea4fcec3834a9566a267c0058ce31bd.tar.gz |
python: skip setup.py 'import check' when cross-compiling
build_extension() in setup.py, as part of the build process, does an
'import check' on the built extension. The import check in turn
dlopen()'s the shared library associated with the extension, which
isn't something that makes sense if that library was cross-compiled
for a different architecture.
This was noticed with an x86_64 target that was compiled with avx
support, because it caused 'illegal instruction' exceptions:
| /bin/sh: line 1: 14575 Illegal instruction ... -E ./setup.py -q build
For other target architectures, it doesn't necessarily cause illegal
instruction exceptions, but still fails. For example, on arm, the
failure pathway causes this warning:
*** WARNING: renaming "cmath" since importing it failed: .../cmath.so:
wrong ELF class: ELFCLASS32
This patch to setup.py and the associated recipe changes allow the
whole 'import check' logic to be skipped when cross-compiling.
(From OE-Core rev: 25fae81538a92e15eab3fc169ebce44505f67839)
(From OE-Core rev: d83e4ac25cca788d2b102c2072ccb367c0cab284)
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
0 files changed, 0 insertions, 0 deletions