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_main undefined on latest nightly #30

Open
iakshay opened this issue Apr 17, 2019 · 0 comments
Open

rust_main undefined on latest nightly #30

iakshay opened this issue Apr 17, 2019 · 0 comments

Comments

@iakshay
Copy link

iakshay commented Apr 17, 2019

I'm using linux kernel 4.20.6 and the following clang and rust versions[0]. The make command succeds for me, but I get the following warning. Seems like the module compiles successfully but the linking to rust library is broken.

WARNING: "rust_main" [/usr/src/rust.ko/build/hello.ko] undefined!

Let me know if more information is needed to debug this issue.
[0]:

[root@host rust.ko]# rustc --version
rustc 1.35.0-nightly (70f130954 2019-04-16) 
[root@host rust.ko]# clang --version
clang version 5.0.1 (tags/RELEASE_501/final) 
Target: x86_64-unknown-linux-gnu 
Thread model: posix  
InstalledDir: /opt/rh/llvm-toolset-7/root/usr/bin
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

1 participant