-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
error: internal compiler error: unexpected failure on resolving external static #13325
Comments
Shouldn't the port from the C be written like extern {
static StackBase: u32;
fn main();
}
#[link_section=".isr_vector_temp"]
static ISRVectors: &'static [u32] = &'static [
&StackBase as u32,
main as u32,
]; Or is the external symbol actually a pointer itself? |
/cc @eddyb |
I no longer get an ICE:
|
@steveklabnik you need to use |
@farcaller can you refresh your code above to today's syntax? I was not quite able to get the reported error. |
The closest I managed to get is extern {
static StackBase: *const usize;
fn main();
}
#[link_section=".isr_vector_temp"]
static ISRVectors: &'static [*const usize] = &[
StackBase as *const usize,
main as *const usize,
]; That fails with |
Okay, well, in that case, I'll just give this a close, as the ICE probably went away with the old syntax. If anyone can reproduce, let me know! |
@farcaller make a wrapper for the pointer(s) and |
…oc_fix, r=y21 Provide more clear example for `WRONG_SELF_CONVENTION` Provide more clear example for `WRONG_SELF_CONVENTION` changelog: none
fails with the following backtrace:
Trying to port the following C code:
The text was updated successfully, but these errors were encountered: