`non-host` redox target linking error
Open
Nobody has claimed this yet.
A-linkage
needs-triage
O-redox
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
rustc 1.100.0-nightly (0fc141305 2026-09-11)
build with -Zbuild-std
target affected:
aarch64-unknown-redox
riscv64gc-unknown-redox
error content:
error: linking with `cc` failed: exit status: 1
│
├ note: "cc" "-Wl,--dynamic-list" "-Wl,/home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/rustcxWmrsE/list" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/compiler_builtins/9a984ad82c4b2ac4/out/libcompiler_builtins-9a984ad82c4b2ac4.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lc" "-L" "/home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/rustcxWmrsE/raw-dylibs" "-lgcc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-o" "/home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/img" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs" "-Wl,--enable-new-dtags,-z,origin"
├ note: some arguments are omitted. use `--verbose` to show all linker arguments
╰ note: /usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/img.img.a081186e0129b9e4-cgu.0.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/img.img.a081186e0129b9e4-cgu.0.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/img.img.a081186e0129b9e4-cgu.0.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/img.img.a081186e0129b9e4-cgu.0.rcgu.o: Relocations in generic ELF (EM: 183)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/aarch64-unknown-redox/src/build/img/4884708b9cbbbf3a/out/img.img.a081186e0129b9e4-cgu.0.rcgu.o: Relocations in generic ELF (EM: 183)
...
error: linking with `cc` failed: exit status: 1
│
├ note: "cc" "-Wl,--dynamic-list" "-Wl,/home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/rustcpknadA/list" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/compiler_builtins/c2aa75f2fbc4a911/out/libcompiler_builtins-c2aa75f2fbc4a911.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lc" "-L" "/home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/rustcpknadA/raw-dylibs" "-lgcc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-o" "/home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs" "-Wl,--enable-new-dtags,-z,origin"
├ note: some arguments are omitted. use `--verbose` to show all linker arguments
╰ note: /usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img.img.e75ba7e628e01c07-cgu.0.rcgu.o: Relocations in generic ELF (EM: 243)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img.img.e75ba7e628e01c07-cgu.0.rcgu.o: Relocations in generic ELF (EM: 243)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img.img.e75ba7e628e01c07-cgu.0.rcgu.o: Relocations in generic ELF (EM: 243)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img.img.e75ba7e628e01c07-cgu.0.rcgu.o: Relocations in generic ELF (EM: 243)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img.img.e75ba7e628e01c07-cgu.0.rcgu.o: Relocations in generic ELF (EM: 243)
/usr/bin/x86_64-linux-gnu-ld.bfd: /home/runner/work/Img/Img/build-dir/riscv64gc-unknown-redox/src/build/img/bbd18c0b48dfa58f/out/img.img.e75ba7e628e01c07-cgu.0.rcgu.o: Relocations in generic ELF (EM: 243)
...
Looks like it's redoxer linker misconfig.
All non-host redox targets build failed, only host (x86-64) works as expectd.
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 by reproducing the reported rustc 1.100.0-nightly build with -Zbuild-std for aarch64-unknown-redox and riscv64gc-unknown-redox. Investigate the redoxer linker configuration and compare it with the working x86-64 host build; done means both non-host Redox targets link successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100