{"record":{"id":"77ce994c0217c2db","repo":"wasmerio/wasmer","slug":"target-os-arch-combination-not-supported-os","errorCode":null,"errorMessage":"target os + arch combination not supported: {os}, {arch}","messagePattern":"target os \\+ arch combination not supported: (.+?), (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/api/build.rs","lineNumber":24,"sourceCode":"        path::PathBuf,\n        sync::{LazyLock, Mutex},\n    };\n\n    const WEE8_RELEASE_VERSION: &str = \"11.9.7\";\n\n    let (asset_name, platform_name) = match (\n        env::var(\"CARGO_CFG_TARGET_OS\").unwrap().as_str(),\n        env::var(\"CARGO_CFG_TARGET_ARCH\").unwrap().as_str(),\n        env::var(\"CARGO_CFG_TARGET_ENV\")\n            .unwrap_or_default()\n            .as_str(),\n    ) {\n        (\"macos\", \"aarch64\", _) => (\"v8-darwin-aarch64.tar.xz\", \"darwin-aarch64\"),\n        (\"linux\", \"x86_64\", \"gnu\") => (\"v8-linux-amd64.tar.xz\", \"linux-amd64\"),\n        (\"linux\", \"x86_64\", \"musl\") => (\"v8-linux-musl.tar.xz\", \"linux-musl\"),\n        (\"windows\", \"x86_64\", _) => (\"v8-windows-amd64.tar.xz\", \"windows-amd64\"),\n        (\"android\", \"aarch64\", _) => (\"v8-android-arm64.tar.xz\", \"android-arm64\"),\n        (os, arch, _) => panic!(\"target os + arch combination not supported: {os}, {arch}\"),\n    };\n\n    let out_dir = env::var(\"OUT_DIR\").unwrap();\n    let out_path = PathBuf::from(&out_dir);\n    let crate_root = env::var(\"CARGO_MANIFEST_DIR\").unwrap();\n    let v8_header_path = PathBuf::from(&crate_root).join(\"third-party\").join(\"wee8\");\n    let cache_dir = out_path\n        .join(\"../../../../\")\n        .join(\"wee8-artifacts\")\n        .join(WEE8_RELEASE_VERSION)\n        .join(platform_name);\n    let archive_path = cache_dir.join(asset_name);\n    let v8_lib_dir = cache_dir.join(\"lib\");\n    let v8_lib_path = v8_lib_dir.join(if cfg!(target_os = \"windows\") {\n        \"v8.lib\"\n    } else {\n        \"libv8.a\"\n    });","sourceCodeStart":6,"sourceCodeEnd":42,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/api/build.rs#L6-L42","documentation":"Error \"target os + arch combination not supported: {os}, {arch}\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/api/build.rs:24 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"}