Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakage when building core. #272

Open
shymega opened this issue Aug 20, 2024 · 5 comments
Open

Breakage when building core. #272

shymega opened this issue Aug 20, 2024 · 5 comments

Comments

@shymega
Copy link

shymega commented Aug 20, 2024

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

@MabezDev
Copy link
Member

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.

@shymega
Copy link
Author

shymega commented Aug 21, 2024

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.

@MabezDev
Copy link
Member

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

@shymega
Copy link
Author

shymega commented Aug 21, 2024

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

@shymega
Copy link
Author

shymega commented Aug 21, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants