-
Notifications
You must be signed in to change notification settings - Fork 38
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
fails to build under macOS Sonoma (14.0) / Xcode 15.0
#85
Comments
Seeing this on Ventura 13.6 too |
coreaudio-sys
fails to build under macOS Sonoma (14.0)coreaudio-sys
fails to build under macOS Sonoma (14.0) / Xcode 15.0
@simlay @MichaelHills @emilio any chance we can update this to use the new bindgen and get this shipped? |
Yes. I bet there's a dependabot PR with the bindgen fix. I'll merge it and bump the version later today. |
I wasn't really able to reproduce this bug. I have validated that xcode 15 on macOS 13.6 the project builds over in #86. |
@coreh A minor patch version has pushed to crates.io. Let me know if there's still an issue. Also, I should put the current maintainers in the readme so that people know to tag me or MichaelHills. I just hadn't seen the issue yet. |
Thanks! No worries, you didn't take long at all, I opened the issue just a couple days ago. |
# Objective Improve compatibility with macOS Sonoma and Xcode 15.0. ## Solution - Adds the workaround by @ptxmac to ignore the invalid window sizes provided by `winit` on macOS 14.0 - This still provides a slightly wrong content size when resizing (it fails to account for the window title bar, so some content gets clipped at the bottom) but it's _much better_ than crashing. - Adds docs on how to work around the `bindgen` bug on Xcode 15.0. ## Related Issues: - RustAudio/coreaudio-sys#85 - rust-windowing/winit#2876 --- ## Changelog - Added a workaround for a `winit`-related crash under macOS Sonoma (14.0) --------- Co-authored-by: Peter Kristensen <[email protected]>
I still can't compile a small project with ggez, even with clang 15...
|
Looks like you're using |
I'm just using an older version of ggez for now. My dependencies are only these:
I don't even have any sounds in this project. Does this mean I have to upgrade ggez to get it to compile? EDIT: Wow, a |
…gine#9905) # Objective Improve compatibility with macOS Sonoma and Xcode 15.0. ## Solution - Adds the workaround by @ptxmac to ignore the invalid window sizes provided by `winit` on macOS 14.0 - This still provides a slightly wrong content size when resizing (it fails to account for the window title bar, so some content gets clipped at the bottom) but it's _much better_ than crashing. - Adds docs on how to work around the `bindgen` bug on Xcode 15.0. ## Related Issues: - RustAudio/coreaudio-sys#85 - rust-windowing/winit#2876 --- ## Changelog - Added a workaround for a `winit`-related crash under macOS Sonoma (14.0) --------- Co-authored-by: Peter Kristensen <[email protected]>
# Objective Improve compatibility with macOS Sonoma and Xcode 15.0. ## Solution - Adds the workaround by @ptxmac to ignore the invalid window sizes provided by `winit` on macOS 14.0 - This still provides a slightly wrong content size when resizing (it fails to account for the window title bar, so some content gets clipped at the bottom) but it's _much better_ than crashing. - Adds docs on how to work around the `bindgen` bug on Xcode 15.0. ## Related Issues: - RustAudio/coreaudio-sys#85 - rust-windowing/winit#2876 --- ## Changelog - Added a workaround for a `winit`-related crash under macOS Sonoma (14.0) --------- Co-authored-by: Peter Kristensen <[email protected]>
When using LLVM from the default Xcode toolchain in macOS Sonoma (14.0), the build fails with the following error:
This seems to be caused by this issue: rust-lang/rust-bindgen#2312, which has been fixed in recent versions of
bindgen
. Interestingly, the issue mentions clang 16, however the clang in the default toolchain in XCode in macOS Sonoma is reported as 15, so it's likely that Apple backported some of the clang 16 changes to clang 15, including the one that's causing this.See also:
I believe the solution is to update
bindgen
to a more recent version that has the fix for this issue.Edit: Looks like (as reported below) this also affects 13.x after installing Xcode 15.0.
👉 For those finding this issue with the same problem, I was able to work around this by installing clang 15 via homebrew:
Then adding it to my path by following the instructions provided by that command, and rebuilding.
The text was updated successfully, but these errors were encountered: