From: Harish Sadineni <Harish.Sadineni@windriver.com>
To: Yoann Congal <yoann.congal@smile.fr>,
Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Barker <paul@pbarker.dev>,
openembedded-core@lists.openembedded.org,
Randy.MacLeod@windriver.com, Sundeep.Kokkonda@windriver.com,
alistair.francis@wdc.com, bruce.ashfield@gmail.com,
elmehdi.younes@smile.fr
Subject: Re: [OE-core] [PATCH v5 07/15] kernel-yocto.bbclass: Disable ccache when rust-kernel is enabled
Date: Wed, 11 Feb 2026 17:17:50 +0530 [thread overview]
Message-ID: <92f80f63-5663-40b2-99c6-09b04a6d0c7b@windriver.com> (raw)
In-Reply-To: <DGBDWWXW2P0E.29TSC8ICL6TPO@smile.fr>
On 2/10/2026 8:54 PM, Yoann Congal 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 Feb 4, 2026 at 2:07 PM CET, Yoann Congal wrote:
>> Le mer. 4 févr. 2026 à 13:34, Richard Purdie <
>> richard.purdie@linuxfoundation.org> a écrit :
>>
>>> On Wed, 2026-02-04 at 13:31 +0100, Yoann Congal wrote:
>>>> On Wed Feb 4, 2026 at 1:05 PM CET, Paul Barker wrote:
>>>>> On Thu, 2026-01-29 at 08:39 -0800, Sadineni, Harish via
>>>>> lists.openembedded.org wrote:
>>>>>> From: Yoann Congal <yoann.congal@smile.fr>
>>>>>>
>>>>>> Currently, a ccache enabled build fails with:
>>>>>> | HOSTRUSTC scripts/generate_rust_target
>>>>>> | HOSTCC scripts/kallsyms
>>>>>> | HOSTCC scripts/sorttable
>>>>>> | HOSTCC scripts/asn1_compiler
>>>>>> | TOUCH include/generated/gcc-plugins.h
>>>>>> | DESCEND objtool
>>>>>> | error: multiple input filenames provided (first two filenames
>>> are gcc and
>>> .../tmp/work-shared/qemux86-64/kernel-source/scripts/generate_rust_target.rs)
>>>>>> when using ccache, value of "HOSTCC=cache gcc" when this value is
>>> passing
>>>>>> to rustc, It is thinking gcc is a input file. when ccache is not
>>> used "HOSTCC=gcc" is passed.
>>>>>> Disable ccache for kernel build if rust-kernel is enabled to
>>> workaround
>>>>>> this.
>>>>>>
>>>>>> Signed-off-by: El Mehdi YOUNES <elmehdi.younes@smile.fr>
>>>>>> Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
>>>>>> Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
>>>>> This patch is good, but we should try to get the issue resolved
>>> upstream
>>>>> if we can so that ccache can be used.
>>>>>
>>>>> Has this been reported upstream yet? Could you also open a bug in our
>>>>> bugzilla to track this?
>>>> Hello,
>>>>
>>>> For context, a lengthy discussion happened on this patch here:
>>>>
>>> https://lore.kernel.org/openembedded-core/CA+TGqK9Yd2WWKrhMkhofF-8N0cESCSefWD2DXr4sBO9fDQXyrg@mail.gmail.com/t/#u
>>>> And, sadly, we lack resources at the moment on our side to follow-up on
>>> this :-/
>>>
>>> Putting some links alongside this to more details would probably at
>>> least help a bit, particularly if ccache upstream documents it is
>>> imcompatible with rust...
>>>
>> Ok, I'll send a more documented patch to Harish for him to integrate in his
>> next iteration.
> I pushed a branch on contrib (v5 + this commit modified)
> https://git.openembedded.org/openembedded-core-contrib/log/?h=ycongal/kernel-rust
>
> The modified commit is:
> https://git.openembedded.org/openembedded-core-contrib/commit/?h=ycongal/kernel-rust&id=794bdad82933ee112452c8c08c917cf235e07ada
>
> Harish, are you OK taking this for your next iteration?
Yes, I'm fine with this.
Thanks
Harish
>
> Regards,
> --
> Yoann Congal
> Smile ECS
>
next prev parent reply other threads:[~2026-02-11 11:48 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 16:38 [PATCH v5 00/15] Enable rust support for linux kernel Harish.Sadineni
2026-01-29 16:38 ` [PATCH v5 01/15] linux-yocto: conditionally add clang/rust/bindgen-cli-native to DEPENDS Harish.Sadineni
2026-01-29 16:38 ` [PATCH v5 02/15] rust: install Rust library sources for 'make rustavailable' support Harish.Sadineni
2026-01-29 16:38 ` [PATCH v5 03/15] kernel-yocto: enable Rust kernel support via 'make rustavailable' Harish.Sadineni
2026-01-29 16:38 ` [PATCH v5 04/15] linux-yocto: enable Rust support in kernel configuration Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 05/15] kernel-yocto: Fix for buildpaths errors when rust is enabled for kernel Harish.Sadineni
2026-02-04 12:03 ` [OE-core] " Paul Barker
2026-01-29 16:39 ` [PATCH v5 06/15] make-mod-scripts: split `HOSTCC` flag to align with to linux-yocto Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 07/15] kernel-yocto.bbclass: Disable ccache when rust-kernel is enabled Harish.Sadineni
2026-02-04 12:05 ` [OE-core] " Paul Barker
2026-02-04 12:31 ` Yoann Congal
2026-02-04 12:34 ` Richard Purdie
2026-02-04 13:07 ` Yoann Congal
2026-02-10 15:24 ` Yoann Congal
2026-02-11 11:47 ` Harish Sadineni [this message]
2026-01-29 16:39 ` [PATCH v5 08/15] kernel-devsrc: copying rust-kernel source to $kerneldir/build Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 09/15] selftest/cases/runtime_test: Add test for Linux Rust sample Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 10/15] kernel.bbclass: Copy include/config/auto.conf in STAGING_KERNEL_BUILDDIR Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 11/15] kernel.bbclass: Export artifacts needed for out-of-tree Rust compilation Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 12/15] module.bbclass: Prepare out-of-tree rust module compilation Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 13/15] meta-skeleton: Add rust-out-of-tree-module recipe Harish.Sadineni
2026-01-29 16:39 ` [PATCH v5 14/15] make-mod-scripts: fix for buildpath issues with rust-out-of-tree compilation Harish.Sadineni
2026-02-04 12:08 ` [OE-core] " Paul Barker
2026-01-29 16:39 ` [PATCH v5 15/15] runtime_test: Add rust-out-of-tree selftest Harish.Sadineni
2026-01-29 16:47 ` [PATCH v5 00/15] Enable rust support for linux kernel Sadineni, Harish
2026-02-04 12:00 ` [OE-core] " Paul Barker
2026-02-04 12:24 ` Paul Barker
2026-02-04 13:52 ` Bruce Ashfield
2026-02-12 18:13 ` Harish Sadineni
2026-02-04 13:54 ` Bruce Ashfield
[not found] ` <188F412032A5A3F8.3408700@lists.openembedded.org>
2026-02-11 16:19 ` [OE-core] [PATCH v5 11/15] kernel.bbclass: Export artifacts needed for out-of-tree Rust compilation Harish Sadineni
2026-02-12 11:25 ` Yoann Congal
2026-02-12 12:44 ` Harish Sadineni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=92f80f63-5663-40b2-99c6-09b04a6d0c7b@windriver.com \
--to=harish.sadineni@windriver.com \
--cc=Randy.MacLeod@windriver.com \
--cc=Sundeep.Kokkonda@windriver.com \
--cc=alistair.francis@wdc.com \
--cc=bruce.ashfield@gmail.com \
--cc=elmehdi.younes@smile.fr \
--cc=openembedded-core@lists.openembedded.org \
--cc=paul@pbarker.dev \
--cc=richard.purdie@linuxfoundation.org \
--cc=yoann.congal@smile.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox