Bug 2270

Summary: Cross configure fail using sysroot forder of poky tree and meta-toolchain
Product: [Yocto Project Subprojects] ADT Reporter: Hongna Xu <hongnax.xu>
Component: adtAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jiajun.xu, lianhao.lu, poky.adt.watcher, poky.watcher
Version: 1.2   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (1.2)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Configure Fail/Pass Log none

Description Hongna Xu 2012-04-10 05:53:29 UTC
Created attachment 452 [details]
Configure Fail/Pass Log

meta-toolchain and poky tree's sysroot folder can't identify which arch sysroot we want to use, this is my testing steps:
1.Launch eclipse and install Yocto plug-in, install meta-toolchain in /opt or build toochain with a poky project.
2.In eclipse, set Toochaine Root Location as /opt/poky/1.2/ or yocto build folder, set sysroot as /opt/poky/1.2/sysroot/ or Yocto build sysroot, mine is in /home/xuhongna/workspace/1.2M4/poky/build/tmp/sysroots, set any Target Architectre, here i set i568-poky-linux, in Window->Preferences->Yocot Project ADT.
3.New a C/C++ project based on Yocto ADT Project templates.
4.Let the project selected, click eclipse menu Project->Change Yocot Project Settings to confirm our setting is like Preferences's set.
5.Then Project->Reconfigure Project.
6.Configure fail.
7.If we choose /opt/poky/1.2/sysroots/i586-poky-linux or ${POKY_BUILD_TREE}/tmp/sysroots/qemuOOXX as sysroot location, it can build pass.
Comment 1 Hongna Xu 2012-04-10 06:00:45 UTC
Sorry for this, it is new feature which is not in our branch 1.2_M4 rc2.
Next test circle i will test it again.
Comment 2 Jessica 2012-04-11 17:00:31 UTC
Hongna, this should be fixed by this commit: 	77cd6aba6541914b398c60f4ea85423b70b5d1f0.  Please verify against the upcoming RC3 and if there's still issue, use the bug to track. thx
Comment 3 Hongna Xu 2012-04-18 01:31:30 UTC
It works with meta-toolchain's sysroot, so verify it against poky/1.2_M4 tagged rc3, git info fae1c7a5fdcea199338b5f91efaafd7c72aec5dd.