dgilmore changed the topic of #fedora-riscv to: Fedora on RISC-V https://fedoraproject.org/wiki/Architectures/RISC-V || Logs: https://libera.irclog.whitequark.org/fedora-riscv || Alt Arch discussions are welcome in #fedora-alt-arches
davidlt_ has joined #fedora-riscv
<davidlt[m]> Kernel build finished overnight!
<davidlt[m]> kernel-tools are cooking, kernel-headers are up-to-date.
davidlt_ has quit [Ping timeout: 252 seconds]
davidlt_ has joined #fedora-riscv
<davidlt[m]> Conan Kudo: I assume Fedora Asahi needs CONFIG_RUST=y. Did you try enabling that on top of 6.2?
<Eighth_Doctor> yes
<Eighth_Doctor> it currently works for aarch64 and is broken for other arches
<davidlt[m]> I see
<Eighth_Doctor> I broke the x86 kernel build with rust enabled
<davidlt[m]> I might try to enable that in riscv64 land after LLVM 16 + new Rust.
<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)
iooi has joined #fedora-riscv
<Eighth_Doctor> Right, I'm not doing that
<thefossguy> More info here, just in case: https://docs.kernel.org/rust/quick-start.html
<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]
davidlt_ has quit [Ping timeout: 240 seconds]
davidlt_ has joined #fedora-riscv
davidlt_ has quit [Ping timeout: 255 seconds]