嵌入式爱好者

查看: 29648|回复: 4

[Linux] 编译失败,麻烦帮看一下

[复制链接]

17

主题

42

帖子

138

积分

A40i/T3/T507/T527通行证

扫一扫,手机访问本帖
发表于 2021-7-4 09:23:59 | 显示全部楼层 |阅读模式
本帖最后由 mushine 于 2021-7-4 12:29 编辑

forlinx@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: OKT3_C
INFO: output: out/sun8iw11p1/linux/OKT3_C
INFO: ----------------------------------------
INFO: build buildroot ...
make: Entering directory '/home/forlinx/workspace/allwinner/A40i/bsp/lichee/buildroot-201611'
>>> alsa-lib 1.1.2 Configuring
>>> alsa-lib 1.1.2 Autoreconfiguring
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/forlinx/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/automake line 3936.
autoreconf: /home/forlinx/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/automake failed with exit status: 255
package/pkg-generic.mk:206: recipe for target '/home/forlinx/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/alsa-lib-1.1.2/.stamp_configured' failed
make: *** [/home/forlinx/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/alsa-lib-1.1.2/.stamp_configured] Error 1
make: Leaving directory '/home/forlinx/workspace/allwinner/A40i/bsp/lichee/buildroot-201611'
ERROR: build buildroot Failed
编译时,出现问题,用的是官方的虚拟机linux环境,下载镜像,校验无误,其他未改动,直接全编译出现这个问题。是不能全编译吗?

回复

使用道具 举报

0

主题

3

帖子

10

积分

A40i/T3/T507/T527通行证

发表于 2021-7-4 22:09:52 | 显示全部楼层
编辑提示的文件 **的行号 **
例如 /usr/bin/automake 第 3936 行
将 - $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
修改为 - $text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
点评回复 支持 反对

使用道具 举报

0

主题

1173

帖子

2195

积分

发表于 2021-7-5 08:41:38 | 显示全部楼层
您用的是ubuntu18.04吗,和开发环境一起下载的还有一个patch包和readme文档,您看一下文档里的全编译部分

点评

您好,如果是分步编译的话,是不是就不需要这个patch包了  详情 回复 发表于 2021-8-11 09:48
点评回复 支持 反对

使用道具 举报

0

主题

1

帖子

9

积分

A40i/T3/T507/T527通行证

发表于 2021-8-11 09:48:40 | 显示全部楼层
zhichao 发表于 2021-7-5 08:41
您用的是ubuntu18.04吗,和开发环境一起下载的还有一个patch包和readme文档,您看一下文档里的全编译部分

您好,如果是分步编译的话,是不是就不需要这个patch包了
点评回复 支持 反对

使用道具 举报

0

主题

1173

帖子

2195

积分

发表于 2021-8-11 12:00:45 | 显示全部楼层
是的,单独编译不需要这个patch包
点评回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 18:54

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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