{"record":{"id":"b598e9bccd69076a","repo":"openai/codex","slug":"bubblewrap-is-not-available-in-this-build-notes","errorCode":null,"errorMessage":"bubblewrap is not available in this build.\nNotes:\n- ensure the target OS is Linux\n- libcap headers must be available via pkg-config\n- bubblewrap sources expected at codex-rs/vendor/bubblewrap (default)","messagePattern":"bubblewrap is not available in this build\\.\nNotes:\n- ensure the target OS is Linux\n- libcap headers must be available via pkg-config\n- bubblewrap sources expected at codex-rs/vendor/bubblewrap \\(default\\)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/bwrap/src/main.rs","lineNumber":33,"sourceCode":"                .unwrap_or_else(|err| panic!(\"failed to convert argv to CString: {err}\"))\n        })\n        .collect::<Vec<_>>();\n    let mut argv_ptrs = cstrings\n        .iter()\n        .map(CString::as_c_str)\n        .map(CStr::as_ptr)\n        .collect::<Vec<*const c_char>>();\n    argv_ptrs.push(std::ptr::null());\n\n    // SAFETY: We provide a null-terminated argv vector whose pointers remain\n    // valid for the duration of the call.\n    let exit_code = unsafe { bwrap_main(cstrings.len() as libc::c_int, argv_ptrs.as_ptr()) };\n    std::process::exit(exit_code);\n}\n\n#[cfg(all(target_os = \"linux\", not(bwrap_available)))]\nfn main() {\n    panic!(\n        r#\"bubblewrap is not available in this build.\nNotes:\n- ensure the target OS is Linux\n- libcap headers must be available via pkg-config\n- bubblewrap sources expected at codex-rs/vendor/bubblewrap (default)\"#\n    );\n}\n\n#[cfg(not(target_os = \"linux\"))]\nfn main() {\n    panic!(\"bwrap is only supported on Linux\");\n}\n","sourceCodeStart":15,"sourceCodeEnd":46,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/bwrap/src/main.rs#L15-L46","documentation":"Error \"bubblewrap is not available in this build.\nNotes:\n- ensure the target OS is Linux\n- libcap headers must be available via pkg-config\n- bubblewrap sources expected at codex-rs/vendor/bubblewrap (default)\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/bwrap/src/main.rs:33 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}