Bug 430

Summary: poky-extract-sdk fails
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: liping Ke <liping.ke>
Component: meta-yoctoAssignee: Scott Garman <scott.a.garman>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, kevin.tian, lianhao.lu, poky.bs.watcher, poky.watcher, richard.purdie, scott.a.garman, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---
Attachments:
Description Flags
error screen shot. none

Description liping Ke 2010-10-11 19:14:10 UTC
Please see my screenshot. ( I use changeset http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=builds/milestone&id=b9728f63c676e217efcf93c40ded2c3fad19d52c,
and build the total image arm,x86 successfully)
For x86:
1) source /opt/poky/environment-setup-i586-XXXX files.
2) do poky-extract-sdk cmd
it will report segmentation fault.

For arm, Same phenomenon.

Then I use poky tree environment setup script, seems fine.
Comment 1 liping Ke 2010-10-11 19:15:08 UTC
Created attachment 58 [details]
error screen shot.

The above two windows are the failure extract window.
Comment 2 liping Ke 2010-10-11 19:31:34 UTC
I have restart the machine and get the same result.
Comment 3 Lianhao Lu 2010-10-11 20:16:20 UTC
PPC has the same problem.

But the poky-extract-sdk is ok if we source the environment file from meta-ide-support build instead.
Comment 4 Jessica 2010-10-11 20:19:14 UTC
in summary, it seems the behavior for installed sdk is failing while poky tree works...
Comment 5 Scott Garman 2010-10-12 13:14:00 UTC
This is happening because pseudo is segfaulting. pseudo is segfaulting because it was compiled with the eglibc that is included in the native sysroot, but the runtime linker is not configured to load the libraries in the native sysroot.

If one sets LD_LIBRARY_PATH to the sysroot's lib/ directory, the problem goes away. But if LD_LIBRARY_PATH is then exported, system commands such as 'ls' will fail. I'm currently looking into possible solutions.
Comment 6 Richard Purdie 2010-10-14 12:58:58 UTC
Should be fixed in http://git.pokylinux.org/cgit.cgi/poky/commit/?id=462aef73fad5f01afa89fe76da57032fc5abceee but need someone to test.
Comment 7 Saul Wold 2010-10-14 14:36:59 UTC
Checked into RC2
Comment 8 Jessica 2010-10-14 16:28:13 UTC
Refer the verification note of 431