wasmerio/wasmer · error
{objcopy} failed with error code {}: {}
Error message
{objcopy} failed with error code {}: {} What it means
Error "{objcopy} failed with error code {}: {}" thrown in wasmerio/wasmer.
Source
Thrown at lib/api/build.rs:252
// 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}")
}
})
.collect();
let prefixed_v8_lib_path = v8_lib_dir.join("libv8prefixed.a");
let output = std::process::Command::new(objcopy)
.args(syms)
.arg(v8_lib_path.display().to_string())
.arg(prefixed_v8_lib_path.display().to_string())
.output()
.expect("objcopy command failed");
if !output.status.success() {
panic!(
"{objcopy} failed with error code {}: {}",
output.status,
String::from_utf8(output.stderr).unwrap()
);
}
println!("cargo:rustc-link-lib=static=v8prefixed");
}
#[allow(unused)]
fn main() {
#[cfg(feature = "v8")]
build_v8();
}
View on GitHub (pinned to 8c4b9ee9d3)
When it happens
Trigger: Thrown at lib/api/build.rs:252 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/7fbd063096a6caa1.
Report an issue: GitHub.