Bug 2274

Summary: [Hob2]ToochainSDK depends on image profile
Product: [Build System, Metadata & Runtime] Hob Reporter: Hongna Xu <hongnax.xu>
Component: hobAssignee: Lianhao Lu <lianhao.lu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: High CC: dongxiao.xu, jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, sgw, shane.wang
Version: 1.2   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (1.2) Patch review
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Configure Fail Log none

Description Hongna Xu 2012-04-10 09:10:16 UTC
Created attachment 454 [details]
Configure Fail Log

With latest master, if we build toolchain with sato image in Hob, toolchain may work, but if build with minimal image, the toolchainSDK do cross compile failed, it reports: C compiler cannot create executable, cause by no C compiler works. 

branch: master
Commit id: f89405e115d73426c8a6450b6e795b5885d6bdf3
Comment 1 Lianhao Lu 2012-04-13 06:38:29 UTC
This is because when hob set the variable TOOLCHAIN_TARGET_TASK which is used by populate_sdk.bbclass, several important packages are missing when the image profile is minimal. 

These packages(e.g. libgcc, libgcc-dev, libstdc++, libstdc++-dev, etc) are grouped in the package of task-core-standalone-sdk-target.
Comment 2 Lianhao Lu 2012-04-13 08:45:04 UTC
Patch submitted for review at
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=llu/bug2274
Comment 4 Hongna Xu 2012-04-17 08:13:48 UTC
Fixed and verified with the lastest branch poky/msater commit c936fca6e163bc19bc08cbd0036b31ca6f6c3ed6. thank Lianhao and Shane for it.