linux开发 | rootfs | 编译buildroot出错及处理

问题1: 编译出错LOG:make[1]: *** […/lib/libncurses.a] Error 2

/usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/include -D_GNU_SOURCE -DNDEBUG -I. -I../include -I/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/include/ncurses -O2 -I/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/include  --param max-inline-insns-single=1200 -c ../ncurses/lib_gen.c -o ../objects/lib_gen.o
/usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/include -D_GNU_SOURCE -DNDEBUG -I. -I../include -I/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/include/ncurses -O2 -I/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/include  --param max-inline-insns-single=1200 -c ../ncurses/./base/lib_getch.c -o ../objects/lib_getch.o
In file included from ../ncurses/curses.priv.h:283:0,
                 from ../ncurses/lib_gen.c:19:
_68706.c:835:15: error: expected ‘)’ before ‘int’
../include/curses.h:1594:56: note: in definition of macro ‘mouse_trafo’
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:785: recipe for target '../objects/lib_gen.o' failed
make[2]: *** [../objects/lib_gen.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/fly/workSpace/linux/x210bv3s/qt_x210v3s_160307/buildroot/output/build/host-ncurses-5.9/ncurses'
Makefile:307: recipe for target '../lib/libncurses.a' failed
make[1]: *** [../lib/libncurses.a] Error 2
make[1]: Leaving directory '/home/fly/workSpace/linux/x210bv3s/qt_x210v3s_160307/buildroot/output/build/host-ncurses-5.9/progs'
package/pkg-generic.mk:114: recipe for target '/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/build/host-ncurses-5.9/.stamp_built' failed
make: *** [/home/fly/x210bv3s/qt_x210v3s_160307/buildroot/output/build/host-ncurses-5.9/.stamp_built] Error 2

搜索如下部分:

[fly@752fac4b02e9 buildroot]$ grep "#define mouse_trafo(y,x,to_screen)" ./ -rHn
./output/build/ncurses-5.9/include/curses.tail:114:#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
./output/build/host-ncurses-5.9/include/curses.h:1594:#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
./output/build/host-ncurses-5.9/include/curses.tail:114:#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)

在文件buildroot/output/build/host-ncurses-5.9/include/curses.tail文件中找到下面这一句,去掉注释 /* generated */
注意: 需要修改两个地方;
同时也需要注意,在新下载的代码或者buildroot目录执行:make clean后需要这样修改;

编译ncurses错误处理及解决办法
在这里插入图片描述

问题2: 编译出错LOG

aclocal.m4:1203: LT_INIT is expanded from...
configure.ac:87: the top level
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/bin/automake line 4159.
autoreconf: /home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/bin/automake failed with exit status: 255
package/pkg-generic.mk:106: recipe for target '/home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/build/util-linux-2.20.1/.stamp_configured' failed
make: *** [/home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/build/util-linux-2.20.1/.stamp_configured] Error 1

请参考:S5PV210 | rootfs编译报错-20231112-01

问题3:

S5PV210 | rootfs编译报错-20231112-01
https://www.cnblogs.com/jackron/p/13974393.html
在这里插入图片描述

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/bin/automake line 4159. autoreconf: /home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/host/usr/bin/automake failed with exit status: 255 package/pkg-generic.mk:106: recipe for target '/home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/build/util-linux-2.20.1/.stamp_configured' failed make: *** [/home/fly/project/x210bv3s/qt_x210v3s_160307/buildroot/output/build/util-linux-2.20.1/.stamp_configured] Error 1

在这里插入图片描述

/* 是staging_dir/host/bin/automake文件串的4160行报错,因为新版的perl不在支持左大括号的使用,打开这个文件删掉4160行的大括号{},问题解决。 */

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值