rust-lang / rust-lang/rustc_codegen_gcc

`rustix` error when building helix

Open
#938 1 comment 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

When trying to build helix from source as an experiment, I encountered this error:

libgccjit.so: error: : gcc_jit_block_add_assignment: mismatching types: assignment to input_register (type: __int8_t *) from (void *)loadedValue2 (type: void *)
error: failed to build archive at `helix/target/debug/deps/librustix-f2aafd20cac1c040.rlib`: failed to open object file: No such file or directory (os error 2)

This seems to be similar to #792 which was closed by #874.

rustup --version
rustup 1.29.1 (69d754521 2026-07-06)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: the currently active `rustc` version is `rustc 1.97.1 (8bab26f4f 2026-07-14)`

rustc +nightly --version
rustc 1.99.0-nightly (09ee43b2d 2026-07-27)
rustix@0.38.44
rustix@1.1.4

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 helix build with rustix 0.38.44 and 1.1.4 using the listed stable and nightly Rust versions. Compare the failure with #792 and the resolution in #874, then identify whether the gcc_jit_block_add_assignment type mismatch is still the same class of issue. Done means the relevant helix build completes without the rustix archive error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.