Error when building.
TechStudent10 opened this issue · 7 comments
Hello! I have tried to build snakeware manually after making some changes to snakewm so that I can test it in QEMU. After installing all the buildroot dependencies, I run ./build.sh x86-64
.
Here's the output:
#
# configuration written to /home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/.config
#
/usr/bin/make -j1 O=/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
>>> host-fakeroot 1.20.2 Building
PATH="/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/bin:/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" PKG_CONFIG="/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/lib/pkgconfig:/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/share/pkgconfig" /usr/bin/make -j5 -C /home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/build/host-fakeroot-1.20.2/
/usr/bin/make all-recursive
Making all in scripts
make[4]: Nothing to be done for 'all'.
Making all in doc
Making all in de
make[5]: Nothing to be done for 'all'.
Making all in es
make[5]: Nothing to be done for 'all'.
Making all in fr
make[5]: Nothing to be done for 'all'.
Making all in nl
make[5]: Nothing to be done for 'all'.
Making all in pt
make[5]: Nothing to be done for 'all'.
Making all in sv
make[5]: Nothing to be done for 'all'.
make[5]: Nothing to be done for 'all-am'.
Making all in test
make[4]: Nothing to be done for 'all'.
/bin/bash ./libtool --tag=CC --mode=compile /home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/bin/ccache /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/include -O2 -I/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/include -c -o libfakeroot.lo libfakeroot.c
libtool: compile: /home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/bin/ccache /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/include -O2 -I/home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/host/include -c libfakeroot.c -fPIC -DPIC -o .libs/libfakeroot.o
In file included from communicate.h:20,
from libfakeroot.c:60:
libfakeroot.c: In function ‘chown’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:810:5: note: in expansion of macro ‘INT_NEXT_STAT’
810 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c:99:40: note: each undeclared identifier is reported only once for each function it appears in
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:810:5: note: in expansion of macro ‘INT_NEXT_STAT’
810 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘lchown’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:842:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
842 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fchown’:
libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:863:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
863 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fchownat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:889:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
889 | r=INT_NEXT_FSTATAT(dir_fd, path, &st, (flags & (AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH | AT_NO_AUTOMOUNT)));
| ^~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘chmod’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:920:5: note: in expansion of macro ‘INT_NEXT_STAT’
920 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘lchmod’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:960:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
960 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fchmod’:
libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:994:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
994 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fchmodat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:1026:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
1026 | r=INT_NEXT_FSTATAT(dir_fd, path, &st, flags & (AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH | AT_NO_AUTOMOUNT));
| ^~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘__xmknod’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1073:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1073 | r=INT_NEXT_LSTAT(pathname, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘__xmknodat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:1113:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
1113 | r=INT_NEXT_FSTATAT(dir_fd, pathname, &st, 0);
| ^~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘mkdir’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1149:5: note: in expansion of macro ‘INT_NEXT_STAT’
1149 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘mkdirat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:1179:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
1179 | r=INT_NEXT_FSTATAT(dir_fd, path, &st, 0);
| ^~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘unlink’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1213:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1213 | r=INT_NEXT_LSTAT(pathname, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘unlinkat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:1232:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
1232 | r=INT_NEXT_FSTATAT(dir_fd, pathname, &st, (flags&~AT_REMOVEDIR) | AT_SYMLINK_NOFOLLOW);
| ^~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘rmdir’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1256:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1256 | r=INT_NEXT_LSTAT(pathname, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘remove’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1276:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1276 | r=INT_NEXT_LSTAT(pathname, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘rename’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1306:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1306 | r=INT_NEXT_LSTAT(newpath, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘renameat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:1330:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
1330 | r=INT_NEXT_FSTATAT(newdir_fd, newpath, &st, AT_SYMLINK_NOFOLLOW);
| ^~~~~~~~~~~~~~~~
libfakeroot.c: In function ‘setxattr’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1664:5: note: in expansion of macro ‘INT_NEXT_STAT’
1664 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘lsetxattr’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1685:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1685 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fsetxattr’:
libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1706:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
1706 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘getxattr’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1727:5: note: in expansion of macro ‘INT_NEXT_STAT’
1727 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘lgetxattr’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1748:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1748 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fgetxattr’:
libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1769:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
1769 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘listxattr’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1790:5: note: in expansion of macro ‘INT_NEXT_STAT’
1790 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘llistxattr’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1811:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1811 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘flistxattr’:
libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1832:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
1832 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘removexattr’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1853:5: note: in expansion of macro ‘INT_NEXT_STAT’
1853 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function ‘lremovexattr’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1874:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1874 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fremovexattr’:
libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1895:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
1895 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function ‘fts_read’:
libfakeroot.c:1959:22: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
1959 | 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)
| ^
In file included from libfakeroot.c:60:
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’:
libfakeroot.c:1982:24: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
1982 | 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)
| ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected ‘struct stat64 *’ but argument is of type ‘struct stat *’
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~~~~~~~~~~~~~^~~
make[4]: *** [Makefile:652: libfakeroot.lo] Error 1
make[3]: *** [Makefile:670: all-recursive] Error 1
make[2]: *** [Makefile:445: all] Error 2
make[1]: *** [package/pkg-generic.mk:269: /home/techstudent10/Projects/CustomOS/snakeware/buildroot_x86-64/output/build/host-fakeroot-1.20.2/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
Failed to generate rootfs.iso.
I honestly don't know what is happening. Can someone please help?
A quick update:
I've tried running make clean
then ./build.sh x86-64
and I still get an error.
Here's the output: output.txt
I'm not sure if this has anything to do with the Python code I modified in the snakewm/
directory.
Another quick update:
I've tried re-cloning the repository, and building using the same command.
It doesn't work. For context, I am running Ubuntu 21.04 and have installed all of the buildroot dependencies on my Raspberry Pi 4 and it still doesn't work. I honestly don't know what's happening.
Update:
After changing the Buildroot Version in the build.sh file, I get no error...
But it freezes up at some random point.
Hey, so you were right about fixing the build error by updating buildroot to the latest version. I just saw this issue so I updated buildroot and was able to build. The build probably isn't freezing up, your first build will take a very long time, well over an hour, especially if the machine you're building on is not very beefy. I'm closing this because the build works again! :D
@joshiemoore Thanks! I'll try it sometime later on my Raspberry Pi 4. Just a question, can I build for x86_64 on an arm64 device?
@joshiemoore So I have been compiling Snakeware for a couple of hours and it's hanging. You said that it would take well over an hour to compile on a not so beefy machine. What if that machine was a Raspberry Pi 4 with 4GB of RAM compiling an x86_64 build?
I would think that attempting a full snakeware build on an RPi host could take like a day or more, I wouldn't recommend using an RPi as your dev environment for this.
https://elinux.org/Raspberry_Pi_Kernel_Compilation
The "Overview" section of this page says that compiling a kernel on an RPi took them 12.5 hours, and snakeware builds a lot more than just the Linux kernel.