Bug 6647

Summary: Enable nativesdk libraries to be optionally used from native binaries in the sysroot
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, meta.mr.watcher, meta.watcher
Version: 1.7   
Target Milestone: 1.7 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 6435, 6662    
Attachments:
Description Flags
populate_sdk log none

Description Paul Eggleton 2014-08-22 13:36:23 UTC
In order to be able to use the build system within the new SDK we need to be able to keep it isolated from the host system. One of the good things about our existing SDK is that it ships its own libc which avoids any dependency on the host's one, which may have a different ABI than the one linked to when the SDK was built. If we're shipping the build system within the SDK, any native binaries within the sysroot should also be using that libc (and any other libraries that are part of the host part of the SDK).

There is a small caveat in that the native libc when building the SDK must still be older or ABI-compatible with the nativesdk libc being built for the SDK. We may want to add some kind of check for this so that at least we fail during the build rather than when trying to actually use the SDK.
Comment 2 Alexandru Georgescu 2014-09-29 08:12:01 UTC
Mihai, can you verify this and also see if a TC is needed?

Thanks!
Comment 3 Mihail Stanciu 2014-10-01 14:27:59 UTC
Created attachment 2156 [details]
populate_sdk log
Comment 4 Mihail Stanciu 2014-10-01 14:28:51 UTC
bitbake uninative-tarball fails with error:

nativesdk-eglibc not found in the base feeds (x86_64-nativesdk noarch any all)

Richard has confirmed this is a genuine bug. Reopening.
Comment 5 Mihail Stanciu 2014-10-02 07:07:33 UTC
Changing nativesdk-eglibc to nativesdk-glibc in the recipe works.
Comment 7 Mihail Stanciu 2014-10-09 14:26:51 UTC
Verified.