Bug 6647 - Enable nativesdk libraries to be optionally used from native binaries in the sysroot
Summary: Enable nativesdk libraries to be optionally used from native binaries in the ...
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: 1.7 M4
Assignee: Richard Purdie
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks: 6435 6662
  Show dependency tree
 
Reported: 2014-08-22 13:36 UTC by Paul Eggleton
Modified: 2015-06-08 18:25 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
populate_sdk log (8.54 KB, application/octet-stream)
2014-10-01 14:27 UTC, Mihail Stanciu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.