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

manjaro 20 R329-Tina 编译 libfakeroot _STAT_VER 错误

Watrt5个月前 (11-19)LINUX12850

编译方法

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


打赏 支付宝打赏 微信打赏

相关文章

制作荔枝派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...

荔枝派nano(f1c100s)的SPI-Flash系统编译创建全过程

荔枝派nano(f1c100s)的SPI-Flash系统编译创建全过程

前言本文的目标是创建一个运行在SPI-Flash上的精简系统,附带填一些前人没有提及的坑。在开始之前,请先通读官方教程的即食部分(U-Boot)、Linux编译和SPI-Flash系统的创建部分的教程,并搭建好编译工具链。以下我假设你已经按照上面的教程下载好了U-Boot和Linux内核,并且到Buildroot的官网下载好了Buildroot(但没按教程创建config文件)。SPI-Flash的分区结构以下是我这里的分区结构。你可以自由的分配后面两个分区的大小。ID  S...

 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...

debootstrap报"Release signed by unknown key"错误的解决方法

debootstrap报"Release signed by unknown key"错误的解决方法

1、下载最新的ASC文件:wget https://ftp-master.debian.org/keys/release-11.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-11.gpg注意这里的11对应debian的版本号。我这里是debian11 (bullseye)2、debootstrap指定asc文件sudo&...

老是提示:newer kernel available 解决方法

老是提示:newer kernel available 解决方法

这个是由于没有正确的安装内核造成的。可以直接关掉提示 sudo apt purge needrestart...

Configure & Build

Configure & Build

Configure and build Linux kernel for Surface RTEditing kernel build configurationFirst run the command make ARCH=arm tegra_defconfigThis will create a standard kernel config for tegra SoC's.Open the file .config in the kernel source directory wit...

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开发板,没有链接任何外设,本文是编译所有启动所需的三大件。(只要编...

发表评论

访客

看不清,换一张

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