Thread (13 messages) 13 messages, 3 authors, 5d ago

Re: [PATCH V16 4/7] rust/powerpc: Set min rustc version for powerpc

From: Mukesh Kumar Chaurasiya <hidden>
Date: 2026-06-02 07:16:12
Also in: lkml, llvm, rust-for-linux

On Wed, May 27, 2026 at 12:15:39PM +0100, Gary Guo wrote:
On Tue May 26, 2026 at 9:52 AM BST, Mukesh Kumar Chaurasiya wrote:
quoted
On Mon, May 25, 2026 at 08:16:53PM +0200, Miguel Ojeda wrote:
quoted
On Wed, May 20, 2026 at 8:48 AM Mukesh Kumar Chaurasiya (IBM)
[off-list ref] wrote:
quoted
Minimum `rustc` version required for powerpc is 1.95 as some critical
features required for compiling rust code for kernel are not there.
Which critical features?
Hey Miguel,

Right now i can only think of inline asm. I can rerun the whole thing
with 1.85 and figure out the issues with 1.85. I'll get back on this.
quoted
quoted
For example Stable inline asm support which got merged in 1.95.
It is not needed that the support is stable, but rather that
everything you may need works.
I wanted inline asm be stable, I was skeptical about inline asm to be
unstable and potentially messing up the whole system. That's the reason
I waited for the stable support to get merged before sending out this
patch series.
AFAIK inline asm is only unstable for archs for their surface syntax (i.e. name
of register and classes). The rest is just LLVM inline asm. If there're codegen
issues, you should gate on LLVM version instead (Rust supports multiple LLVM
versions in a single release and distro may use different LLVM than rustup's).

Best,
Gary
Hey Gary,

Sry about delayed response.
I'll check if the codegen has any issues. If yes we'll put a guard on
that. Meanwhile i'll also test out the 1.85 for any other issues. Thanks
for the help.

Regards,
Mukesh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help