Building Rust-for-Linux on stable Rust
Building Rust-for-Linux on stable Rust
Posted Sep 24, 2024 20:50 UTC (Tue) by pizza (subscriber, #46)In reply to: Building Rust-for-Linux on stable Rust by cesarb
Parent article: Committing to Rust in the kernel
> It doesn't; the kernel uses several non-standard GCC extensions with no fallback, and requires a version of GCC or clang which is recent enough to provide all these required extensions.
While what you are saying is _technically_ correct, the details paint a very different story.
Linux only requires GCC 5.1, which was released *nine years* ago. Versus rustc 1.78, which only landed *four months* ago.
(Or you could use LLVM/Clang intstead of GCC, that requires a ~2.5-year old version (13.0.1)
Source: https://www.kernel.org/doc/html/next/process/changes.html