xiangmy#build > make make -C /home/mingyuan/Documents/optee-qemu/build/../optee_os O=out/arm CFG_ARM64_core=n PLATFORM=vexpress-qemu_virt CROSS_COMPILE="/usr/bin/ccache /home/mingyuan/Documents/optee-qemu/build/../toolchains/aarch32/bin/arm-linux-gnueabihf-" CROSS_COMPILE_core="/usr/bin/ccache /home/mingyuan/Documents/optee-qemu/build/../toolchains/aarch32/bin/arm-linux-gnueabihf-" CROSS_COMPILE_ta_arm64="/usr/bin/ccache /home/mingyuan/Documents/optee-qemu/build/../toolchains/aarch64/bin/aarch64-linux-gnu-" CROSS_COMPILE_ta_arm32="/usr/bin/ccache /home/mingyuan/Documents/optee-qemu/build/../toolchains/aarch32/bin/arm-linux-gnueabihf-" CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=1 CFG_TEE_BENCHMARK=n make[1]: Entering directory '/home/mingyuan/Documents/optee-qemu/optee_os' CHK out/arm/conf.mk CHK out/arm/include/generated/conf.h CHK out/arm/conf.cmake CHK out/arm/export-ta_arm32/mk/conf.mk make[1]: Leaving directory '/home/mingyuan/Documents/optee-qemu/optee_os' cd /home/mingyuan/Documents/optee-qemu/build/../u-boot && \ scripts/kconfig/merge_config.sh /home/mingyuan/Documents/optee-qemu/build/../u-boot/configs/qemu_arm_defconfig /home/mingyuan/Documents/optee-qemu/build/../build/kconfigs/u-boot_qemu_virt_v7.conf Using /home/mingyuan/Documents/optee-qemu/build/../u-boot/configs/qemu_arm_defconfig as base Merging /home/mingyuan/Documents/optee-qemu/build/../build/kconfigs/u-boot_qemu_virt_v7.conf Value of CONFIG_ENV_IS_IN_FLASH is redefined by fragment /home/mingyuan/Documents/optee-qemu/build/../build/kconfigs/u-boot_qemu_virt_v7.conf: Previous value: CONFIG_ENV_IS_IN_FLASH=y New value: # CONFIG_ENV_IS_IN_FLASH is not set Value of CONFIG_MTD_NOR_FLASH is redefined by fragment /home/mingyuan/Documents/optee-qemu/build/../build/kconfigs/u-boot_qemu_virt_v7.conf: Previous value: CONFIG_MTD_NOR_FLASH=y New value: # CONFIG_MTD_NOR_FLASH is not set make[1]: Entering directory '/home/mingyuan/Documents/optee-qemu/u-boot' scripts/kconfig/conf --alldefconfig Kconfig # # configuration written to .config # make[1]: Leaving directory '/home/mingyuan/Documents/optee-qemu/u-boot' Value requested for CONFIG_ENV_SECT_SIZE not in final .config Requested value: CONFIG_ENV_SECT_SIZE=0x40000 Actual value: Value requested for CONFIG_ENV_ADDR not in final .config Requested value: CONFIG_ENV_ADDR=0x4000000 Actual value: CROSS_COMPILE="/usr/bin/ccache /home/mingyuan/Documents/optee-qemu/build/../toolchains/aarch32/bin/arm-linux-gnueabihf-" make -C /home/mingyuan/Documents/optee-qemu/build/../u-boot all make[1]: Entering directory '/home/mingyuan/Documents/optee-qemu/u-boot' scripts/kconfig/conf --syncconfig Kconfig CHK include/config.h CFG u-boot.cfg GEN include/autoconf.mk GEN include/autoconf.mk.dep CHK include/config/uboot.release CHK include/generated/version_autogenerated.h CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h CHK include/generated/generic-asm-offsets.h CHK include/generated/asm-offsets.h HOSTCC tools/mkenvimage.o HOSTLD tools/mkenvimage HOSTCC tools/fit_image.o HOSTCC tools/image-host.o HOSTCC tools/dumpimage.o HOSTLD tools/dumpimage HOSTCC tools/mkimage.o HOSTLD tools/mkimage HOSTLD tools/fit_info HOSTLD tools/fit_check_sign CC cmd/version.o LD cmd/built-in.o CC common/main.o LD common/built-in.o CC lib/efi_loader/helloworld.o AS lib/efi_loader/efi_crt0.o CC lib/efi_loader/efi_reloc.o CC lib/efi_loader/efi_freestanding.o LD lib/efi_loader/helloworld_efi.so OBJCOPY lib/efi_loader/helloworld.efi CC lib/efi_selftest/efi_selftest_miniapp_exception.o AS lib/efi_selftest/efi_crt0.o CC lib/efi_selftest/efi_reloc.o CC lib/efi_selftest/efi_freestanding.o LD lib/efi_selftest/efi_selftest_miniapp_exception_efi.so OBJCOPY lib/efi_selftest/efi_selftest_miniapp_exception.efi lib/efi_selftest/../../tools/file2include lib/efi_selftest/efi_selftest_miniapp_exception.efi > \ lib/efi_selftest/efi_miniapp_file_image_exception.h CC lib/efi_selftest/efi_selftest_exception.o CC lib/efi_selftest/efi_selftest_miniapp_exit.o LD lib/efi_selftest/efi_selftest_miniapp_exit_efi.so OBJCOPY lib/efi_selftest/efi_selftest_miniapp_exit.efi lib/efi_selftest/../../tools/file2include lib/efi_selftest/efi_selftest_miniapp_exit.efi > \ lib/efi_selftest/efi_miniapp_file_image_exit.h CC lib/efi_selftest/efi_selftest_loadimage.o CC lib/efi_selftest/efi_selftest_startimage_exit.o CC lib/efi_selftest/efi_selftest_miniapp_return.o LD lib/efi_selftest/efi_selftest_miniapp_return_efi.so OBJCOPY lib/efi_selftest/efi_selftest_miniapp_return.efi lib/efi_selftest/../../tools/file2include lib/efi_selftest/efi_selftest_miniapp_return.efi > \ lib/efi_selftest/efi_miniapp_file_image_return.h CC lib/efi_selftest/efi_selftest_startimage_return.o LD lib/efi_selftest/built-in.o CC lib/smbios.o CC lib/display_options.o LD lib/built-in.o LD u-boot OBJCOPY u-boot.srec OBJCOPY u-boot-nodtb.bin COPY u-boot.bin SYM u-boot.sym CFGCHK u-boot.cfg make[1]: Leaving directory '/home/mingyuan/Documents/optee-qemu/u-boot' CROSS_COMPILE="/usr/bin/ccache /home/mingyuan/Documents/optee-qemu/build/../toolchains/aarch32/bin/arm-linux-gnueabihf-" make -C /home/mingyuan/Documents/optee-qemu/build/../trusted-firmware-a BL32=/home/mingyuan/Documents/optee-qemu/build/../optee_os/out/arm/core/tee-header_v2.bin BL32_EXTRA1=/home/mingyuan/Documents/optee-qemu/build/../optee_os/out/arm/core/tee-pager_v2.bin BL32_EXTRA2=/home/mingyuan/Documents/optee-qemu/build/../optee_os/out/arm/core/tee-pageable_v2.bin BL33=/home/mingyuan/Documents/optee-qemu/build/../u-boot/u-boot.bin ARM_ARCH_MAJOR=7 ARCH=aarch32 PLAT=qemu ARM_TSP_RAM_LOCATION=tdram BL32_RAM_LOCATION=tdram AARCH32_SP=optee DEBUG=1 LOG_LEVEL=50 all fip make[1]: Entering directory '/home/mingyuan/Documents/optee-qemu/trusted-firmware-a' Including bl32/optee/optee.mk Trusted Firmware-A built for OP-TEE payload support Building qemu make[2]: Nothing to be done for 'all'. Trusted Boot Firmware BL2: offset=0x100, size=0x61BD, cmdline="--tb-fw" Secure Payload BL32 (Trusted OS): offset=0x62BD, size=0x1C, cmdline="--tos-fw" Secure Payload BL32 Extra1 (Trusted OS Extra1): offset=0x62D9, size=0x765C0, cmdline="--tos-fw-extra1" Secure Payload BL32 Extra2 (Trusted OS Extra2): offset=0x7C899, size=0x0, cmdline="--tos-fw-extra2" Non-Trusted Firmware BL33: offset=0x7C899, size=0x92D04, cmdline="--nt-fw" Built build/qemu/debug/fip.bin successfully make[1]: Leaving directory '/home/mingyuan/Documents/optee-qemu/trusted-firmware-a' mkdir -p /home/mingyuan/Documents/optee-qemu/build/../out/bin ln -sf /home/mingyuan/Documents/optee-qemu/build/../trusted-firmware-a/build/qemu/debug/bl1.bin /home/mingyuan/Documents/optee-qemu/build/../out/bin ln -sf /home/mingyuan/Documents/optee-qemu/build/../trusted-firmware-a/build/qemu/debug/bl2.bin /home/mingyuan/Documents/optee-qemu/build/../out/bin ln -sf /home/mingyuan/Documents/optee-qemu/build/../optee_os/out/arm/core/tee-header_v2.bin /home/mingyuan/Documents/optee-qemu/build/../out/bin/bl32.bin ln -sf /home/mingyuan/Documents/optee-qemu/build/../optee_os/out/arm/core/tee-pager_v2.bin /home/mingyuan/Documents/optee-qemu/build/../out/bin/bl32_extra1.bin ln -sf /home/mingyuan/Documents/optee-qemu/build/../optee_os/out/arm/core/tee-pageable_v2.bin /home/mingyuan/Documents/optee-qemu/build/../out/bin/bl32_extra2.bin ln -sf /home/mingyuan/Documents/optee-qemu/build/../u-boot/u-boot.bin /home/mingyuan/Documents/optee-qemu/build/../out/bin/bl33.bin make[1]: Entering directory '/home/mingyuan/Documents/optee-qemu/buildroot' GEN /home/mingyuan/Documents/optee-qemu/out-br/Makefile # # configuration written to /home/mingyuan/Documents/optee-qemu/out-br/.config # make[1]: Leaving directory '/home/mingyuan/Documents/optee-qemu/buildroot' make[1]: Entering directory '/home/mingyuan/Documents/optee-qemu/out-br' /usr/bin/make -j1 O=/home/mingyuan/Documents/optee-qemu/out-br HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig GEN /home/mingyuan/Documents/optee-qemu/out-br/Makefile >>> host-fakeroot 1.20.2 Building PATH="/home/mingyuan/Documents/optee-qemu/out-br/host/bin:/home/mingyuan/Documents/optee-qemu/out-br/host/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" PKG_CONFIG="/home/mingyuan/Documents/optee-qemu/out-br/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/mingyuan/Documents/optee-qemu/out-br/host/lib/pkgconfig:/home/mingyuan/Documents/optee-qemu/out-br/host/share/pkgconfig" /usr/bin/make -j13 -C /home/mingyuan/Documents/optee-qemu/out-br/build/host-fakeroot-1.20.2/ /usr/bin/make all-recursive Making all in scripts make[5]: Nothing to be done for 'all'. Making all in doc Making all in de make[6]: Nothing to be done for 'all'. Making all in es make[6]: Nothing to be done for 'all'. Making all in fr make[6]: Nothing to be done for 'all'. Making all in nl make[6]: Nothing to be done for 'all'. Making all in pt make[6]: Nothing to be done for 'all'. Making all in sv make[6]: Nothing to be done for 'all'. make[6]: Nothing to be done for 'all-am'. Making all in test make[5]: Nothing to be done for 'all'. /bin/sh ./libtool --tag=CC --mode=compile /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -c -o libfakeroot.lo libfakeroot.c /bin/sh ./libtool --tag=CC --mode=link /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -L/home/mingyuan/Documents/optee-qemu/out-br/host/lib -Wl,-rpath,/home/mingyuan/Documents/optee-qemu/out-br/host/lib -o libmacosx.la libfakeroot_inode64.lo libfakeroot_unix2003.lo -ldl /bin/sh ./libtool --tag=CC --mode=link /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -L/home/mingyuan/Documents/optee-qemu/out-br/host/lib -Wl,-rpath,/home/mingyuan/Documents/optee-qemu/out-br/host/lib -o faked faked.o libcommunicate.la -ldl /bin/sh ./libtool --tag=CC --mode=link /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -L/home/mingyuan/Documents/optee-qemu/out-br/host/lib -Wl,-rpath,/home/mingyuan/Documents/optee-qemu/out-br/host/lib -o simple simple.o -ldl libtool: compile: /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -c libfakeroot.c -fPIC -DPIC -o .libs/libfakeroot.o libtool: link: /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -Wl,-rpath -Wl,/home/mingyuan/Documents/optee-qemu/out-br/host/lib -o simple simple.o -L/home/mingyuan/Documents/optee-qemu/out-br/host/lib -ldl libtool: link: /usr/bin/ar cru .libs/libmacosx.a .libs/libfakeroot_inode64.o .libs/libfakeroot_unix2003.o /usr/bin/ar: `u' modifier ignored since `D' is the default (see `U') libtool: link: /home/mingyuan/Documents/optee-qemu/out-br/host/bin/ccache /usr/bin/gcc -O2 -I/home/mingyuan/Documents/optee-qemu/out-br/host/include -Wl,-rpath -Wl,/home/mingyuan/Documents/optee-qemu/out-br/host/lib -o faked faked.o -L/home/mingyuan/Documents/optee-qemu/out-br/host/lib ./.libs/libcommunicate.a -ldl libtool: link: /usr/bin/ranlib .libs/libmacosx.a libtool: link: ( cd ".libs" && rm -f "libmacosx.la" && ln -s "../libmacosx.la" "libmacosx.la" ) 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[5]: *** [Makefile:652: libfakeroot.lo] Error 1 make[4]: *** [Makefile:670: all-recursive] Error 1 make[3]: *** [Makefile:445: all] Error 2 make[2]: *** [package/pkg-generic.mk:250: /home/mingyuan/Documents/optee-qemu/out-br/build/host-fakeroot-1.20.2/.stamp_built] Error 2 make[1]: *** [Makefile:23: _all] Error 2 make[1]: Leaving directory '/home/mingyuan/Documents/optee-qemu/out-br' make: *** [common.mk:300: buildroot] Error 2