免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3023 | 回复: 2
打印 上一主题 下一主题

[Linux] 编译alsa库的时候,遇到C compiler cannot create executables [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-07-16 11:56 |只看该作者 |倒序浏览
请问一下,我用arm-linux-gcc 4.3.3 编译alsa-lib 1.0.26的时候,报错configure:3540: error: C compiler cannot create executables
如下是编译器的打印的相关信息config.log


79 configure:3449: $? = 0
80 configure:3438: /work/imap/infotm_ende/work/output/host/usr/bin/arm-infotm-linux-gnueabi-gcc -v >&5
81 Using built-in specs.
82 Target: arm-infotm-linux-gnueabi
83 Configured with: /home/zhjun/toolchain_infotm/source/gcc-4.3/gcc-4.3-4.3.3.orig/gcc-4.3.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --ta    rget=arm-infotm-linux-gnueabi --prefix=/home/zhjun/toolchain_infotm/result --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --enable-languages=c,c++ --enab    le-shared --disable-libgomp --with-sysroot=/home/zhjun/toolchain_infotm/result/arm-infotm-linux-gnueabi --enable-threads=posix
84 Thread model: posix
85 gcc version 4.3.3 (GCC)
86 configure:3449: $? = 0
87 configure:3438: /work/imap/infotm_ende/work/output/host/usr/bin/arm-infotm-linux-gnueabi-gcc -V >&5
88 arm-infotm-linux-gnueabi-gcc: '-V' must come at the start of the command line
89 configure:3449: $? = 1
90 configure:3438: /work/imap/infotm_ende/work/output/host/usr/bin/arm-infotm-linux-gnueabi-gcc -qversion >&5
91 arm-infotm-linux-gnueabi-gcc: unrecognized option '-qversion'
92 arm-infotm-linux-gnueabi-gcc: no input files
93 configure:3449: $? = 1
94 configure:3469: checking whether the C compiler works
95 configure:3491: /work/imap/infotm_ende/work/output/host/usr/bin/arm-infotm-linux-gnueabi-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=    64  -pipe -Os  -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -lm conftest.c  >&5
96 conftest.c:1: error: bad value (cortex-a5) for -mtune= switch
97 conftest.c:1: sorry, unimplemented: -mfloat-abi=hard and VFP


问一下这个问题是编译器的问题吗?我的编译器不支持HF和VFPde,是不是我编译的  alsa-lib 1.0.26版本太高了。

求职 : 系统工程师等
论坛徽章:
5
技术图书徽章
日期:2014-04-19 22:01:05天蝎座
日期:2014-05-09 13:49:28双子座
日期:2014-06-16 15:08:042015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:55:28
2 [报告]
发表于 2014-07-16 18:01 |只看该作者
gcc没有装好或环境变量的问题吧

论坛徽章:
0
3 [报告]
发表于 2014-12-19 16:16 |只看该作者
我现在也是这个问题,配置环境:
主机:ubuntu 12.04 amd64
开发板 : ok6410
交叉编译器:arm-linux-gcc-4.3.2
编译器:gcc-4.6.3
环境都配置正确,gcc和arm-linux-gcc都可以正常工作!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP