rust-lang / rust-lang/rustc_codegen_gcc

Multilib support

Open
#779 0 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

When trying to wire up rustc_codegen_gcc in our packaging, I hit the following when trying to build multilib on x86_64 for i686 (i686-unknown-linux-gnu):

libgccjit.so: error: CPU you selected does not support x86-64 instruction set

This is because the GCC built by dist passes --disable-multilib. But I suspect more wiring may needed too. I see gcc/jit/jit-playback.cc:3514:add_multilib_driver_arguments at least, so libgccjit upstream seems to have some support for it.

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 with the multilib build path in dist and inspect gcc/jit/jit-playback.cc:3514:add_multilib_driver_arguments. Reproduce the x86_64-to-i686 build and trace the --disable-multilib configuration and any additional wiring needed. Done means multilib packaging builds successfully for i686-unknown-linux-gnu without the reported libgccjit error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.