Skip to content

error: unable to run rust-objcopy: Bad CPU type in executable (os error 86) #145699

@Wyvern

Description

@Wyvern

Host: x86_64-apple-darwin
rustc 1.91.0-nightly (040a98af7 2025-08-20)

Compile with error:
error: unable to run rust-objcopy: Bad CPU type in executable (os error 86)

full output:

error: unable to run `rust-objcopy`: Bad CPU type in executable (os error 86)

error: could not compile `proc-macro2` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `libc` (build script) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-appleOperating system: Apple (macOS, iOS, tvOS, visionOS, watchOS)O-x86_64Target: x86-64 processors (like x86_64-*) (also known as amd64 and x64)T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions