* ti-cgt-pru_2.3.3 nativesdk patch
@ 2025-07-24 23:10 Jared Weyer
0 siblings, 0 replies; only message in thread
From: Jared Weyer @ 2025-07-24 23:10 UTC (permalink / raw)
To: meta-ti@lists.yoctoproject.org
[-- Attachment #1.1: Type: text/plain, Size: 4667 bytes --]
Hi,
When adding pru cgt build tools to my host SDK with:
TOOLCHAIN_HOST_TASK:append = " nativesdk-apc-sdk nativesdk-ti-cgt-pru"
I get the following error:
ERROR: aec-headless-image-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/sdk/image/etc/yum.repos.d --installroot=/home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/sdk/image --setopt=logdir=/home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/temp --repofrompath=oe-repo,/home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/oe-sdk-repo --nogpgcheck install nativesdk-apc-sdk nativesdk-packagegroup-sdk-host nativesdk-ti-cgt-pru packagegroup-cross-canadian-aec-am6442' returned 1:
DNF version: 4.19.0
cachedir: /home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/sdk/image/var/cache/dnf
Added oe-repo repo from /home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/oe-sdk-repo
User-Agent: constructed: 'libdnf (Ubuntu 20.04; generic; Linux.x86_64)'
repo: using cache for: oe-repo
oe-repo: using metadata from Thu 24 Jul 2025 10:59:14 PM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
Problem: conflicting requests
- nothing provides ld-linux.so.2 needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides ld-linux.so.2(GLIBC_2.3) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libc.so.6(GLIBC_2.3) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libdl.so.2 needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libdl.so.2(GLIBC_2.0) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libdl.so.2(GLIBC_2.1) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libm.so.6 needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libm.so.6(GLIBC_2.0) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libpthread.so.0 needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libpthread.so.0(GLIBC_2.0) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libpthread.so.0(GLIBC_2.1) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libpthread.so.0(GLIBC_2.2) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libpthread.so.0(GLIBC_2.2.3) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
- nothing provides libpthread.so.0(GLIBC_2.3.2) needed by nativesdk-ti-cgt-pru-2.3.3-r0.x86_64_nativesdk from oe-repo
(try to add '--skip-broken' to skip uninstallable packages)
ERROR: Logfile of failure stored in: /home/jweyer/source/repos/yocto/meta-aec-build-env/build/tmp-aec/work/aec_am6442-phytec-linux/aec-headless-image/1.0/temp/log.do_populate_sdk.161576
ERROR: Task (/home/jweyer/source/repos/yocto/meta-aec-build-env/sources/poky/../meta-aec-distro/recipes-images/images/aec-headless-image.bb:do_populate_sdk) failed with exit code '1'
Since the cgt build tools are all statically linked executables this seems like a Yocto bug.
I fixed the issue with:
SKIP_FILEDEPS:class-nativesdk = "1"
From Yocto documentation:
SKIP_FILEDEPS<https://docs.yoctoproject.org/ref-manual/variables.html#term-SKIP_FILEDEPS><https://docs.yoctoproject.org/ref-manual/variables.html#term-SKIP_FILEDEPS>
Enables removal of all files from the “Provides” section of an RPM package. Removal of these files is required for packages containing prebuilt binaries and libraries such as libstdc++ and glibc.
I've attached a patch. Please let me know if you believe there is a better approach for fixing this issue.
Thanks,
Jared
[-- Attachment #1.2: Type: text/html, Size: 12007 bytes --]
[-- Attachment #2: 0001-fix-cgt-pru-dependency-issues.patch --]
[-- Type: application/octet-stream, Size: 830 bytes --]
From 57ac804493db2913dc37306c53059a5f57a674f3 Mon Sep 17 00:00:00 2001
From: jweyer <jweyer@aecontrols.com>
Date: Thu, 24 Jul 2025 16:01:25 -0700
Subject: [PATCH] fix cgt pru dependency issues
Signed-off-by: jweyer <jweyer@aecontrols.com>
---
| 2 ++
1 file changed, 2 insertions(+)
--git a/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb
index 46bc27b9..d25bf384 100644
--- a/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb
+++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb
@@ -47,4 +47,6 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps"
+SKIP_FILEDEPS:class-nativesdk = "1"
+
BBCLASSEXTEND = "native nativesdk"
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-24 23:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 23:10 ti-cgt-pru_2.3.3 nativesdk patch Jared Weyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.