-
Notifications
You must be signed in to change notification settings - Fork 28
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
portable-atomic dependency issue with agb 0.21.0 #777
Comments
As a follow up, I can’t downgrade |
I fixed this in #774. I think we're still able to do a minor release of agb with what's currently in master so I can do one today to get this working again. For now, you can add your own dependency on portable atomic with the fallback feature enabled and it should all be working again. |
Okay, that’ll work for me. Thanks very much for the quick response! |
Fixed in v0.21.1 :) |
Thanks for fixing this! However, I seem to still be experiencing issues ( v0.21.1, Mac Intel ). I have cloned the template directory and run cargo build, and it is failing on this dependency for a compatibility reason.
Any ideas how I could go about fixing this for you? I'm guessing it's the portable-atomic dependency doing sanity checks on the unsafe feature flag and forgetting about cross-compilation. |
That seems really strange... almost as if it is trying to compile agb to target your mac rather than the GBA. Can I check that any project which includes agb also has the |
Yes, initially I forgot to include the I am attaching the terminal output, including files I am temporarily working around this by directly using rust-console/gba . However, this library is the absolute bomb and would love to use it :D It's very likely a system issue. I have managed to get the gba workspace working though, so this is localised to the agba workspace in my project. |
I was thinking just now it might be because I have workspaces, but the rust-console/gba based workspace does include a .cargo/config.toml with the desired target and works without declaring the target 🤔 |
I'm a clown - thanks for highlighting! Turn out that since this was a workspace, then the workspace-specific
The solution is to add an exclude field to the parent Cargo.toml workspace delcaration. |
When I ran
cargo update
after updating to agb 0.21.0, it no longet is able to run due to an issue with a dependency,portable-atomic
. This happens with any version of that crate of 1.7 or higher, but does not appear when I try and use agb 0.20.5 withportable-atomic
1.6.0.A screenshot of the error message is shown below:
The text was updated successfully, but these errors were encountered: