{"record":{"id":"532bf065fa231adb","repo":"vosen/ZLUDA","slug":"failed-to-open-532bf0","errorCode":null,"errorMessage":"Failed to open {}: {}","messagePattern":"Failed to open (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zluda/build.rs","lineNumber":25,"sourceCode":"        let dll_path = \"bin/nvcudart_hybrid64.dll\";\n        println!(\"cargo:rerun-if-changed={}\", dll_path);\n        check_lfs_file(dll_path);\n    }\n    let git = Gix::builder().sha(false).build();\n    Emitter::default()\n        .add_instructions(&git)\n        .unwrap()\n        .emit()\n        .unwrap();\n}\n\nfn check_lfs_file(bc_path: &str) {\n    use std::fs::File;\n    use std::io::Read;\n\n    let mut magic = [0u8; 2];\n    File::open(bc_path)\n        .unwrap_or_else(|e| panic!(\"Failed to open {}: {}\", bc_path, e))\n        .read_exact(&mut magic)\n        .unwrap_or_else(|e| panic!(\"Failed to read {}: {}\", bc_path, e));\n    assert!(\n        &magic == b\"MZ\",\n        \"{} is a git lfs stub and not the actual file. Run `git lfs pull` to fetch it\",\n        bc_path\n    );\n}\n","sourceCodeStart":7,"sourceCodeEnd":34,"githubUrl":"https://github.com/vosen/ZLUDA/blob/9c8b43f242985150f86a7f485218b7b82c3e96ca/zluda/build.rs#L7-L34","documentation":"zluda build-script panic in check_lfs_file: bin/nvcudart_hybrid64.dll could not be opened. This DLL is tracked as a Git LFS object, so the frequent cause is LFS objects not being fetched (leaving a pointer stub or missing file), which would otherwise break the CUDA runtime shim build silently.","triggerScenarios":"Thrown at zluda/build.rs:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `git lfs install && git lfs pull` to obtain the real DLL","Confirm zluda/bin/nvcudart_hybrid64.dll exists and is the actual binary (MZ header), not an LFS pointer","Re-clone the repo with LFS support if the object store is broken"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8b43f242985150f86a7f485218b7b82c3e96ca","analyzedAt":"2026-09-06T09:21:08.049Z","contentChangedAt":"2026-09-06T09:21:08.049Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}