Skip to contentSkip to conversation

python3-frozenlist: disable the support of ccache

PATCH In review [email protected] 2 participants 5 messages Aug 28, 2025 – Sep 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-frozenlist: disable the support of ccache

From: Changqing Li <[email protected]>

With ccache enable, python3-fronzenlist do_package_qa failed:
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/.debug/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist-dbg contains reference to TMPDIR [buildpaths]
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist contains reference to TMPDIR [buildpaths]

Although we have set -ffile-prefix-map, the buildpaths is not replaced.

---
 meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +2 -0
index 7d813a026c..363dab969e 100644
@@ -11,4 +11,6 @@ DEPENDS += " \
     python3-expandvars-native \
 "
 
+CCACHE_DISABLE = "1"
+
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 9 lines · Changqing Li via lists.openembedded.org

From: Changqing Li <[email protected]>

With ccache enable, python3-fronzenlist do_package_qa failed:
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/.debug/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist-dbg contains reference to TMPDIR [buildpaths]
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist contains reference to TMPDIR [buildpaths]

Although we have set -ffile-prefix-map, the buildpaths is not replaced.

Its not clear why this is happening. Can. you try doing a rebuild after cleaning sstate and ccache for this package alone ?

Quoted 28 lines
---
 meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +2 -1
index 7d813a026c..363dab969e 100644
@@ -11,4 +11,6 @@ DEPENDS += " \
     python3-expandvars-native \
 "
 
+CCACHE_DISABLE = "1"
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#119127): https://lists.openembedded.org/g/openembedded-devel/message/119127
Mute This Topic: https://lists.openembedded.org/mt/114930913/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 8 lines · Khem Raj

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 2 lines · Changqing Li via lists.openembedded.org

From: Changqing Li<[email protected]>

Quoted 8 lines
Quoted 6 lines

With ccache enable, python3-fronzenlist do_package_qa failed:
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/.debug/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist-dbg contains reference to TMPDIR [buildpaths]
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist contains reference to TMPDIR [buildpaths]

Although we have set -ffile-prefix-map, the buildpaths is not replaced.

Its not clear why this is happening. Can. you try doing a rebuild after cleaning sstate and ccache for this package alone ?

Hi, Khem

Thanks.  I did some tests according to your suggestion,  it turns out that:

1.  For clean project with ccache enabled,  bitbake python3-fronzenlist build successfully

2. For clean project, disable ccache, bitbake python3-fronzenlist, it will build successfully,

then, with the same project, I enabled ccache in local.conf with following config, then

bitbake python3-fronzenlist will failed with do_packge_qa error.

INHERIT += "ccache"

CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_TARGET_SYS}/${PN}

Can you give some suggestion about this issue?

Regards

Changqing

Quoted 29 lines
Quoted 29 lines
---
  meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++
  1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +2 -1
index 7d813a026c..363dab969e 100644
@@ -11,4 +11,6 @@ DEPENDS += " \
      python3-expandvars-native \
  "
 
+CCACHE_DISABLE = "1"
+
  BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#119127):https://lists.openembedded.org/g/openembedded-devel/message/119127 Mute This Topic:https://lists.openembedded.org/mt/114930913/1997914
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 32 lines · Changqing Li

On 8/28/25 22:24, Khem Raj wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Wed, Aug 27, 2025 at 11:45 PM Changqing Li via lists.openembedded.org <[email protected]> wrote:

From: Changqing Li <[email protected]>

With ccache enable, python3-fronzenlist do_package_qa failed:
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/.debug/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist-dbg contains reference to TMPDIR [buildpaths]
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist contains reference to TMPDIR [buildpaths]

Although we have set -ffile-prefix-map, the buildpaths is not replaced.

Its not clear why this is happening. Can. you try doing a rebuild after cleaning sstate and ccache for this package alone ?

Hi, Khem

Thanks. I did some tests according to your suggestion, it turns out that:

1. For clean project with ccache enabled, bitbake python3-fronzenlist build successfully

2. For clean project, disable ccache, bitbake python3-fronzenlist, it will build successfully,

then, with the same project, I enabled ccache in local.conf with following config, then

Quoted 7 lines

bitbake python3-fronzenlist will failed with do_packge_qa error.

INHERIT += "ccache"

CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_TARGET_SYS}/${PN}

Can you give some suggestion about this issue?

Try moving ccache outside TMPDIR, I have

CCACHE_TOP_DIR = "/mnt/b/yoe/master/build/ccache"

Keeping CCACHE_DIR out of ${TMPDIR} prevents the cache path itself
from being found by buildpaths.

Quoted 33 lines

Regards

Changqing

---
 meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +2 -1
index 7d813a026c..363dab969e 100644
@@ -11,4 +11,6 @@ DEPENDS += " \
     python3-expandvars-native \
 "
 
+CCACHE_DISABLE = "1"
+
 BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#119127): https://lists.openembedded.org/g/openembedded-devel/message/119127
Mute This Topic: https://lists.openembedded.org/mt/114930913/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 41 lines · Khem Raj

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 37 lines · Changqing Li

On 8/28/25 22:24, Khem Raj wrote:

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Wed, Aug 27, 2025 at 11:45 PM Changqing Li via lists.openembedded.org <[email protected]> wrote:

From: Changqing Li<[email protected]>

With ccache enable, python3-fronzenlist do_package_qa failed:
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/.debug/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist-dbg contains reference to TMPDIR [buildpaths]
ERROR: python3-frozenlist-1.7.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.13/site-packages/frozenlist/_frozenlist.cpython-313-x86_64-linux-gnu.so in package python3-frozenlist contains reference to TMPDIR [buildpaths]

Although we have set -ffile-prefix-map, the buildpaths is not replaced.

Its not clear why this is happening. Can. you try doing a rebuild after cleaning sstate and ccache for this package alone ?

Hi, Khem

Thanks. I did some tests according to your suggestion, it turns out that:

1. For clean project with ccache enabled, bitbake python3-fronzenlist build successfully

2. For clean project, disable ccache, bitbake python3-fronzenlist, it will build successfully,

then, with the same project, I enabled ccache in local.conf with following config, then

bitbake python3-fronzenlist will failed with do_packge_qa error.

INHERIT += "ccache"

CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_TARGET_SYS}/${PN}

Quoted 7 lines
Quoted 1 line

Can you give some suggestion about this issue?

Try moving ccache outside TMPDIR, I have

CCACHE_TOP_DIR = "/mnt/b/yoe/master/build/ccache"

Keeping CCACHE_DIR out of ${TMPDIR} prevents the cache path itself
from being found by buildpaths.

Hi, Khem

Thanks. I tried with CCACHE_TOP_DIR out of ${TMPDIR}, but it not works, since the path caused the qa issue is not CCACHE_TOP_DIR.

Here is the strings in .so, it seems that these headers path is added by the backend of pyproject-build.

$strings ./usr/lib/python3.13/site-packages/frozenlist/_frozenlist.cpython-313-x86_64-linux-gnu.so | grep poky ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/object.h ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/cpython/tupleobject.h ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/cpython/unicodeobject.h ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/cpython/longintrepr.h ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/cpython/listobject.h ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/cpython/dictobject.h ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13 ../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/cpython /usr/include/c++/15.2.0/x86_64-poky-linux/bits
/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/15.2.0/include

../../../yocto/builds/test/tmp/work/x86-64-v3-poky-linux/python3-frozenlist/1.7.0/recipe-sysroot/usr/include/python3.13/internal

In general, we use -ffile-prefix-map to replace the buildpath, but when ccache enabled, the replacement not works well.

Besides, I should had make some mistakes during last test, I tried several times today, with clean project, enabled ccache, I can

reproduce this error.

Regards

Changqing

Quoted 33 lines
Quoted 33 lines

Regards

Changqing

---
  meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++
  1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +2 -1
index 7d813a026c..363dab969e 100644
@@ -11,4 +11,6 @@ DEPENDS += " \
      python3-expandvars-native \
  "
 
+CCACHE_DISABLE = "1"
+
  BBCLASSEXTEND = "native nativesdk"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#119127):https://lists.openembedded.org/g/openembedded-devel/message/119127 Mute This Topic:https://lists.openembedded.org/mt/114930913/1997914
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-