{"record":{"id":"5bcbd5f587fbeda4","repo":"wasmerio/wasmer","slug":"failed-to-move-unpacked-wee8-lib-from-to-e","errorCode":null,"errorMessage":"failed to move unpacked wee8 lib from {} to {}: {err}","messagePattern":"failed to move unpacked wee8 lib from (.+?) to (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/api/build.rs","lineNumber":141,"sourceCode":"        if !staged_lib.is_dir() {\n            let _ = fs::remove_file(&archive_path);\n            panic!(\n                \"v8 archive {} did not contain a top-level `lib/` directory after unpack (expected {})\",\n                archive_path.display(),\n                staged_lib.display()\n            );\n        }\n        if v8_lib_dir.exists() {\n            fs::remove_dir_all(&v8_lib_dir).unwrap_or_else(|err| {\n                panic!(\n                    \"failed to remove existing wee8 lib dir {} before rename: {err}\",\n                    v8_lib_dir.display()\n                )\n            });\n        }\n        fs::rename(&staged_lib, &v8_lib_dir).unwrap_or_else(|err| {\n            let _ = fs::remove_file(&archive_path);\n            panic!(\n                \"failed to move unpacked wee8 lib from {} to {}: {err}\",\n                staged_lib.display(),\n                v8_lib_dir.display()\n            )\n        });\n    }\n\n    println!(\"cargo:rustc-link-search=native={}\", v8_lib_dir.display());\n\n    if cfg!(any(target_os = \"linux\",)) {\n        println!(\"cargo:rustc-link-lib=stdc++\");\n    } else if cfg!(target_os = \"windows\") {\n        println!(\"cargo:rustc-link-lib=winmm\");\n        println!(\"cargo:rustc-link-lib=dbghelp\");\n        println!(\"cargo:rustc-link-lib=shlwapi\");\n    } else {\n        println!(\"cargo:rustc-link-lib=c++\");\n    }","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/api/build.rs#L123-L159","documentation":"Error \"failed to move unpacked wee8 lib from {} to {}: {err}\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/api/build.rs:141 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}