当前位置:首页 > 技术 > LINUX > 正文内容

manjaro 20 R329-Tina 编译 libfakeroot _STAT_VER 错误

Watrt3个月前 (11-19)LINUX4170

编译方法

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


打赏 支付宝打赏 微信打赏
分享给朋友:

相关文章

使用buildroot构建根文件系统

使用buildroot构建根文件系统

使用buildroot构建根文件系统buildroot可用于构建小型的linux根文件系统。大小最小可低至2M,与内核一起可以放入最小8M的spi flash中。buildroot中可以方便地加入第三方软件包(其实已经内置了很多),省去了手工交叉编译的烦恼。下载安装首先安装一些依赖,比如linux头文件:apt-get install linux-headers-$(uname -r)然后下载安装:wget https://buildroot.org/do...

关于CentOS 下 httpd 修改默认的目录后 403 错误的 解决

关于CentOS 下 httpd 修改默认的目录后 403 错误的 解决

step 1 : 首先改你要设置的目录权限       chmod -R 755 /home/html          -------------->>  /home/html   是你存放你的页面的目录   这里我顺便记录下关于selinux 的命令吧    getenforce=>查看 selinux的状态&nbs...

制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

0. 前言近几天买了一块荔枝派0开发板,以及官方配的480×272的屏幕。让我记录一下入坑与采坑过程。1. u-boot的编译git clone https://github.com/Lichee-Pi/u-boot -b v3s-current cd u-boot make ARCH=arm LicheePi_Zero_480x272LCD_defconfig make ARCH=arm CROSS...

Deepin Linux修复grub引导

Deepin Linux修复grub引导

环境说明:一直使用的是Win7+Deepin 15.5。后来全新安装了Win 10,需要修复grub第一步:在Windows操作系统下使用深度官方的U盘启动制作器 制作U盘第二步:开机U盘启动进入Deepin linux安装界面,待进入到安装界面选择语言时,按住Crtl+Alt+F2/F1进入Linux tty终端。并执行以下命令完成修复sudo fdisk -l/*根据查询结果确定deepin 的/目录和/boot目录所在的分区编号*/sudo mount&nbs...

 Debian 9.9 (stretch) 文件系统制作

Debian 9.9 (stretch) 文件系统制作

0. 准备工作:sudo apt install qemu-user-static -y sudo apt install debootstrap -y mkdir rootfs1. debootstrapdebootstrap --foreign --verbose --arch=armhf  stretch rootfs http...

修改U-BOOT,输出信息在LCD上显示,并使用USB连接键盘使用控制台

修改U-BOOT,输出信息在LCD上显示,并使用USB连接键盘使用控制台

修改方法:一:修改U-BOOT   include/configs/suniv.h#define CONFIG_BOOTCOMMAND"fatload mmc 0:1 0x80800000 zImage; "  \              &nb...

控制台终端输出颜色

控制台终端输出颜色

在使用putty、secureCRT、XShell等终端仿真器连接linux系统时,ls、vim等工具的输出都含有各种颜色,这些颜色的输出大大地增强了文本的可读性。一、终端文本颜色输出的一般示例在bash中,通常我们可以使用echo命令加-e选项输出各种颜色的文本,例如:echo -e "\033[31mRed Text\033[0m" echo -e "\033[32mGreen Text\033[0m...

f1c100s编译启动所需的uboot,kernel,rootfs

f1c100s编译启动所需的uboot,kernel,rootfs

 https://github.com/Icenowy/linux.git 有f1c100s-480272lcd-test和f1c100s分支, 然后自己手动修复一个 USB 问题,驱动就比较全了https://github.com/Lichee-Pi/linux.git 有nano-4.14-exp和nano-5.2-flash分支,用哪个合适个人画了块没有连接任何其他模块的F1C100S开发板,没有链接任何外设,本文是编译所有启动所需的三大件。(只要编...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。