Re: [PATCH] kbuild, rust: use -fremap-path-prefix to make paths relative

From: Miguel Ojeda
Date: Fri Mar 14 2025 - 17:36:52 EST


On Thu, Mar 13, 2025 at 1:35 AM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> Yes, I pushed.

I have noticed in linux-next that the flag triggers an ICE when
building the docs with `O=` -- reduced and reported to upstream here:

https://github.com/rust-lang/rust/issues/138520

Moreover, the flag was only added (to `rustdoc`, not `rustc`) starting
with 1.81.0, so we couldn't pass it anyway unconditionally to
`rustdoc` (it is OK for `rustc`).

In the meantime, the easiest to avoid both issues is to avoid passing
the flag when building docs -- I have sent a patch:

https://lore.kernel.org/rust-for-linux/20250314213333.2230670-1-ojeda@xxxxxxxxxx/

Cheers,
Miguel