Error "#define SETGROUPS_SIZE_TYPE unknown" compiling the SDK

Hello,

could not find info about this one on the web.
The above definition in one config.h leads to a bunch of errors where SET_GROUPS_SIZE_TYPE is used as a data type and consequently abortion of the compiling of buildroot-initramfs.
Any idea what the unknown is doing there, or what I’m eventually missing?

Thanks!

Did you follow all the prerequisites listed at the start of the readme for the StarFiveTech VisionFive2 SDK.

What Architecture and Linux distribution are you using ?

I have not done this in a quite a while, but the last time I tried it, it built fine for me on x86_64 and I think I was using Ubuntu 22.04 (Or it might possibly have been with Devuan 4.0 Chimaera, which had the same Linux kernel as Debian Bullseye: 5.10 Long Term Support). Hopefully someone with more recent experiences will chime in.

I followed those meticulously.

I am using Debian Linux 6.12.43+deb13-amd64.

Since the error persists in the branch with kernel 6.6 I grepped along. Apparently SETGROUP_SIZE_TYPES and setgroup_size args are never set during config.

All this seems to happen during the build of libfakeroot. I attached the output of

make -j$1 buildroot_rootfs-menuconfig &> log.txt

log.txt (5.9 KB)