| Summary: | ERROR: core-image-sato-sdk-1.0-r0 do_sdk_depends: The file /usr/lib/tclConfig.sh is installed by both tcl8 and tcl, aborting | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Robert Berger <pokylinux> | ||||||
| Component: | core | Assignee: | Robert Berger <pokylinux> | ||||||
| Status: | IN PROGRESS DESIGN --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | Medium | CC: | HimaniRamesh.Barde, meta.mr.watcher, meta.watcher, randy.macleod, yoann.congal | ||||||
| Version: | 5.1.4 | ||||||||
| Target Milestone: | 6.1 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Documentation change: | Don't know | |||||||
| Attachments: |
|
||||||||
|
Description
Robert Berger
2025-03-25 07:17:15 UTC
Please note, that this happens with: bitbake core-image-sato-sdk -c populate_sdk_ext $ find | grep Config.sh | grep -v ".in" ./8.6.16/tcl8.6.16/unix/tclooConfig.sh ./8.6.16/sysroot-destdir/usr/lib/tclConfig.sh ./8.6.16/sysroot-destdir/usr/lib/tclooConfig.sh ./8.6.16/package/usr/lib/tcl8ooConfig.sh ./8.6.16/package/usr/lib/tcl8Config.sh ./8.6.16/packages-split/tcl8-dev/usr/lib/tcl8ooConfig.sh ./8.6.16/packages-split/tcl8-dev/usr/lib/tcl8Config.sh ./8.6.16/recipe-sysroot-native/usr/lib/tclConfig.sh ./8.6.16/recipe-sysroot-native/usr/lib/tclooConfig.sh ./8.6.16/image/usr/lib/tclConfig.sh ./8.6.16/image/usr/lib/tclooConfig.sh ./8.6.16/build/tclConfig.sh $ find | grep Config.sh | grep -v ".in" ./9.0.1/tcl9.0.1/unix/tclooConfig.sh ./9.0.1/sysroot-destdir/usr/lib/tclConfig.sh ./9.0.1/sysroot-destdir/usr/lib/tclooConfig.sh ./9.0.1/package/usr/lib/tclConfig.sh ./9.0.1/package/usr/lib/tclooConfig.sh ./9.0.1/packages-split/tcl-dev/usr/lib/tclConfig.sh ./9.0.1/packages-split/tcl-dev/usr/lib/tclooConfig.sh ./9.0.1/recipe-sysroot-native/usr/lib/tclConfig.sh ./9.0.1/recipe-sysroot-native/usr/lib/tclooConfig.sh ./9.0.1/image/usr/lib/tclConfig.sh ./9.0.1/image/usr/lib/tclooConfig.sh ./9.0.1/build/tclConfig.sh Robert, Can you provide details steps to reproduce this issue using poky only ideally? Is it a mulitlib-only issue? It has nothing to do with multilib I believe. We have 2 recipes for tcl and they are both included in the image. Currently I try to come up with a simple test where I just include those 2 recipes in an image. Something like: bitbake core-image-minimal -c populate_sdk_ext Let's see ;) Here is a testcase only with poky: 1) check out poky master branch 2) use this commit commit 769a4479e123a5c2951eab8915cbd2b29d82c7f9 (HEAD) Author: Peter Marko <peter.marko@siemens.com> Date: Thu Mar 20 13:15:33 2025 +0100 spdx30: handle links to inaccessible locations This is the same as e105befbe4ee0d85e94c2048a744f0373e2dbcdf on additional place in the code. When a link is pointing to location inaccessible to build user (e.g. "/root/something"), filepath.is_file() throws "PermissionError: [Errno 13] Permission denied". Fix this by first checking if it is a link. (From OE-Core rev: 26f35f866cf7888431963cf4fc5d2019cd28de74) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 3) default config 4) add to local.conf IMAGE_INSTALL:append = " tcl8" IMAGE_INSTALL:append = " tcl" 5) bitbake core-image-minimal 6) pokyuser@hp-zbook-15-g6-17:/workdir/build/poky-master-test$ bitbake core-image-minimal -c populate_sdk_ext Loading cache: 100% |##########################################################################################################################################################| Time: 0:00:01 Loaded 1886 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.9.1" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "x86_64-poky-linux" MACHINE = "qemux86-64" DISTRO = "poky" DISTRO_VERSION = "5.2.66" TUNE_FEATURES = "m64 core2" TARGET_FPU = "" meta meta-poky meta-yocto-bsp = "master:b18ada3ac99c3c13b057054aec633526cddbe664" Sstate summary: Wanted 33 Local 0 Mirrors 0 Missed 33 Current 2674 (0% match, 98% complete)#################################################################### | ETA: 0:00:00 Initialising tasks: 100% |#####################################################################################################################################################| Time: 0:00:06 NOTE: Executing Tasks ERROR: core-image-minimal-1.0-r0 do_sdk_depends: The file /usr/lib/tclConfig.sh is installed by both tcl8 and tcl, aborting ERROR: Logfile of failure stored in: /workdir/build/poky-master-test/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/log.do_sdk_depends.3071555 ERROR: Task (/workdir/sources/poky-master/meta/recipes-core/images/core-image-minimal.bb:do_sdk_depends) failed with exit code '1' NOTE: Tasks Summary: Attempted 5628 tasks of which 5575 didn't need to be rerun and 1 failed. Summary: 1 task failed: /workdir/sources/poky-master/meta/recipes-core/images/core-image-minimal.bb:do_sdk_depends log: /workdir/build/poky-master-test/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/log.do_sdk_depends.3071555 Summary: There was 1 ERROR message, returning a non-zero exit code. It also happens with poky master latest:
$ bitbake core-image-minimal -c populate_sdk_ext
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################################| Time: 0:00:24
Parsing of 924 .bb files complete (0 cached, 924 parsed). 1886 targets, 49 skipped, 0 masked, 0 errors.
Removing 2 recipes from the core2-64 sysroot: 100% |###########################################################################################################################| Time: 0:00:00
Removing 2 recipes from the qemux86_64 sysroot: 100% |#########################################################################################################################| Time: 0:00:00
Removing 2 recipes from the x86_64 sysroot: 100% |#############################################################################################################################| Time: 0:00:00
Removing 1 recipes from the x86_64_linux sysroot: 100% |#######################################################################################################################| Time: 0:00:00
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.12.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "5.2"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "master:e894acce6ede8bedafc1859ea0345ee6d80e9c74"
Sstate summary: Wanted 1736 Local 0 Mirrors 0 Missed 1736 Current 965 (0% match, 35% complete)################################################################# | ETA: 0:00:00
Removing 150 stale sstate objects for arch qemux86_64: 100% |##################################################################################################################| Time: 0:00:00
Removing 6 stale sstate objects for arch x86_64_x86_64-nativesdk: 100% |#######################################################################################################| Time: 0:00:00
Removing 477 stale sstate objects for arch x86_64_linux: 100% |################################################################################################################| Time: 0:00:01
Removing 551 stale sstate objects for arch core2-64: 100% |####################################################################################################################| Time: 0:00:01
Removing 30 stale sstate objects for arch allarch: 100% |######################################################################################################################| Time: 0:00:00
Removing 7 stale sstate objects for arch x86_64_x86_64_linux: 100% |###########################################################################################################| Time: 0:00:00
Removing 471 stale sstate objects for arch x86_64: 100% |######################################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: core-image-minimal-1.0-r0 do_sdk_depends: The file /usr/lib/tclConfig.sh is installed by both tcl8 and tcl, aborting
ERROR: Logfile of failure stored in: /workdir/build/poky-master-test/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/log.do_sdk_depends.193260
ERROR: Task (/workdir/sources/poky-master/meta/recipes-core/images/core-image-minimal.bb:do_sdk_depends) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5616 tasks of which 3177 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/workdir/sources/poky-master/meta/recipes-core/images/core-image-minimal.bb:do_sdk_depends
log: /workdir/build/poky-master-test/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/log.do_sdk_depends.193260
Summary: There was 1 ERROR message, returning a non-zero exit code.
Yoann has offered to work on this issue. I can reproduce in my setup. I'll look into it. @Yoann Congal I think it might be the way '-c populate_sdk_ext' detects dependencies. This might be a shot in the dark, but it's possible to create a classic SDK and also meta-ide-support SDK without this issue. Bulk move to 6.0 M1 Created attachment 5161 [details]
patch which make it build
I am not sure how it behaves in runtime, but at least I got it to build in the meantime with the attached patch.
Hmm there are still some problems. Not sure how I made it build before ;) Created attachment 5162 [details]
new patch
I know this is an ugly patch, but at least it makes it build with the standalone extensible SDK. Having said that, I think it is right not to build, because the same files are installed by the different tcl packages.
Robert, did you send the patches to the mailing lists? (I'm unassigning myself to make it clear that I don't have the time to work on this, sorry) It would be nice to only have one tcl recipe... otherwise fix the install. We could get rid of the older version headers from the SDK for example since it's likely only required by expect. |