manjaro 20 R329-Tina 编译 libfakeroot _STAT_VER 错误
编译方法
juwan@juwan-n85-dls:~/R329-Tina$ source build/envsetup.sh Setup env done! Please run lunch next. juwan@juwan-n85-dls:~/R329-Tina$ lunch You're building on Linux Lunch menu... pick a combo: 1. r329_evb1-tina 2. r329_evb1_xr829-tina 3. r329_evb5_min-tina 4. r329_evb5_v1-tina 5. r329_evb5-tina 6. r329_evb6-tina 7. r329_fpga-tina 8. r329_robot-tina 9. r329_spk1-tina 10. r329_ubidemo-tina Which would you like? [Default r329_evb5_v1]: ============================================ TINA_BUILD_TOP=/home/juwan/R329-Tina TINA_TARGET_ARCH=aarch64 TARGET_PRODUCT=r329_evb5_v1 TARGET_PLATFORM=r329 TARGET_BOARD=r329-evb5_v1 TARGET_PLAN=evb5_v1 TARGET_BUILD_VARIANT=tina TARGET_BUILD_TYPE=release TARGET_KERNEL_VERSION=4.9 TARGET_UBOOT=u-boot-2018 TARGET_CHIP=sun50iw11p1 ============================================ juwan@juwan-n85-dls:~/R329-Tina$ make -j1 V=s
然后就开始跑了。
^ 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[6]: *** [Makefile:638: libfakeroot.lo] Error 1 make[6]: Leaving directory '/home/dls/desktop/R329-Tina/out/r329-evb5_v1/compile_dir/host/fakeroot-1.20.2'
patch /home/dls/desktop/R329-Tina/out/r329-evb5_v1/compile_dir/host/fakeroot-1.20.2/libfakeroot.c
diff --git a/libfakeroot.c b/libfakeroot.c index 3e80e38..14e56bc 100644 --- a/libfakeroot.c +++ b/libfakeroot.c @@ -90,6 +90,10 @@ #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b) #endif +#ifndef _STAT_VER +#define _STAT_VER 0 +#endif + /* These INT_* (which stands for internal) macros should always be used when the fakeroot library owns the storage of the stat variable.
manjaro 和 Ubuntu 的用户组不同,在 fakeroot 执行的时候,会掉用户组,需要自己补,其实建议用 docker 来编译。
https://blog.csdn.net/xiaoqiaoq0/article/details/112913357
烧录工具为 5.4 以上的内核稍微修了一下 Makefile https://github.com/junhuanchen/sunxi-livesuite


支付宝打赏
微信打赏 