Bug 10380 - multilib-example2.conf fails testsdk
Summary: multilib-example2.conf fails testsdk
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M4
Assignee: Juro Bystricky
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 10354
  Show dependency tree
 
Reported: 2016-10-05 16:49 UTC by Juro Bystricky
Modified: 2016-10-10 16:24 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments
log file of "testsdk" (26.26 KB, application/octet-stream)
2016-10-05 16:49 UTC, Juro Bystricky
no flags Details

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