Unable to compile on debian testing (bookworm)
Unable to add pipewire
into my project:
error: failed to run custom build command for `libspa-sys v0.6.0`
Caused by:
process didn't exit successfully: `/home/johan/.cargo/target/debug/build/libspa-sys-99b930a00b03fa55/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=LIBPIPEWIRE_0.3_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=SYSROOT
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=LIBSPA_0.2_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=SYSROOT
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
cargo:rustc-link-lib=pipewire-0.3
cargo:include=/usr/include/pipewire-0.3:/usr/include/spa-0.2:/usr/include/spa-0.2
cargo:rerun-if-env-changed=SYSTEM_DEPS_BUILD_INTERNAL
cargo:rerun-if-env-changed=SYSTEM_DEPS_LINK
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_LIB
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_LIB_FRAMEWORK
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_SEARCH_NATIVE
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_SEARCH_FRAMEWORK
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_INCLUDE
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_NO_PKG_CONFIG
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_BUILD_INTERNAL
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSPA_LINK
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_LIB
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_LIB_FRAMEWORK
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_SEARCH_NATIVE
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_SEARCH_FRAMEWORK
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_INCLUDE
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_NO_PKG_CONFIG
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_BUILD_INTERNAL
cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBPIPEWIRE_LINK
cargo:rustc-cfg=system_deps_have_libpipewire
cargo:rustc-cfg=system_deps_have_libspa
cargo:rerun-if-changed=wrapper.h
--- stderr
thread 'main' panicked at 'a `libclang` shared library is not loaded on this thread', /home/johan/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.4.0/src/lib.rs:1731:1
stack backtrace:
0: rust_begin_unwind
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:64:14
2: core::panicking::panic_display
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:147:5
3: core::panicking::panic_str
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:131:5
4: core::option::expect_failed
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/option.rs:1924:5
5: core::option::Option<T>::expect
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/option.rs:786:21
6: clang_sys::clang_createIndex
at /home/johan/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.4.0/src/link.rs:145:25
7: bindgen::clang::Index::new
at /home/johan/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.64.0/clang.rs:1687:20
8: bindgen::ir::context::BindgenContext::new
at /home/johan/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.64.0/ir/context.rs:531:21
9: bindgen::Bindings::generate
at /home/johan/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.64.0/lib.rs:2659:27
10: bindgen::Builder::generate
at /home/johan/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.64.0/lib.rs:1593:9
11: build_script_build::run_bindgen
at ./build.rs:43:20
12: build_script_build::main
at ./build.rs:12:5
13: core::ops::function::FnOnce::call_once
at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Installed these packages: libpipewire-0.3-dev libpipewire-0.3-0 libspa-0.2-dev llvm-dev libclang-dev clang