Comment 10 for bug 1993183

Revision history for this message
Andrea Righi (arighi) wrote : Re: rustc linux kernel requirements

@xnox ohhh, I didn't notice rust-1.62-src was there, yeah that's great, I just verified that it is equivalent, even if the kernel check is complaining a bit:

ubuntu@lunar$ make RUSTC=rustc-1.62 BINDGEN=bindgen-0.56 rustavailable
***
*** Rust compiler 'rustc-1.62' is too new. This may or may not work.
*** Your version: 1.62.1
*** Expected version: 1.62.0
***
***
*** Source code for the 'core' standard library could not be found
*** at '/usr/lib/rust-1.62/lib/rustlib/src/rust/library/core/src/lib.rs'.
***
make: *** [Makefile:1833: rustavailable] Error 1

So I had to manually fix this doing:

 $ sudo mkdir /usr/lib/rust-1.62/lib/rustlib/src
 $ sudo ln -s /usr/src/rustc-1.62.1/ /usr/lib/rust-1.62/lib/rustlib/src/rust

Also, as you can see from the output above, the kernel is also complaining about using rustc being 1.62.1 and it's expecting 1.62.0. I'll test a full build to see if anything breaks.