rust-lang / rust-lang/rustc_codegen_gcc
Multilib support
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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