<Eighth_Doctor>
this is my commit stack on top of the Fedora 6.2.11 kernel
<Eighth_Doctor>
a number of the non-upstream commits include fixing the build with Rust 1.66+ and supporting current bindgen
<Eighth_Doctor>
upstream r4l only supports rust 1.57 and bindgen 0.56
<Eighth_Doctor>
and doesn't compile on Fedora at all
<davidlt[m]>
Ah, annoying
<Eighth_Doctor>
that's why I haven't submitted any of it to ARK
<Eighth_Doctor>
everything around rust for linux is a fragile mess
<Eighth_Doctor>
it breaks every time the compiler is updated because they use rust nightly features
<davidlt[m]>
I think I saw an email about increasing required Rust version
<davidlt[m]>
Some of needed stuff is no longer nightly IIUC
<Eighth_Doctor>
yeah, this was after complaints about holding back for the compiler in Debian 11
iooi has quit [Quit: iooi]
<thefossguy>
On the Ubuntu side, compiling with Rust support finishes without any errors but when I try to build the out of tree module for it, the module's Makefile says that some rust-specific file was not found in the kernel tree.
<thefossguy>
<Eighth_Doctor> "I broke the x86 kernel build..." <- I have a PKGBUILD on the Arch Linux side with the latest 6.3 RC (i guess its -rc7) which builds fine just fine with Rust support enabled. I can even build the out of tree module and insmod it, but the `rust-analyzer` make target is "not found" when building but I see it in the Makefile!
<thefossguy>
TL;DR: I sympathise :)
<Eighth_Doctor>
Yeah, it's difficult right now...
<thefossguy>
Plus, I'm using rustup to install the rustc version that is mentioned in the kernel scripts
<thefossguy>
rustup override set $(scripts/min-tool-version.sh rustc)
<Eighth_Doctor>
I'm trying to use the latest rust compiler
<Eighth_Doctor>
Since that's what we ship in Fedora
<thefossguy>
Use the correct version of rustc: `rustup override set $(scripts/min-tool-version.sh rustc)`
<thefossguy>
Get some components: `rustup component add rust-src rustfmt clippy`
<thefossguy>
Get the correct version of bindgen: `cargo install --locked --version $(scripts/min-tool-version.sh bindgen) bindgen`
<thefossguy>
Finally, check if Rust support is even available: make LLVM=1 rustavailable
iooi has quit [Client Quit]
<thefossguy>
On both Arch and Ubuntu, I had to install these packages for the kernel to even compile: llvm clang lld rustc (rustc is not present in ubuntu though)
iooi has joined #fedora-riscv
iooi has quit [Read error: Connection reset by peer]
iooi has joined #fedora-riscv
davidlt_ has quit [Ping timeout: 255 seconds]
davidlt_ has joined #fedora-riscv
NeilHanlon[m] has quit [Quit: You have been kicked for being idle]