Bug 12344

Summary: eSDK: Unable to create derivative SDK within eSDK environment
Product: [Yocto Project Subprojects] eSDK Reporter: Rebecca Chang <rebecca.swee.fun.chang>
Component: eSDKAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Medium CC: henry.bruce, randy.macleod, rebecca.swee.fun.chang, stephano, wmills
Version: 2.4   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
do_populate_sdk_ext log
none
Auto generated error report none

Description Rebecca Chang 2017-11-14 06:23:43 UTC
It seems like when we try to build a derivative SDK using command "devtool build-sdk", bitbake failed to locate shared state cache and hence causing failures to set-scene and not producing derivative SDK.

Steps to reproduce:
1. Install eSDK via latest installer (2.4)
http://downloads.yoctoproject.org/releases/yocto/yocto-2.4/toolchain/x86_64/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4.sh 

2. Source the eSDK environment script.

3. Add the component using "devtool add". We used bbexample.
$ devtool add 'https://github.com/pgyptraining/bbexample.git;rev=55412248fbab1e95a777aa386b3f2c890c105c45'

4. Without changing anything in the configurations and recipe, we started the build using "devtool build-sdk"
$ devtool build-sdk

We would first see meta-emvironment-extsdk-qemux86 having taskhash mismatch.
----- snip -----
ERROR: meta-environment-extsdk-qemux86-1.0-r8 do_generate_content: Taskhash mismatch 8fbaa5a81b850a0a1b2e9e70066d92f2 versus 8b026f55bdf00a4ce6519fe247b01a83 for /media/rebeccas/yocto/poky_sdk_official/layers/build/meta/recipes-core/meta/meta-environment-extsdk.bb.do_generate_content
ERROR: Taskhash mismatch 8fbaa5a81b850a0a1b2e9e70066d92f2 versus 8b026f55bdf00a4ce6519fe247b01a83 for /media/rebeccas/yocto/poky_sdk_official/layers/build/meta/recipes-core/meta/meta-environment-extsdk.bb.do_generate_content
ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Failed to generate filtered task list for extensible SDK:

----- snip -----


Going to end of the build, it would fail on task do_populate_sdk_ext: Function failed: copy_buildsystem

----- snip -----
Summary: There were 7 WARNING messages shown.
Summary: There were 505 ERROR messages shown, returning a non-zero exit code.
----------

NOTE: "attempted to execute unexpectedly and should have been setscened" errors indicate this may be caused by missing sstate artifacts that were likely produced in earlier builds, but have been subsequently deleted for some reason.

ERROR: core-image-minimal-1.0-r0 do_populate_sdk_ext: Function failed: copy_buildsystem
ERROR: Logfile of failure stored in: /media/rebeccas/yocto/poky_sdk_official/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk_ext.91062
ERROR: Task (/media/rebeccas/yocto/poky_sdk_official/layers/build/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3250 tasks of which 320 didn't need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /media/rebeccas/yocto/poky_sdk_official/tmp/log/error-report/error_report_20171114044159.txt
You can send the errors to a reports server by running:
  send-error-report /media/rebeccas/yocto/poky_sdk_official/tmp/log/error-report/error_report_20171114044159.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.

Summary: 1 task failed:
  /media/rebeccas/yocto/poky_sdk_official/layers/build/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk_ext
Summary: There were 4 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
----- snip -----
Comment 1 Rebecca Chang 2017-11-14 06:24:59 UTC
Created attachment 4123 [details]
do_populate_sdk_ext log
Comment 2 Rebecca Chang 2017-11-14 06:26:53 UTC
Created attachment 4124 [details]
Auto generated error report
Comment 3 Randy MacLeod 2023-06-29 16:38:25 UTC
Still worth doing when we have the people available. -- YP bug review.
Comment 4 Randy MacLeod 2025-07-03 15:32:52 UTC
Still worth doing when we have the people available. -- YP bug review.