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

Build Fails In Sonoma 14.5 #104

Open
ElessaR-x opened this issue Jun 24, 2024 · 4 comments
Open

Build Fails In Sonoma 14.5 #104

ElessaR-x opened this issue Jun 24, 2024 · 4 comments

Comments

@ElessaR-x
Copy link

Build fails with this message:

error: expected one of `!` or `::`, found keyword `static`
 --> /Users/ardaozger/Desktop/mythmallow/target/debug/build/coreaudio-sys-81a18b91c2ba4bef/out/coreaudio.rs:3:11
  |
3 | rewriting static
  |           ^^^^^^ expected one of `!` or `::`

Rust Version: cargo 1.81.0-nightly (bc89bffa5 2024-06-22)

coreaudio-sys version: V0.2.15

macOS version: Sonoma 14.5 (23F79)

@lukexor
Copy link

lukexor commented Jun 25, 2024

Started getting this as well in github CI:

https://github.com/lukexor/tetanes/actions/runs/9647882987/job/26607742318

Current runner version: '2.317.0'
Operating System
macOS
14.5
23F79
Runner Image
Image: macos-14-arm64
Version: 20240616.1
Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20240616.1/images/macos/macos-14-arm64-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20240616.1

rust 1.81.0-nightly (bcf94dec5 2024-06-23)

Was fine in the previous version:

Current runner version: '2.317.0'
Operating System
macOS
14.5
23F79
Runner Image
Image: macos-14-arm64
Version: 20240611.1
Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20240611.1/images/macos/macos-14-arm64-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20240611.1

rust rustc 1.81.0-nightly (d7f6ebace 2024-06-16)

@lukexor
Copy link

lukexor commented Jun 25, 2024

And it's not limited to just macOS 14.5

I get the same error on macOS 12.6 with rust 1.81.0-nightly (bcf94dec5 2024-06-23)

So this appears to be due to a Rust nightly update, not specifically macOS Sonoma.

@lukexor
Copy link

lukexor commented Jun 25, 2024

Seems due to this? rust-lang/rustfmt#6210 and rust-lang/rust-bindgen#2852

@simlay
Copy link
Member

simlay commented Jun 27, 2024

I've been afk for a few days and just saw this. Looks like the rustfmt fix landed and this isn't an issue anymore (it doesn't repro for me on nightly). Let me know if there are changes to coreaudio-sys needed if it's still an 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

3 participants