| Message ID | 20250828064523.114335-1-changqing.li@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-python] python3-frozenlist: disable the support of ccache | expand |
On Wed, Aug 27, 2025 at 11:45 PM Changqing Li via lists.openembedded.org <changqing.li=windriver.com@lists.openembedded.org> wrote: > > From: Changqing Li <changqing.li@windriver.com> > > 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 ? > Signed-off-by: Changqing Li <changqing.li@windriver.com> > --- > meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb > index 7d813a026c..363dab969e 100644 > --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb > +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb > @@ -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: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
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 > <changqing.li=windriver.com@lists.openembedded.org> wrote: >> From: Changqing Li<changqing.li@windriver.com> >> >> 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 > >> Signed-off-by: Changqing Li<changqing.li@windriver.com> >> --- >> meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb >> index 7d813a026c..363dab969e 100644 >> --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb >> +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb >> @@ -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:openembedded-devel+owner@lists.openembedded.org >> Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] >> -=-=-=-=-=-=-=-=-=-=-=- >>
On Thu, Aug 28, 2025 at 8:30 PM Changqing Li <changqing.li@windriver.com> wrote: > > > 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 > <changqing.li=windriver.com@lists.openembedded.org> wrote: > > From: Changqing Li <changqing.li@windriver.com> > > 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? 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. > > Regards > > Changqing > > Signed-off-by: Changqing Li <changqing.li@windriver.com> > --- > meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb > index 7d813a026c..363dab969e 100644 > --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb > +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb > @@ -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: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On 8/29/25 12:38, 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 Thu, Aug 28, 2025 at 8:30 PM Changqing Li<changqing.li@windriver.com> wrote: >> >> 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 >> <changqing.li=windriver.com@lists.openembedded.org> wrote: >> >> From: Changqing Li<changqing.li@windriver.com> >> >> 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? > 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 > >> Regards >> >> Changqing >> >> Signed-off-by: Changqing Li<changqing.li@windriver.com> >> --- >> meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb >> index 7d813a026c..363dab969e 100644 >> --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb >> +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb >> @@ -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:openembedded-devel+owner@lists.openembedded.org >> Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] >> -=-=-=-=-=-=-=-=-=-=-=- >>
diff --git a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb index 7d813a026c..363dab969e 100644 --- a/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb +++ b/meta-python/recipes-devtools/python/python3-frozenlist_1.7.0.bb @@ -11,4 +11,6 @@ DEPENDS += " \ python3-expandvars-native \ " +CCACHE_DISABLE = "1" + BBCLASSEXTEND = "native nativesdk"