The error occurs because the C development headers (specifically limits.h) are missing on your system. This is required by the txproto-sys crate's build script (which uses bindgen to generate Rust bindings from C headers).
Install the essential C development toolchain and headers:
bashsudo apt update sudo apt install build-essential libc6-dev
Then retry the build from a clean state:
bash# Clean previous build artifacts rm -rf kysdk/kymedia/target rm -rf rootfs-x86_64-linux-gnu # Re-run the build ./build-linux.sh
build-essential provides gcc, make, and other build toolslibc6-dev provides the standard C library headers (including /usr/include/limits.h)txproto-sys build script uses bindgen which requires these headers to generate Rust FFI bindingsIf you still encounter issues, ensure your system is up-to-date (sudo apt full-upgrade) and consider installing additional development packages like libc-dev or linux-libc-dev.
Le Chat can make mistakes. Check answers. Learn more