coreaudio-sys
coreaudio-sys copied to clipboard
[macOS 10.9] Build script `panic!`s with `'main' panicked at 'function not loaded: clang_Type_getNumTemplateArguments'`
One of our workshop members ran into this bug last night:
error: failed to run custom build command for `coreaudio-sys v0.2.2`
process didn't exit successfully: `/Users/disuba/nannou/target/release/build/coreaudio-sys-8c91f3c1127ded1c/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=framework=AudioUnit
cargo:rustc-link-lib=framework=CoreAudio
--- stderr
thread 'main' panicked at 'function not loaded: clang_Type_getNumTemplateArguments', /Users/disuba/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-0.21.2/src/lib.rs:1456:1
note: Run with `RUST_BACKTRACE=1` for a backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
I didn't get a lot of time to dig more into the error with them, however I just thought I'd post this here for now in case another user comes across the same issue with more info.
The user said they were running OSX 10.9.
Perhaps this recent-ish commit in rust-bindgen could be related? Perhaps the solution to this particular bug is simply updating bindgen from 0.32 to the current version 0.37?