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

Linking error #2266

Closed
JonasFocke01 opened this issue Dec 8, 2023 · 2 comments
Closed

Linking error #2266

JonasFocke01 opened this issue Dec 8, 2023 · 2 comments

Comments

@JonasFocke01
Copy link

Hello,

i have a fairly large codebase (for my standards) for the rpi pico, that i slowly want to migrate to the embassy runtime, to take advantage of async behavior. I got to a point, where everything compiles, but the linking after that fails with Linking globals named '__subsf3': symbol multiply defined. Furthermore it says, that it could not load bitcode of module rp2040_hal-08399d7ef07092cd.rp2040_hal.93c04970eac56577-cgu.10.rcgu.o. Luckily, the rp2040 crate directly is just used in one single place. commenting that out wont fix the linking problem. I suspect, that the rp2040 crate is used indirectly in many more place through the rp_pio crate or similar. I cant really test that, because its everywhere. I only opened this issue, because the README of this repo says, that this works with any other HALs out there.

Are there any tricks on how to get around this?
Do you need more info from me?

@Dirbaio
Copy link
Member

Dirbaio commented Dec 8, 2023

you're probably hitting this

rust-lang/rust#118609
rp-rs/rp2040-project-template#71

I only opened this issue, because the README of this repo says, that this works with any other HALs out there.

if you're using rp2040_hal and not embassy-rp then you should ask in the rp-rs project, as this is not an embassy issue.

@JonasFocke01
Copy link
Author

Thank you for the hint! Digging around that resolved my issue. ❤️

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

2 participants