嵌入式爱好者

查看: 60215|回复: 2

[Linux] A40i全编译出错(路径已确认正确)

[复制链接]

3

主题

7

帖子

28

积分

A40i/T3/T507/T527通行证

扫一扫,手机访问本帖
发表于 2021-7-1 13:56:40 | 显示全部楼层 |阅读模式
本帖最后由 海东 于 2021-7-1 14:00 编辑

平台:OKA40i-c V1.2
编译环境:OKA40i-VM_15_1_0-ubuntu18.04说明:
1.源码解码md5均验证无误
2.make menuconfig ARCH=arm修改了nfs配置
操作步骤:1.root@forlinx:~/workspace/allwinner/A40i/bsp/lichee# pwd
/root/workspace/allwinner/A40i/bsp/lichee
root@forlinx:~/workspace/allwinner/A40i/bsp/lichee# ./build.sh config

2.root@forlinx:~/workspace/allwinner/A40i/bsp/lichee# ./build.sh

build buidroot-201611...
xgnueabihf
sun8iw11p1_hf_defconfig
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun8iw11p1
INFO: platform: linux
INFO: kernel: linux-3.10
INFO: board: OKA40i_C
INFO: output: out/sun8iw11p1/linux/OKA40i_C
INFO: ----------------------------------------
INFO: build buildroot ...
make: Entering directory '/root/workspace/allwinner/A40i/bsp/lichee/buildroot-201611'
>>> libglib2 2.50.1 Building
PATH="/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/bin:/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/sbin:/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin:/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"  /usr/bin/make -j5  -C /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/libglib2-2.50.1/
make[1]: Entering directory '/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/libglib2-2.50.1'
cd . && /bin/sh /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/libglib2-2.50.1/missing automake-1.15 --gnu Makefile
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/automake-1.15 line 3936.
Makefile:862: recipe for target 'Makefile.in' failed
make[1]: *** [Makefile.in] Error 255
make[1]: Leaving directory '/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/libglib2-2.50.1'
package/pkg-generic.mk:216: recipe for target '/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/libglib2-2.50.1/.stamp_built' failed
make: *** [/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/libglib2-2.50.1/.stamp_built] Error 2
make: Leaving directory '/root/workspace/allwinner/A40i/bsp/lichee/buildroot-201611'
ERROR: build buildroot Failed


望帮助解答,感谢!


回复

使用道具 举报

0

主题

1173

帖子

2203

积分

发表于 2021-7-1 16:48:01 | 显示全部楼层
buildroot201611源码不开源,您跳过这一部分编译就可以了,其他编译失败的信息您可以具体看一下对应文件的对应行数有什么问题
点评回复 支持 反对

使用道具 举报

0

主题

3

帖子

10

积分

A40i/T3/T507/T527通行证

发表于 2021-7-4 22:13:16 | 显示全部楼层
/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/automake-1.15 第 3936 行
将 - $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
修改为 - $text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
试试
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2025-1-9 04:48

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表