rust-lang / rust-lang/rustc_codegen_gcc

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

Open
#675 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
1.2k
Forks
105
Avg merge
8h 20m
Merged PRs (30d)
14

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the stage 2 compiler build described in the issue and compare the libgccjit diagnostics for psm v0.1.26 and stacker v0.1.21. Trace which generated functions trigger the interrupt-service-routine checks and determine whether the failure is in the codegen path or dependency interaction. Done means the reported psm and stacker build failures no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.