{"record":{"id":"c7697653a7c0fd52","repo":"remotion-dev/remotion","slug":"unsupported-os-process-platform-architecture","errorCode":null,"errorMessage":"Unsupported OS: ${process.platform}, architecture: ${process.arch}","messagePattern":"Unsupported OS: (.+?), architecture: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/compositor/build.ts","lineNumber":85,"sourceCode":"\t\t\t\tcase 'x64':\n\t\t\t\t\tif (isMusl()) {\n\t\t\t\t\t\treturn 'x86_64-unknown-linux-musl';\n\t\t\t\t\t}\n\n\t\t\t\t\treturn 'x86_64-unknown-linux-gnu';\n\t\t\t\tcase 'arm64':\n\t\t\t\t\tif (isMusl()) {\n\t\t\t\t\t\treturn 'aarch64-unknown-linux-musl';\n\t\t\t\t\t}\n\n\t\t\t\t\treturn 'aarch64-unknown-linux-gnu';\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new Error(`Unsupported architecture on Linux: ${process.arch}`);\n\t\t\t}\n\n\t\tdefault:\n\t\t\tthrow new Error(\n\t\t\t\t`Unsupported OS: ${process.platform}, architecture: ${process.arch}`,\n\t\t\t);\n\t}\n};\n\nconst hasCargo = () => {\n\ttry {\n\t\texecSync(`${where} cargo`);\n\t\treturn true;\n\t} catch (err) {\n\t\treturn false;\n\t}\n};\n\nconst debug = process.argv.includes('--debug');\nconst mode = debug ? 'debug' : 'release';\n\nconst copyDestinations = {","sourceCodeStart":67,"sourceCodeEnd":103,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/compositor/build.ts#L67-L103","documentation":"Thrown by getTarget() when process.platform is not one of win32, darwin, or linux. These are the only platforms for which a Rust compositor target exists; anything else (e.g. freebsd, aix, sunos) is unsupported.","triggerScenarios":"Running the compositor build script on an OS Node reports as something other than Windows, macOS, or Linux.","commonSituations":"Building on FreeBSD, OpenBSD, AIX, or Solaris; a container/runtime reporting a non-standard platform string.","solutions":["Build on a supported OS (Windows, macOS, or Linux).","Use the prebuilt compositor binaries packaged with Remotion.","Cross-compile from a supported platform if you need a binary for a different environment."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if (!['win32', 'darwin', 'linux'].includes(process.platform)) {\n  throw new Error(`Unsupported OS: ${process.platform}`);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Build only on Windows, macOS, or Linux.","Rely on the prebuilt binaries for other environments.","Cross-compile from a supported platform when a binary is needed elsewhere."],"tags":["compositor","build","platform","architecture"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}