{"record":{"id":"551d2326de3c2020","repo":"DioxusLabs/dioxus","slug":"architecture-not-supported","errorCode":null,"errorMessage":"Architecture not supported","messagePattern":"Architecture not supported","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/link.rs","lineNumber":219,"sourceCode":"                let format = match triple.binary_format {\n                    target_lexicon::BinaryFormat::Elf => object::BinaryFormat::Elf,\n                    target_lexicon::BinaryFormat::Coff => object::BinaryFormat::Coff,\n                    target_lexicon::BinaryFormat::Macho => object::BinaryFormat::MachO,\n                    target_lexicon::BinaryFormat::Wasm => object::BinaryFormat::Wasm,\n                    target_lexicon::BinaryFormat::Xcoff => object::BinaryFormat::Xcoff,\n                    target_lexicon::BinaryFormat::Unknown => unimplemented!(),\n                    _ => unimplemented!(\"Binary format not supported\"),\n                };\n\n                let arch = match triple.architecture {\n                    target_lexicon::Architecture::Wasm32 => object::Architecture::Wasm32,\n                    target_lexicon::Architecture::Wasm64 => object::Architecture::Wasm64,\n                    target_lexicon::Architecture::X86_64 => object::Architecture::X86_64,\n                    target_lexicon::Architecture::Arm(_) => object::Architecture::Arm,\n                    target_lexicon::Architecture::Aarch64(_) => object::Architecture::Aarch64,\n                    target_lexicon::Architecture::LoongArch64 => object::Architecture::LoongArch64,\n                    target_lexicon::Architecture::Unknown => object::Architecture::Unknown,\n                    _ => unimplemented!(\"Architecture not supported\"),\n                };\n\n                let endian = match triple.endianness() {\n                    Ok(target_lexicon::Endianness::Little) => object::Endianness::Little,\n                    Ok(target_lexicon::Endianness::Big) => object::Endianness::Big,\n                    Err(_) => unimplemented!(\"Endianness not supported\"),\n                };\n\n                let bytes = object::write::Object::new(format, arch, endian)\n                    .write()\n                    .context(\"Failed to emit stub link file\")?;\n\n                // Write a dummy object file to satisfy rust/linker since it'll run llvm-objcopy\n                // ... I wish it *didn't* do that but I can't tell how to disable the linker without\n                // using --emit=obj which is not exactly what we want since that will still pull in\n                // the dependencies.\n                std::fs::create_dir_all(out_file.parent().unwrap())?;\n                std::fs::write(out_file, bytes)?;","sourceCodeStart":201,"sourceCodeEnd":237,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/393d190a801ccb441d41923e232289b4f8a5c669/packages/cli/src/cli/link.rs#L201-L237","documentation":"Error \"Architecture not supported\" thrown in DioxusLabs/dioxus.","triggerScenarios":"Thrown at packages/cli/src/cli/link.rs:219 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":"393d190a801ccb441d41923e232289b4f8a5c669","analyzedAt":"2026-08-16T11:27:45.815Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}