On 1/31/24 03:23, Simon Josefsson via Bug reports for autoconf wrote:
https://buildd.debian.org/status/fetch.php?pkg=libidn2&arch=loong64&ver=2.3.7-1&stamp=1706360630&raw=0
Here's the crucial part of that log:
configure:15961: checking for size_t configure:15961: gcc -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c >&5 In file included from /usr/include/linux/stat.h:5, from /usr/include/loongarch64-linux-gnu/bits/statx.h:31, from /usr/include/loongarch64-linux-gnu/sys/stat.h:465, from conftest.c:72: /usr/include/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory 5 | #include <asm/types.h> | ^~~~~~~~~~~~~ compilation terminated.
It appears that '#include <sys/stat.h>' doesn't work in some cases, and I suggest looking into why that is.