Skip to content

error: unrecognized instruction when compiling target hexagon-unknown-linux-musl #1282

Description

@Wyvern

rustc 1.99.0-nightly (d453bdd8f 2026-08-14)
target: hexagon-unknown-linux-musl
build with -Zbuild-std

error: unrecognized instruction
    ╰╴
note: instantiated into assembly here
    ╭▸ <inline asm>:279:1
    │
279 │ FUNCTION_BEGIN __save_r24_through_r27
    ╰╴━

error: unrecognized instruction
    ╰╴
note: instantiated into assembly here
    ╭▸ <inline asm>:281:1
    │
281 │ FALLTHROUGH_TAIL_CALL __save_r24_through_r27 __save_r24_through_r25
    ╰╴━

error: unrecognized instruction
    ╰╴
note: instantiated into assembly here
    ╭▸ <inline asm>:286:1
    │
286 │ FUNCTION_END __save_r24_through_r25
    ╰╴━

error: unrecognized instruction
    ╰╴
note: instantiated into assembly here
    ╭▸ <inline asm>:289:1
error: unrecognized instruction
    ╰╴
note: instantiated into assembly here
    ╭▸ <inline asm>:857:1
    │
857 │ FUNCTION_BEGIN __hexagon_modsi3
    ╰╴━

error: unrecognized instruction
    ╰╴
note: instantiated into assembly here
    ╭▸ <inline asm>:895:1
    │
895 │ FUNCTION_END __hexagon_modsi3
    ╰╴━

error: unrecognized instruction
     ╰╴
note: instantiated into assembly here
     ╭▸ <inline asm>:2662:1
     │
2662 │ FUNCTION_BEGIN __hexagon_divsi3
     ╰╴━

error: unrecognized instruction
     ╰╴
note: instantiated into assembly here
     ╭▸ <inline asm>:2710:1
     │
2710 │ FUNCTION_END __hexagon_divsi3
     ╰╴━

error: could not compile `compiler_builtins` (lib) due to 40 previous errors

it's different compared to #1240 , I'm not sure whether it's the same problem, but looks like LLVM mismatch.

Why previous 1.99 nightly such as 2026-08-13 and before can build successfully after #1241 fix landing until 2026-08-14, 1.99 has migrated to llvm23 quite some time.

Anyway, just report it for in-depth investigating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions