openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-frozenlist: disable the support of ccache
@ 2025-08-28  6:45 changqing.li
  2025-08-28 14:24 ` [oe] " Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: changqing.li @ 2025-08-28  6:45 UTC (permalink / raw)
  To: openembedded-devel

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.

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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-frozenlist: disable the support of ccache
  2025-08-28  6:45 [meta-python][PATCH] python3-frozenlist: disable the support of ccache changqing.li
@ 2025-08-28 14:24 ` Khem Raj
  2025-08-29  3:30   ` Changqing Li
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2025-08-28 14:24 UTC (permalink / raw)
  To: changqing.li; +Cc: openembedded-devel

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]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-frozenlist: disable the support of ccache
  2025-08-28 14:24 ` [oe] " Khem Raj
@ 2025-08-29  3:30   ` Changqing Li
  2025-08-29  4:38     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Changqing Li @ 2025-08-29  3:30 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2933 bytes --]


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]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>

[-- Attachment #2: Type: text/html, Size: 4869 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [oe] [meta-python][PATCH] python3-frozenlist: disable the support of ccache
  2025-08-29  3:30   ` Changqing Li
@ 2025-08-29  4:38     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2025-08-29  4:38 UTC (permalink / raw)
  To: Changqing Li; +Cc: openembedded-devel

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]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-29  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28  6:45 [meta-python][PATCH] python3-frozenlist: disable the support of ccache changqing.li
2025-08-28 14:24 ` [oe] " Khem Raj
2025-08-29  3:30   ` Changqing Li
2025-08-29  4:38     ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).