[oe] BUG: python-core: target configuration includes sysroot from build host

Martin Ling martin-oe at earth.li
Sat Aug 18 20:43:43 UTC 2012


Hi,

I am running Angstrom v2012.05 on a BeagleBone with python-core version
2.7.2-r3.17.

Python has a Makefile at /usr/lib/python2.7/config/Makefile which
includes the CFLAGS etc that should be used to build extension modules.
These are included automatically when building Python packages that
include extension modules written in C.

However, the installed copy of this Makefile includes the --sysroot
option that was used when cross-compiling Python from the build host
(e.g.
--sysroot=/OE/angstrom-v2012-05/build/tmp-angstrom_v2012_05-eglibc/sysroots/beaglebone
in the current version from the repository).

As a result, any attempt to build Python extension modules on the target
fails at the compilation step, because this --sysroot option is passed
and the compiler looks in that non-existent prefix for all header and
library files.

The --sysroot option needs to be stripped from the Makefile before
inclusion in the package. Making this change by hand allows me to build
extension modules successfully on the target.


Martin




More information about the Openembedded-devel mailing list