This may be an issue with Big Sur or with running on M1 hardware, I'm not sure. However, when I try to build flocking-cpal, I get the following error
The following warnings were emitted during compilation:
warning: couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
warning: set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)
error: failed to run custom build command for `coreaudio-sys v0.2.6`
Caused by:
process didn't exit successfully: `~/code/flocking-core/target/debug/build/coreaudio-sys-ba8cad63afa3ce94/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=COREAUDIO_SDK_PATH
cargo:rustc-link-lib=framework=AudioToolbox
cargo:rustc-link-lib=framework=AudioToolbox
cargo:rustc-link-lib=framework=CoreAudio
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to the full path to a valid `llvm-config` executable (including the executable itself)
--- stderr
thread 'main' panicked at 'libclang error; possible causes include:
- Invalid flag syntax
- Unrecognized flags
- Invalid flag arguments
- File I/O errors
- Host vs. target architecture mismatch
If you encounter an error missing from this list, please file an issue or a PR!', /Users/colin/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.53.3/src/ir/context.rs:573:15
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This seems to have to with the ASIO feature being turned on by default, and the Windows-specific specification of an older version of clang in flocking-cpal's Cargo.toml. Why this is the case only on M1, I'm not sure.