rust-build icon indicating copy to clipboard operation
rust-build copied to clipboard

Breakage when building `core`.

Open shymega opened this issue 1 year ago • 5 comments

Hi,

I'm creating a Nix Flake for the Rust toolchains for the ESP32.

Whilst rustc is working, I get quite a lot of low-level errors when building a simple example from the template. Attached is a log.

I've uploaded the example here, and the Flake can be found here.

Any ideas?

cargo-build-logs.txt

shymega avatar Aug 20 '24 14:08 shymega

I don't know anything about Nix, so I can't really help here. I would recommend making sure you can build a project for your host OS, and then moving on to try and cross compile for esp32.

MabezDev avatar Aug 21 '24 12:08 MabezDev

Yeah, I'm not certain if it's a Nix issue or not. Is it normal for std and core to need building?

I'm going to try setting RUST_SRC_PATH.

shymega avatar Aug 21 '24 13:08 shymega

For std/core on esp32, yes we need to build it ourselves using build-std feature of cargo.

MabezDev avatar Aug 21 '24 13:08 MabezDev

OK. Well, looking at the RUST_SRC_PATH env set, it's not valid.

shymega avatar Aug 21 '24 13:08 shymega

By the looks of things, my derivation is a bit wonky. I think we should keep this issue open for now, though.

My end-goal is to add credits and Actions workflows to my Flake, and add details to the esp-rs wiki.

Shall we discuss on the Matrix room later on?

shymega avatar Aug 21 '24 13:08 shymega