-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Set Up Rust - Compiling Issue with rlibc #414
Comments
I'm also experiencing this issue while following along. I wonder if xargo being in maintenance mode has anything to do with it? Maybe a feature has changed that's needed?
|
I am fairly new to Rust and OS programming and I think you might be right. I don't know for you but it could be that newest version of nightly makes the bug. |
@fabienpesquerel I'm assuming you ran
The location it's looking for definitly doesn't exist for me. Not sure if it's another component missing? |
@fabienpesquerel is correct: It is a bug in rustc: rust-lang/cargo#4905. To work around you can either by using an older nightly (see @stumpylog's comment) or set the
You can also update your Makefile: cargo:
- @xargo build --target $(target)
+ @RUST_TARGET_PATH="$(pwd)" xargo build --target $(target) |
The newest version of |
Awesome! Really cool that you decided to use Rust! Feel free to ask questions here or in our gitter channel. |
I added the |
Ok, thanks you very much, everything seems to work again ! (except that I have to do the |
It should be |
Yes, sorry for the typo. I don't know why, but |
I don't know about Seems like we can close this issue then. Thanks a lot for your help! |
First I would like to thank you so much for your work since it is very helpful and allows beginner (like me) to be introduce to OS programming. I am currently following a course in the topics of OS and I have to write a mini OS as an assignment. I decided to do it using Rust since we had to write a compiler for a Rust fragment last semester. Before I go to do my own little OS I try to catch as many infos as I can and that's how I discovered your awesome work. So again thanks a lot !
Here is my issue. I am currently in the Set Up Rust and everything compile just fine up to the moment rlibc decides to get involved. I get this message :
To be sure that I made no obvious mistakes, I downloaded and run your final version of the set up rust part and it seems that I get the same message :
So I guess that I somewhat messed up somewhere but I really can't find where. If anyone can enlighten me, I would be so happy !
P.S. : while reading the set up rust part I remark that the Makefile changes when you introduce xargo :
Above in this part, and instead of writing xargo, you create a kernel instruction in the makefile.
The text was updated successfully, but these errors were encountered: