wasmerio/wasmer · error

No program akin to `objcopy` found I searched for these prog

Error message

No program akin to `objcopy` found
I searched for these programs in your path: {}

What it means

Error "No program akin to `objcopy` found I searched for these programs in your path: {}" thrown in wasmerio/wasmer.

Source

Thrown at lib/api/build.rs:221

        .generate()
        .expect("Unable to generate bindings for `v8`!");

    bindings
        .write_to_file(out_path.join("v8_bindings.rs"))
        .expect("Couldn't write bindings");

    let objcopy_names = ["llvm-objcopy", "objcopy", "gobjcopy"];

    let mut objcopy = None;
    for n in objcopy_names {
        if which::which(n).is_ok() {
            objcopy = Some(n);
            break;
        }
    }

    if objcopy.is_none() {
        panic!(
            "No program akin to `objcopy` found\nI searched for these programs in your path: {}",
            objcopy_names.join(", ")
        );
    }

    let objcopy = objcopy.unwrap();

    let syms: Vec<String> = WEE8_RENAMED
        .lock()
        .expect("cannot lock WEE8_RENAMED")
        .iter()
        .map(|(old, new)| {
            // A bit hacky: we need a way to figure out if we're going to target a Mach-O
            // library or an ELF one to take care of the "_" in front of symbols.
            if cfg!(any(target_os = "macos", target_os = "ios")) {
                format!("--redefine-sym=_{old}={new}")
            } else {
                format!("--redefine-sym={old}={new}")

View on GitHub (pinned to 8c4b9ee9d3)

When it happens

Trigger: Thrown at lib/api/build.rs:221 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01). Data as JSON: /api/errors/a10e3496156c256d. Report an issue: GitHub.