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

Cannot compile examples for Raspberry Pi Pico #431

Open
m1cha1s opened this issue Sep 4, 2022 · 5 comments
Open

Cannot compile examples for Raspberry Pi Pico #431

m1cha1s opened this issue Sep 4, 2022 · 5 comments

Comments

@m1cha1s
Copy link

m1cha1s commented Sep 4, 2022

When I try to compile the any example with the commands specified in README it fails with this.

@alexandruradovici
Copy link
Contributor

We do not yet support libtock-rs for the Raspberry Pi Pico. From what I can read in the error, it seems that you are missing the armv6 toolchain.

Please try adding it using rustup target add thumbv6m-none-eabi before running cargo.

@jrvanwhy
Copy link
Collaborator

jrvanwhy commented Sep 6, 2022

Looks to me like we do support the Raspberry Pi Pico: https://github.com/tock/libtock-rs/blob/master/runtime/layouts/raspberrypi_pico.ld

@alexandruradovici
Copy link
Contributor

It used to build when I added it, but I think I had the armv6 toolchain already installed.

@tommy4111
Copy link

Got this failures after doing rustup target add thumbv6m-none-eabi
dump.txt. Any ideas?

error: could not compile syn due to previous error__

@jrvanwhy
Copy link
Collaborator

We look at the target architecture to determine whether we are building for the host or an embedded target... which is incorrect and will fail if your host system is ARM (as it is).

To be clear: the underlying bug is our build is broken when compiling on an ARM host, not that the build is broken when compiling for the Raspberry Pi Pico target.

I'm not sure if there's a better way to solve this other than making the target selection in .cargo/config pickier.

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

No branches or pull requests

4 participants