-
Notifications
You must be signed in to change notification settings - Fork 396
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
Build out-of-tree kernel module "hello world" #1082
Comments
It looks like the kernel was built with Ubuntu's version of rustc, but you are compiling the kernel module with a version of rustc you got from rustup. This is not allowed. You need to use the exact same rustc version for compiling the kernel module as was originally used for compiling the kernel. Try installing the rustc package using |
Thank you for the hint. It was able to build. |
I want to build an out-of-tree kernel module (hello world) that prints "Hello from Rust" when the module is loaded and print "Goodbye from Rust" when the module is unloaded.
Here is the Makefile:
The Rust code:
When i try to build the module with
make
, i get the error that rustc versions used to compile the crates core, kernel and compiler_builtins are incompatible with the one i'm using.Example:
The complete error message is attached.
Please any hints that can help me?
build_error.txt
The text was updated successfully, but these errors were encountered: