Skip to content

building for Embedded RISC-V does not work #207

@wuyoli

Description

@wuyoli

I'm trying to make a flake for Embedded Development on CH32V307 microcontrollers. I did get Cargo build working successfully, but nix build doesn't work. When trying to do so it fails with the following error:

> Running phase: buildPhase
       > error: no matching package named `compiler_builtins` found
       > location searched: directory source `/build/cargo-vendor-dir` (which is replacing registry `crates-io`)
       > required by package `std v0.0.0 (/nix/store/a9flgvs64klvknn49qrsw3xlqsznyc2g-rust-default-1.85.0-nightly-2025-01-01/lib/rustlib/src/rust/library/std)`
       >     ... which satisfies path dependency `std` (locked to 0.0.0) of package `sysroot v0.0.0 (/nix/store/a9flgvs64klvknn49qrsw3xlqsznyc2g-rust-default-1.85.0-nightly-2025-01-01/lib/rustlib/src/rust/library/sysroot)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions