Skip to main content
Associate II
January 23, 2026
Question

Rebuilding the X-LINUX-QT starter package failed due to an incorrect path (/usr/usr/bin/env) in cbortag.py.

  • January 23, 2026
  • 1 reply
  • 586 views

Hello everyone !

device: STM32MP257F-DK

We build the X-LINUX-QT starter package following in steps
1.X-LINUX-QT starter package

repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11

repo sync

2.Install X-LINUX-QT distribution package v2.2.0

 git clone -b v2.2.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt

 git clone -b 6.8.3 https://code.qt.io/yocto/meta-qt6.git layers/meta-qt6

3.Setup the build environment

DISTRO=openstlinux-weston MACHINE=stm32mp2 BSP_DEPENDENCY="layers/meta-qt6 layers/meta-st/meta-st-x-linux-qt" source layers/meta-st/scripts/envsetup.sh

4.building

 bitbake st-image-qt package-index

then, we have an error message as follows:

 

Spoiler
ERROR: qtbase-6.8.3-r0 do_package_qa: QA Issue: /usr/share/examples/corelib/serialization/cbordump/cbortag.py contained in package qtbase-examples requires /usr/usr/bin/env, but no providers found in RDEPENDS:qtbase-examples? [file-rdeps]
ERROR: qtbase-6.8.3-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/leonsu/Developer/STM32MPU-Ecosystem-v6.1.1/Distribution-Package/Qt6.8.3-Package/build-openstlinuxweston-stm32mp2/tmp-glibc/work/stm32mp2-ostl-linux/qtbase/6.8.3/temp/log.do_package_qa.1337636
ERROR: Task (/home/leonsu/Developer/STM32MPU-Ecosystem-v6.1.1/Distribution-Package/Qt6.8.3-Package/layers/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_package_qa) failed with exit code '1'

All cbortag.py files in the package were updated, replacing /usr/usr/bin/env with /usr/bin/env, as follows:

 

Spoiler
head -n 1 ./tmp-glibc/work/cortexa35-ostl-linux/qtquick3dphysics/6.8.3/recipe-sysroot/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/work/cortexa35-ostl-linux/qtpositioning/6.8.3/recipe-sysroot/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/work/cortexa35-ostl-linux/qtlocation/6.8.3/recipe-sysroot/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/work/cortexa35-ostl-linux/qtpdf/6.8.3/recipe-sysroot/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/work/x86_64-nativesdk-ostl_sdk-linux/nativesdk-qtbase/6.8.3/git/examples/corelib/serialization/cbordump/cbortag.py
#!/bin/env python3
head -n 1 ./tmp-glibc/work/stm32mp2-ostl-linux/qtbase/6.8.3/sysroot-destdir/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/work/stm32mp2-ostl-linux/qtbase/6.8.3/package/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/work/stm32mp2-ostl-linux/qtbase/6.8.3/packages-split/qtbase-examples/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3
head -n 1 ./tmp-glibc/sysroots-components/stm32mp2/qtbase/usr/share/examples/corelib/serialization/cbordump/cbortag.py
#!/usr/bin/env python3

However, we encountered the same error message. Could anyone provide us with some suggestions? Thank you in advance.

 

 

 

 

1 reply

LeonSuAuthor
Associate II
January 23, 2026

We discovered the bug in the qtbase_git.bb file between lines 202 and 203. 

If /usr/bin/env already exists, it will become /usr/usr/bin/env. Therefore, we marked lines 202–203 in the qtbase_git.bb file. This time, the build completed successfully.

PPAGE.13
ST Employee
February 6, 2026

I also had to do the same on my side and commented qt_base_git.bb lines.
There is an issue in Qt build mechanism. This could be pointed out to Qt support.
I don't have today a clean solution.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PPAGE.13
ST Employee
February 18, 2026

Please use this patch over "meta-st-x-linux-qt" layer.

I am going to update github branches.

BR,

Philippe.

 

Text section to be copied in a .patch file and apply with 'git am' command:

 

From b4f4d26b3e53359f2179102271f5f1e31f5b9328 Mon Sep 17 00:00:00 2001
From: Philippe PAGE <philippe.page@st.com>
Date: Wed, 18 Feb 2026 09:55:40 +0100
Subject: [PATCH] Fix Qt cbortag.py build issue

---
recipes-qt/qt6/qtbase_git.bbappend | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/recipes-qt/qt6/qtbase_git.bbappend b/recipes-qt/qt6/qtbase_git.bbappend
index d16605b..be10a67 100644
--- a/recipes-qt/qt6/qtbase_git.bbappend
+++ b/recipes-qt/qt6/qtbase_git.bbappend
@@ -32,3 +32,11 @@ QT_CONFIG_FLAGS:remove:stm32mp2common = "-no-opengles3"
QT_CONFIG_FLAGS:append:stm32mp2common = " -opengles3"

QT_QPA_EGLFS_INTEGRATION ?= ""
+
+# Patch to fix building issue
+do_install:append() {
+ if [ -e ${D}${QT6_INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump/cbortag.py ]; then
+ sed -i ${D}${QT6_INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump/cbortag.py \
+ -e 's|/usr/usr/bin/env|/usr/bin/env|'
+ fi
+}
--
2.34.1

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.