New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28506#issuecomment-774223951 Comment: I think you want to use this https://github.com/rust-lang/rust-bindgen#environment-variables to set a `--sysroot` and a `--target`. The `python3-pyside` template has the values you need to set them to.