Skip to content

linking hexagon-unknown-linux-musl target failed #154686

@Wyvern

Description

@Wyvern

rustc 1.96.0-nightly (48cc71e 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions