| Summary: | eSDKs are missing sstate objects | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Yocto Project Subprojects] eSDK | Reporter: | Robert Berger <pokylinux> | ||||||
| Component: | eSDK | Assignee: | Ross Burton <ross.burton> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Francisco Pedraza <francisco.j.pedraza.gonzalez> | ||||||
| Severity: | normal | ||||||||
| Priority: | Medium+ | CC: | andrej.v, randy.macleod, ross.burton, sgw | ||||||
| Version: | 3.4 | ||||||||
| Target Milestone: | 4.2 M1 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | Regression (Used to work) | ||||||
| Verified: | Documentation change: | Don't know | |||||||
| Attachments: |
|
||||||||
might be related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=14624 Created attachment 4842 [details]
testcase which collects data ;)
The previous test case shows the compilation issue as well, but this one collects data as well.
Hi Robert, Can I get clarification as to what version and image / sdk your building including any additional packages installed (INSTALL_IMAGE) or other distro or local settings. Thanks Saul agreed to take this. Is this still a problem in the current release or Kirkstone? Robert, Is this still a problem in the current release or Kirkstone? Huh. So yes, I can replicate this with current master (almost langdale). I believe the correct workflow is to unpack the eSDK, source the environment script, then run 'devtool sdk-install lttng-ust'. However, that fails for me. If I build an eSDK, some sstate is missing and eg 'devtool sdk-install libxml2' fails with Unavailable, despite the fact that it should be in the eSDK. It looks like some of the sstate is missing in the eSDK. For example, conf/locked-sigs.inc says: libxml2:do_package_write_rpm:787fe8aabd0010122c8c2070aa0c6e3fac39895963e19600a48226ab3e2b1346 And indeed, this sstate exists: sstate-cache/78/7f/sstate:libxml2:cortexa57-poky-linux:2.9.14:r0:cortexa57:10:787fe8aabd0010122c8c2070aa0c6e3fac39895963e19600a48226ab3e2b1346_package_write_rpm.tar.zst However, the populate-sysroot sstate: libxml2:do_populate_sysroot:a37ec72685d847402a8a18b781f453ad30f6aff72892e457e36456163714bb81 Does not exist at all. I suspect this is related to hash equivalency. *** Bug 14924 has been marked as a duplicate of this bug. *** Try with this small patch:
diff --git a/scripts/oe-check-sstate b/scripts/oe-check-sstate
index f4cc5869de..0f0afab1f3 100755
--- a/scripts/oe-check-sstate
+++ b/scripts/oe-check-sstate
@@ -52,7 +52,7 @@ def check(args):
try:
output = subprocess.check_output(
- 'bitbake -n %s' % ' '.join(args.target),
+ 'bitbake -n --runall=build %s' % ' '.join(args.target),
stderr=subprocess.STDOUT,
env=env,
shell=True)
Proposed fix: https://lists.openembedded.org/g/openembedded-core/message/171935 Additional bug discussion: https://lists.openembedded.org/g/openembedded-core/topic/92019337#171701 Slightly improved version with a more verbose commit message: https://lore.kernel.org/openembedded-core/20221019203808.2275846-2-ross.burton@arm.com/T/#u Merged in oe-core 1b62344f919b5122f048b6409d09386d7d6dd3cd. bulk change to add Saul's non-WR address. Bulk change: Remove Saul's old WR address. |
Created attachment 4841 [details] testcase When I use the eSDK to build this example this happens: I'm on the host ++ '[' -d hello ']' ++ rm -rf hello ++ tar xzvf hello.tar.gz hello/ hello/README hello/hello.c hello/Makefile.example.linux hello/Makefile.example.bsd hello/tp.c hello/ust_tests_hello.h hello/Makefile.am ++ pushd hello ~/projects/yocto-3.0/yocto-multi-v7-ml/yocto-for-trainer/recipes/89_lttng-ust/hello ~/projects/yocto-3.0/yocto-multi-v7-ml/yocto-for-trainer/recipes/89_lttng-ust ++ plus_off ++ set +x + use buildttools-extended + source /opt/buildtools-extended/resy/3.4.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/environment-setup-x86_64-resysdk-linux + press <ENTER> to go on ++ echo 'source /opt/ext-sdk/resy/3.4.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/environment-setup-armv7at2hf-neon-resy-linux-gnueabi' source /opt/ext-sdk/resy/3.4.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/environment-setup-armv7at2hf-neon-resy-linux-gnueabi ++ plus_off ++ set +x SDK environment now set up; additionally you may now run devtool to perform development tasks. Run devtool --help for further details. rm -f hello arm-resy-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/ext-sdk/resy/3.4.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/tmp/sysroots/multi-v7-ml -O2 -I. -o hello -ldl -llttng-ust hello.c tp.c In file included from hello.c:39: ust_tests_hello.h:29:10: fatal error: lttng/tracepoint.h: No such file or directory 29 | #include <lttng/tracepoint.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from tp.c:26: ust_tests_hello.h:29:10: fatal error: lttng/tracepoint.h: No such file or directory 29 | #include <lttng/tracepoint.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:4: hello] Error 1 When I use the classic SDK built with the same meta-data it works: ++ rm -rf hello ++ tar xzvf hello.tar.gz hello/ hello/README hello/hello.c hello/Makefile.example.linux hello/Makefile.example.bsd hello/tp.c hello/ust_tests_hello.h hello/Makefile.am ++ pushd hello ~/projects/yocto-3.0/yocto-multi-v7-ml/yocto-for-trainer/recipes/89_lttng-ust/hello ~/projects/yocto-3.0/yocto-multi-v7-ml/yocto-for-trainer/recipes/89_lttng-ust ++ set +x + source /opt/sdk/resy/3.4.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/environment-setup-armv7at2hf-neon-resy-linux-gnueabi ++ cp Makefile.example.linux Makefile ++ make clean rm -f hello ++ make arm-resy-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/opt/sdk/resy/3.4.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/sysroots/armv7at2hf-neon-resy-linux-gnueabi -O2 -I. -o hello -ldl -llttng-ust hello.c tp.c ++ popd ~/projects/yocto-3.0/yocto-multi-v7-ml/yocto-for-trainer/recipes/89_lttng-ust ++ set +x