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

Failed to compile on MacOS #79

Closed
SnowyThinker opened this issue Apr 9, 2023 · 2 comments
Closed

Failed to compile on MacOS #79

SnowyThinker opened this issue Apr 9, 2023 · 2 comments

Comments

@SnowyThinker
Copy link


BigMac:bevy_chess andrew$ cc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


error: failed to run custom build command for coreaudio-sys v0.2.5

Caused by:
process didn't exit successfully: /Users/andrew/workbench/souce/rust/bevy_chess/target/debug/build/coreaudio-sys-1b809ab8d23227a9/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=COREAUDIO_SDK_PATH
cargo:rustc-link-lib=framework=AudioToolbox
cargo:rustc-link-lib=framework=AudioUnit
cargo:rustc-link-lib=framework=CoreAudio
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS

--- stderr
thread 'main' panicked at '"enum_(unnamed_at_/Library/Developer/CommandLineTools/SDKs/MacOSX13_1_sdk/usr/include/MacTypes_h_382_1)" is not a valid Ident', /Users/andrew/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/proc-macro2-1.0.56/src/fallback.rs:811:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@nwang92
Copy link

nwang92 commented Apr 24, 2023

I had a similar issue and with some inspiration from #25 (comment), I was able to resolve it by uninstalling llvm:

brew uninstall llvm

@EricHenry
Copy link

I had a similar issue and with some inspiration from #25 (comment), I was able to resolve it by uninstalling llvm:

brew uninstall llvm

This worked for me too.

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