Re: Plumbers Testing MC potential topic: specialised toolchains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Miguel,

On 09/07/2024 01:07, Miguel Ojeda wrote:
> Hi Guillaume, all,
> 
> A couple of comments on the Rust bits for context.
> 
> On Tue, Jul 9, 2024 at 12:10 AM Guillaume Tucker <gtucker@xxxxxxxxxx> wrote:
>>
>> Then Rust support in the kernel is still work-in-progress, so the
>> rustc compiler version has to closely follow the kernel revision.
> 
> I wouldn't say the reason is that the support in the kernel is
> work-in-progress, but rather that `rustc` does not have all the
> features the kernel needs (and "stable").
> 
> In any case, the version pinning will soon be over -- we are likely
> going to have a minimum in v6.11:
> 
>     https://lore.kernel.org/rust-for-linux/20240701183625.665574-1-ojeda@xxxxxxxxxx/
> 
> We are starting small, but it is already enough to cover the major
> rolling distributions: Arch, Fedora, Debian Sid (outside the freeze
> period) and perhaps Testing too, Gentoo, Nix unstable, openSUSE
> Slowroll and Tumbleweed...
> 
> So, for some distributions, the Rust toolchain for the kernel can
> already be directly from the distribution. So maybe it doesn't count
> as "specialised" anymore? (at least for some distributions)
> 
> Of course, I know that you include cutting-edge too :)

Ah that's great news.  And yes I think it's still "specialised"
if you want to build linux-next or rust-for-linux using the
cutting-edge rustc with extra features.

So instead of always requiring the latest rustc, it would now
have a range of versions with a minimum supported in mainline.

>> The current state of the art are the kernel.org toolchains:
>>
>>   https://mirrors.edge.kernel.org/pub/tools/
>>
>> These are for LLVM and cross-compilers, and they already solve a
>> large part of the issue described above.  However, they don't
>> include Rust (yet), and all the dependencies need to be installed
>> manually which can have a significant impact on the build
> 
> Rust is there thanks to Nathan! :) Please see:
> 
>     https://mirrors.edge.kernel.org/pub/tools/llvm/rust/

Of course, sorry I think it's the second time I make the mistake
in a month of not looking one level down under llvm...  Nice!

Thanks,
Guillaume





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux