linking hexagon-unknown-linux-musl target failed
Open
Nobody has claimed this yet.
A-linkage
C-bug
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
rustc 1.96.0-nightly (48cc71ee8 2026-03-31)
when linking with target, got errors like below:
error: linking with `/Users/runner/work/Img/Img/hexagon/bin/hexagon-unknown-linux-musl-clang` failed: exit status: 1
│
╰ note: rust-lld: error: undefined symbol: __stat_time64
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(std::HbQhryZWmbHG)
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(std::H8n23gfMbJGX)
rust-lld: error: undefined symbol: __clock_gettime64
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(img::HgztxSACaNDv)
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(img::HgztxSACaNDv)
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(img::HgztxSACaNDv)
>>> referenced 15 more times
rust-lld: error: undefined symbol: __clock_nanosleep_time64
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(img::H6IR1ZqFUYuv)
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(img::H6IR1ZqFUYuv)
>>> referenced by ld-temp.o
>>> /Users/runner/work/Img/Img/build-dir/hexagon-unknown-linux-musl/src/build/img/7ba3b4f59ca0f2a1/out/img.lto.o:(img::H6IR1ZqFUYuv)
>>> referenced 2 more times
hexagon-unknown-linux-musl-clang: error: hexagon-ld command failed with exit code 1 (use -v to see invocation)
Misaligned constant address: 0x80000006 has alignment 2, but the memory access requires 4. The instruction has been replaced with a trap.
Misaligned constant address: 0x80000002 has alignment 2, but the memory access requires 4. The instruction has been replaced with a trap.
Misaligned constant address: 0x80000006 has alignment 2, but the memory access requires 4. The instruction has been replaced with a trap.
Misaligned constant address: 0x80000002 has alignment 2, but the memory access requires 4. The instruction has been replaced with a trap.
undefined symbol: __stat_time64
undefined symbol: __clock_gettime64
undefined symbol: __clock_nanosleep_time64
nightly 2026-03-30 works normally.
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 comparing the hexagon-unknown-linux-musl link command and undefined symbols between nightly 2026-03-30 and 2026-03-31. Investigate the target's rust-lld and hexagon-unknown-linux-musl-clang inputs, focusing on __stat_time64, __clock_gettime64, and __clock_nanosleep_time64. Done means the target links successfully on the newer nightly without these undefined-symbol errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100