Skip to content

libgccjit interrupt service routine error in psm v0.1.26 and stacker v0.1.21 #675

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

Open
FractalFir opened this issue May 16, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@FractalFir
Copy link
Contributor

This is an issue I discovered when building a stage 2 compiler.

PSM error:

libgccjit.so: error: : interrupt service routine can only have a pointer argument and an optional integer argument
libgccjit.so: error: : interrupt service routine must return ‘void’
error: failed to build archive at `/home/michal/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libpsm-d68540d796768164.rlib`: failed to open object file: No such file or directory (os error 2)

stacker error:

libgccjit.so: error: : interrupt service routine should have a pointer as the first argument
error: failed to build archive at `/home/michal/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libstacker-1003f9d5747170ec.rlib`: failed to open object file: No such file or directory (os error 2)

Question: what is an "interrupt service routine" in the context of GCC?

@antoyo
Copy link
Contributor

antoyo commented May 16, 2025

This might be related to this PR.

I guess you could try reverting this stuff and see if this fixes your issue.

You can find more info about this attribute here.

@FractalFir
Copy link
Contributor Author

This bug is a bit odd... I can't find where psm or stacker use interrupt calling convention.

I wonder if this is a stacker bug, or a cg_gcc bug.

@antoyo antoyo added the bug Something isn't working label May 29, 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
Projects
None yet
Development

No branches or pull requests

2 participants