Bug 10380

Summary: multilib-example2.conf fails testsdk
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Juro Bystricky <juro.bystricky>
Component: devtools / tool chainAssignee: Juro Bystricky <juro.bystricky>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.2   
Target Milestone: 2.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: Don't know
Bug Depends on:    
Bug Blocks: 10354    
Attachments:
Description Flags
log file of "testsdk" none

Description Juro Bystricky 2016-10-05 16:49:29 UTC
Created attachment 3452 [details]
log file of "testsdk"

Specify multilib as described in poky/meta-skeleton/conf/multilib-example2.conf:
Place in local.conf:

MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:libx32"
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"

also add 

USER_CLASSES += " testsdk "

run 

$ bitbake core-image-minimal 
$ bitbake core-image-minimal -c testsdk

The test fails (see the attached log).
The reason is the x32 meta-toolchain is not built correctly.
There are two issues:
CPP cannot find include files
CC cannot find libgcc
Comment 1 Juro Bystricky 2016-10-06 15:12:46 UTC
correction to reproduce the problem:

run 

$ bitbake core-image-minimal -c populate_sdk
$ bitbake core-image-minimal -c testsdk