Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust compiler 'rustc' is too new. #2

Closed
stappersg opened this issue Sep 28, 2022 · 1 comment
Closed

Rust compiler 'rustc' is too new. #2

stappersg opened this issue Sep 28, 2022 · 1 comment

Comments

@stappersg
Copy link
Contributor

Hi,

Here a curious newbie reporting this:

$ make LLVM=1 rustavailable
***
*** Rust compiler 'rustc' is too new. This may or may not work.
***   Your version:     1.65.0
***   Expected version: 1.62.0
***
Rust is available!
$

That is with

$ git branch --verbose | grep '^*'
* rust-e1000 263f16d67d52 rust: add dma and io mapping
$

in https://github.com/fujita/linux/tree/rust-e1000

I get a succesfull (but yet untested) build with make CC=clang.

And with make LLVM=1 in the Linux source directory I get:

$ make LLVM=1
  SYNC    include/config/auto.conf.cmd
scripts/Kconfig.include:40: linker 'ld.lld' not found
make[2]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[1]: *** [Makefile:693: syncconfig] Error 2
make: *** [Makefile:795: include/config/auto.conf.cmd] Error 2

$ 

Purpose / idea of this report is triggering responses like

  • works for me
  • seeing the same
  • over here also, using ..... as workaround
@fujita
Copy link
Owner

fujita commented Sep 29, 2022

Before compiling rust-e1000, you need the specific versions of rustc, lld, etc to build kernel with Rust support. You can build rust-e1000 with these versions.

@fujita fujita closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants