New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/pull/28506#issuecomment-777729178 Comment: Have you tried `export BINDGEN_EXTRA_CLANG_ARGS="--target=${XBPS_CROSS_TRIPLET} --sysroot=/usr/${XBPS_CROSS_TRIPLET}"`?