-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Nightly: internal compiler error compiling robigalia #48119
Comments
Similiar error message: #47858 |
The backtrace looks a bit different than #47858 though, I'll keep this open. |
This error first appeared in rustc 1.24.0-nightly (1abeb43 2017-12-27) |
I think I tracked this down to commit bfbb1f5 for #46479. I compiled this commit with debug-assertions and hit this:
|
I think the root cause of this is rustc is incorrectly attempting to monomorphize the lang_start function |
hmm no that's not it, not that simple. |
Pinging @bkchr Here is robigalia's start lang item function defined in crate #[lang = "start"]
fn lang_start(main: *const u8, _argc: isize, _argv: *const *const u8) -> isize {
unsafe {
core::intrinsics::transmute::<_, fn()>(main)();
}
panic!("Root server shouldn't ever return from main!");
} Not sure why this is causing problems. |
I think this is the same issue as #47040 |
I've modified robigalia to use the new lang_start format and am now getting an llvm assert which I assume is similar to the current problem in #47040
|
The llvm assert was generated when I had this signature for lang_start, from the RFC, returning !: fn lang_start<T: Termination>(main: fn() -> T, _argc: isize, _argv: *const *const u8) -> ! To get it to work I had to make it use the same signature as the one in the standard library, where it returns isize: fn lang_start<T: Termination + 'static>(main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize |
@Natrocx fix merged to robigalia sel4-start master |
@canarysnort01 sorry for the inconveniences. |
@bkchr Ah, I see. The rfc kind of read like the changes were opt in so I was bit confused here, thanks for letting me know. |
Sounds like this is resolved, so closing. |
While compiling the sel4 project from robigalia (GitLab URL: https://gitlab.com/robigalia ; website URL: http://robigalia.org) an internal compiler error occurred.
Error Message:
Full Backtrace: https://pastebin.com/pJqkYpJS
No idea at what file it failed sorry
The text was updated successfully, but these errors were encountered: