-
Notifications
You must be signed in to change notification settings - Fork 198
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
coreaudio-sys 0.2.5 failed to build #853
Comments
A big difference from your CI build is that docs.rs is always cross-compiling from linux, you are only able to control the target not the host. So there would need to be a way to get the required header files on the Ubuntu image used for the build. |
Ahh I see! It looks like we might benefit from solving RustAudio/coreaudio-sys#38 and updating our docs-check action to cross-compile from Ubuntu to match the docs.rs approach. Thanks for the tip! |
This would be good to document, a lot of our build failures have been coming from this. |
@mitchmindtree are you still planning to work on this? |
I have no plans related to this at the moment, though I believe it is still an issue for |
@jyn514 one thing that might be useful is if you could link to the CI/script that docs.rs uses to cross-compile for macOS from Linux. This way we can check the coreaudio-sys CI matches, uses the same versions/SDK, etc. |
@mitchmindtree you can replicate it by running docs.rs itself locally: https://forge.rust-lang.org/docs-rs/add-dependencies.html#testing-the-image There's also an unofficial script, but it's not tested: https://github.com/Nemo157/dotfiles/blob/master/bin/cargo-doc-like-docs.rs |
Closing due to inactivity; feel free to reopen if you're still having trouble and have time to debug things. |
Crate name:
coreaudio-sys 0.2.5
Build failure link:
https://docs.rs/crate/coreaudio-sys/0.2.5/builds/264503
Additional details:
The crate used to fail as expected when publishing previous versions, however with 0.2.5 I attempted to fix the Cargo.toml metadata to select the correct target for building coreaudio-sys docs for
x86_64-apple-darwin
. The crate seems to build successfully for the same target in our github action, but fails on docs.rs.I've opened an issue at RustAudio/coreaudio-sys#40 with more details/thoughts. Any advice on how we might go about fixing the build would be greatly appreciated!
The text was updated successfully, but these errors were encountered: