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

Some global symbols cannot be used #585

Open
antoyo opened this issue Jan 2, 2025 · 0 comments
Open

Some global symbols cannot be used #585

antoyo opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working libgccjit requires a change in libgccjit

Comments

@antoyo
Copy link
Contributor

antoyo commented Jan 2, 2025

Because we use -fasm=intel, we cannot use some symbols like byte.

For instance, the following code:

#[no_mangle]
pub fn byte() {
    println!("Byte");
}

will cause the following error:

/tmp/libgccjit-Wnkc4D/fake.s: Assembler messages:
/tmp/libgccjit-Wnkc4D/fake.s: Error: .size expression for byte does not evaluate to a constant

See these:

@antoyo antoyo added bug Something isn't working libgccjit requires a change in libgccjit labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working libgccjit requires a change in libgccjit
Projects
None yet
Development

No branches or pull requests

1 participant