Bug 10357

Summary: multiconfig: error building meta-toolchains
Product: [Build System, Metadata & Runtime] BitBake Reporter: Juro Bystricky <juro.bystricky>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: oscar lopez arandas <oscarx.lopez.arandas>
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, poky.bs.watcher, poky.watcher
Version: 2.2   
Target Milestone: 2.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
console output of the error message none

Description Juro Bystricky 2016-09-30 22:50:30 UTC
Created attachment 3446 [details]
console output of the error message

I have this setup:

conf/local.conf: 
    BBMULTICONFIG = "qemux86 qemuarm"

conf/multiconfig/qemux86.conf:
    MACHINE="qemux86"

conf/multiconfig/qemuarm.conf:
    MACHINE="qemuarm"


After I run this command (build from scratch, no pre-existing sstate, tmp) :

$ bitbake multiconfig:qemuarm:meta-toolchain multiconfig:qemux86:meta-toolchain

I get the error:


Build Configuration:
BB_VERSION        = "1.31.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-16.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.1+snapshot-20160930"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "master:a75b79a9e9d76db8f75af64c3792c7a1bbfd15b8"

Initialising tasks: 100% |########################################################################################################################| Time: 0:00:07
NOTE: Executing RunQueue Tasks
WARNING: nativesdk-libgcc-initial-6.2.0-r0 do_populate_sysroot: Task sysroot_stage_all changed cwd to None
ERROR: nativesdk-libgcc-initial-6.2.0-r0 do_populate_sysroot: Package already staged (/data/master-zephyr/poky/build-multiconfig2/tmp/sstate-control/manifest-x86_64_linux-nativesdk-libgcc-initial.populate_sysroot)?!
ERROR: nativesdk-libgcc-initial-6.2.0-r0 do_populate_sysroot: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /data/master-zephyr/poky/build-multiconfig2/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc-initial/6.2.0-r0/temp/log.do_populate_sysroot.1568
ERROR: Task (multiconfig:qemuarm:virtual:nativesdk:/data/master-zephyr/poky/meta/recipes-devtools/gcc/libgcc-initial_6.2.bb:do_populate_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2200 tasks of which 908 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  multiconfig:qemuarm:virtual:nativesdk:/data/master-zephyr/poky/meta/recipes-devtools/gcc/libgcc-initial_6.2.bb:do_populate_sysroot
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
juro@juro-Precision-T5610:/data/master-zephyr/poky/build-multiconfig2$ 


After wiping the "tmp" folder and re-running the command, I get similar error.
(see the attachment)
Comment 1 Richard Purdie 2016-12-22 14:46:24 UTC
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d6799e655e21c3c3ef60f5dec5eb53a693430a2f

(this lead to hash mismatches and hence conflicting builds for the same sstate object/stamp file)
Comment 2 oscar lopez arandas 2017-04-18 21:04:45 UTC
multiconfig  build meta-toolchains with success

Build Configuration:
BB_VERSION        = "1.33.3"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2+snapshot-20170418"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "HEAD:eff56e4f0d59b1d965a68e4f009b7f07717b7edd"
 
STEP:
I have this setup:

conf/local.conf: 
    BBMULTICONFIG = "qemux86 qemuarm"

conf/multiconfig/qemux86.conf:
    MACHINE="qemux86"

conf/multiconfig/qemuarm.conf:
    MACHINE="qemuarm"

I run this command:
$ bitbake multiconfig:qemuarm:meta-toolchain multiconfig:qemux86:meta-toolchain

EXPECTED OUTCOME:
multiconfig  build meta-toolchains

ACTUAL OUTCOME:
multiconfig  build meta-toolchains with success

NOTES:
 
oscar@oscar-ThinkPad-T540p:~/qemu/build$ bitbake multiconfig:qemuarm:meta-toolchain multiconfig:qemux86:meta-toolchain
Parsing recipes: 100% |#########################################| Time: 0:00:50
Parsing of 830 .bb files complete (0 cached, 830 parsed). 3894 targets, 144 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |######################################| Time: 0:00:07
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 5980 tasks of which 4155 didn't need to be rerun and all succeeded.