I was following the readme on the github page. I then got to the quick build instructions and during make I got the following error :
I am on Debian Trixie amd64.
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/dlsa/devtools/VisionFive2/work/buildroot_initramfs/host/include -O2 -I/home/dlsa/devtools/VisionFive2/work/buildroot_initramfs/host/include -c libfakeroot.c -fPIC -DPIC -o .libs/libfakeroot.o
In file included from communicate.h:19,
from libfakeroot.c:60:
config.h:271:29: error: unknown type name ‘unknown’; did you mean ‘union’?
271 | #define SETGROUPS_SIZE_TYPE unknown
| ^~~~~~~
wrapped.h:124:30: note: in expansion of macro ‘SETGROUPS_SIZE_TYPE’
124 | extern int (*next_setgroups)(SETGROUPS_SIZE_TYPE size, const gid_t *list);
| ^~~~~~~~~~~~~~~~~~~
config.h:271:29: error: unknown type name ‘unknown’; did you mean ‘union’?
271 | #define SETGROUPS_SIZE_TYPE unknown
| ^~~~~~~
wraptmpf.h:372:20: note: in expansion of macro ‘SETGROUPS_SIZE_TYPE’
372 | int tmp_setgroups (SETGROUPS_SIZE_TYPE size, const gid_t *list){
| ^~~~~~~~~~~~~~~~~~~
config.h:271:29: error: unknown type name ‘unknown’; did you mean ‘union’?
271 | #define SETGROUPS_SIZE_TYPE unknown
| ^~~~~~~
wrapdef.h:124:23: note: in expansion of macro ‘SETGROUPS_SIZE_TYPE’
124 | int (*next_setgroups)(SETGROUPS_SIZE_TYPE size, const gid_t *list)=tmp_setgroups;
| ^~~~~~~~~~~~~~~~~~~
In file included from libfakeroot.c:241:
wrapstruct.h:125:14: error: ‘next_setgroups’ undeclared here (not in a function); did you mean ‘next_getgroups’?
125 | {(void(*))&next_setgroups, "setgroups"},
| ^~~~~~~~~~~~~~
| next_getgroups
libfakeroot.c: In function ‘getgroups’:
libfakeroot.c:1626:12: error: implicit declaration of function ‘next_setgroups’; did you mean ‘next_getgroups’? [-Wimplicit-function-declaration]
1626 | return next_setgroups(size, list);
| ^~~~~~~~~~~~~~
| next_getgroups
libfakeroot.c: At top level:
config.h:271:29: error: unknown type name ‘unknown’; did you mean ‘union’?
271 | #define SETGROUPS_SIZE_TYPE unknown
| ^~~~~~~
libfakeroot.c:1634:15: note: in expansion of macro ‘SETGROUPS_SIZE_TYPE’
1634 | int setgroups(SETGROUPS_SIZE_TYPE size, const gid_t *list){
| ^~~~~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘fts_read’:
libfakeroot.c:2072:22: error: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
2072 | SEND_GET_STAT64(r->fts_statp, _STAT_VER);
| ~^~~~~~~~~~~
| |
| struct stat *
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
| ^
libtool: link: /usr/bin/ar cru .libs/libmacosx.a .libs/libfakeroot_inode64.o .libs/libfakeroot_unix2003.o
communicate.h:209:44: note: expected ‘struct stat64 *’ but argument is of type ‘struct stat *’
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~~~~~~~~~~~~~^~~
libfakeroot.c: In function ‘fts_children’:
/usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
libfakeroot.c:2095:24: error: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
2095 | SEND_GET_STAT64(r->fts_statp, _STAT_VER);
| ~^~~~~~~~~~~
| |
| struct stat *
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
| ^
communicate.h:209:44: note: expected ‘struct stat64 *’ but argument is of type ‘struct stat *’
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~~~~~~~~~~~~~^~~
libtool: link: /usr/bin/ranlib .libs/libmacosx.a
make[5]: *** [Makefile:672: libfakeroot.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: link: ( cd ".libs" && rm -f "libmacosx.la" && ln -s "../libmacosx.la" "libmacosx.la" )
make[4]: *** [Makefile:690: all-recursive] Error 1
make[3]: *** [Makefile:459: all] Error 2
make[2]: *** [package/pkg-generic.mk:295: /home/dlsa/devtools/VisionFive2/work/buildroot_initramfs/build/host-fakeroot-1.25.3/.stamp_built] Error 2
make[1]: *** [Makefile:84: _all] Error 2
make[1]: Leaving directory '/home/dlsa/devtools/VisionFive2/buildroot'
make: *** No rule to make target '/home/dlsa/devtools/VisionFive2/work/buildroot_initramfs/host/bin/riscv64-buildroot-linux-gnu-gcc', needed by '/home/dlsa/devtools/VisionFive2/work/u-boot/u-boot.bin'. Stop.
I was following the readme on the github page. I then got to the quick build instructions and during make I got the following error :
I am on Debian Trixie amd64.