-
Notifications
You must be signed in to change notification settings - Fork 105
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
Problem to build with #![no_std] #328
Comments
|
Hello @bjorn3. Thanks for answering! For use in no_std, in which it requires the main(int, const char **), what would be the way to make this return? I appreciate the help! |
You could just be lazy and use |
Thanks for answering @thepowersgang! It worked perfectly like here, but then the following error appeared:
I carried out other tests on this, but without success either. Thanks! |
That looks like you have a function tagged with |
|
Thanks for the answers! So, but then another problem would arise... I removed the panic handlers and alloc errors, and then the specific error disappeared. But then another problem appeared, which I believe is correct in relation to type transformation Error:
Code:
This code was supposed to work, correct? I really appreciate your help, thank you! |
That's just a disagreement between mrustc's generated |
Hello @thepowersgang Thanks for the answer! Sorry for the delay, I've been very busy these days... I was able to compile it by removing the #[no_mangle], now it compiles perfectly! Just one detail, to feed via another gcc, would it be just using the generated .c file? Or would there be some other dependency generated in the output folder? I thank the help of all you! |
The gcc arguments for each |
Thanks for the answer @thepowersgang. Now it is much clearer about how mrustc works. I would like to congratulate you for your work! Just one more question, is there any way to generate C code without previously compiling it? I would compile it with another gcc for another architecture... Thanks and again, great job! |
mrustc has basic support for cross-compiling - or you could set |
Closing as I feel the original issue was addressed, and the most recent comment hasn't had any further replies :) |
Hello everybody!
Recently I was testing mrustc to compile using no_std and then I came across the following error:
I tested some other possible solutions, but so far nothing. So I would like to report this error, and perhaps receive a possible solution.
Specs:
Thanks!
The text was updated successfully, but these errors were encountered: