Chinaunix

标题: 编译alsa库的时候,遇到C compiler cannot create executables [打印本页]

作者: zengweitotty    时间: 2014-07-16 11:56
标题: 编译alsa库的时候,遇到C compiler cannot create executables
请问一下,我用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版本太高了。

作者: qxhgd    时间: 2014-07-16 18:01
gcc没有装好或环境变量的问题吧
作者: 冷峻花开    时间: 2014-12-19 16:16
我现在也是这个问题,配置环境:
主机:ubuntu 12.04 amd64
开发板 : ok6410
交叉编译器:arm-linux-gcc-4.3.2
编译器:gcc-4.6.3
环境都配置正确,gcc和arm-linux-gcc都可以正常工作!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2