[poky] Error building python-gobject for nativeSDK

Alexander Kanavin alexander.kanavin at linux.intel.com
Sun Jan 28 23:37:06 PST 2018


On 01/29/2018 08:44 AM, Mardegan, Alberto wrote:
>> I did reproduce the
>>
>> "| ./g-ir-compiler: line 117:
>> /home/mardy/pelux/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-gobject-introspection/1.50.0-r0/build/.libs/lt-g-ir-compiler:
>> No such file or directory"
>>
>> stuff, so no need to publish anything :). I can't promise I'll find time
>> to look into it very soon though - this is a new feature development,
>> not a bug.
> 
> Thanks Alex! Indeed this looks tricky... Anyway, according to the
> documentation it would looks like the GI typelib files should be
> architecture independent:
>    https://developer.gnome.org/gi/unstable/gi-GITypelib.html
> So I guess the problem here is that g-ir-compiler is being built for the
> target architecture, while it's something that can be built natively?

Typelib files are essentially a memory dump of internal g-i C structures 
to disk. They might be the same on every architecture, or they might not 
(endiannness, alignment). I'm not trusting that they are. So to produce 
them for target we build a target g-ir-compiler and run it under qemu.

In this case, the produced typelib files are not intended for the 
target, they are intended for the nativesdk package. The error is 
probably some simple mismatch between the binary name and what the build 
configuration expects to run. I have a hunch that's not the only issue 
to sort though :)

Alex


More information about the poky mailing list