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

Broken build on esp-hal-common 0.15 #1186

Closed
vlad-onis opened this issue Feb 19, 2024 · 7 comments
Closed

Broken build on esp-hal-common 0.15 #1186

vlad-onis opened this issue Feb 19, 2024 · 7 comments

Comments

@vlad-onis
Copy link

vlad-onis commented Feb 19, 2024

Started a test project using cargo generate esp-rs/esp-template and selected esp32c3. After generation a simple cargo check fails as in the picture below. Note that esp32c3-hal v 0.14 works without problems. I just attached 2 pictures but the errors are endless.

LE: This happens as well if I follow the no-std-training to just start the hello world. Same errors. (https://esp-rs.github.io/no_std-training/02_3_repository.html)

Screenshot 2024-02-19 at 23 43 14 Screenshot 2024-02-19 at 23 43 21
@MabezDev
Copy link
Member

I just generated a fresh project and it builds? Have you setup your environment correctly? Take a look at https://esp-rs.github.io/book/installation/riscv.html

@vlad-onis
Copy link
Author

I just generated a fresh project and it builds? Have you setup your environment correctly? Take a look at https://esp-rs.github.io/book/installation/riscv.html

Are you on macos as well?

@vlad-onis
Copy link
Author

vlad-onis commented Feb 19, 2024

I followed that, I have the target installed

@MabezDev
Copy link
Member

That was on Linux, but I've just done the same on MacOS and it works there too. Take a look at the link I gave you, and or paste the full output from cargo in a gist.

@vlad-onis
Copy link
Author

@MabezDev
Copy link
Member

https://github.com/esp-rs/esp-hal/blob/567a44f28c41ac42199b928062135b7e47ec4b15/esp-hal-common/src/gpio.rs doesn't contain any lines with esp32c3_hal. You've corrupted the crates.io registry on your machine. I would run rm -rf ~/.cargo/registry to solve this.

@vlad-onis
Copy link
Author

It felt like a completely dirty state on my machine. Tried the above and it seems to work. Gotta admin I was scared to delete the folder in case there are configs I might mess up. I was about to do a test with docker tmw since now it's very late. I'm happy however it's fixed today. Ty very very much for looking into this!

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants