alsa lib交叉编译问题,unrecognized command line option

岭_犀 2017-01-19 12:11:33
当我交叉编译alsa lib1.1.0时遇到了以下问题,求大神指点。以下是config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by alsa-lib configure 1.1.0, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --host=arm-poky-linux-gnueabi --prefix=/usr/share/arm-alse --enable-shared --disable-python --with-configdir=/usr/share/alsa CC=arm-poky-linux-gnueabi-gcc

## --------- ##
## Platform. ##
## --------- ##

hostname = yang-VirtualBox
uname -m = x86_64
uname -r = 3.13.0-32-generic
uname -s = Linux
uname -v = #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2420: checking build system type
configure:2434: result: x86_64-unknown-linux-gnu
configure:2454: checking host system type
configure:2467: result: arm-poky-linux-gnueabi
configure:2503: checking for a BSD-compatible install
configure:2571: result: /usr/bin/install -c
configure:2582: checking whether build environment is sane
configure:2637: result: yes
configure:2696: checking for arm-poky-linux-gnueabi-strip
configure:2712: found /usr/bin/arm-poky-linux-gnueabi-strip
configure:2723: result: arm-poky-linux-gnueabi-strip
configure:2788: checking for a thread-safe mkdir -p
configure:2827: result: /bin/mkdir -p
configure:2834: checking for gawk
configure:2864: result: no
configure:2834: checking for mawk
configure:2850: found /usr/bin/mawk
configure:2861: result: mawk
configure:2872: checking whether make sets $(MAKE)
configure:2894: result: yes
configure:2991: checking whether to enable maintainer-specific portions of Makefiles
configure:3000: result: yes
configure:3026: checking whether make supports nested variables
configure:3043: result: yes
configure:3066: checking for arm-poky-linux-gnueabi-gcc
configure:3093: result: arm-poky-linux-gnueabi-gcc
configure:3362: checking for C compiler version
configure:3371: arm-poky-linux-gnueabi-gcc --version >&5
arm-poky-linux-gnueabi-gcc (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3382: $? = 0
configure:3371: arm-poky-linux-gnueabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=arm-poky-linux-gnueabi-gcc
Target: arm-poky-linux-gnueabi
Configured with: /home/tanjian/TIOP/SBC9000/fsl-arm-yocto-bsp/build/tmp/work-shared/gcc-4.8.1-r0/gcc-4.8.1/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --sbindir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --libexecdir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi --datadir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi --includedir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/poky/1.5.2/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/tanjian/TIOP/SBC9000/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-float=hard --with-gxx-include-dir=/opt/poky/1.5.2/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/c++ --with-build-time-tools=/home/tanjian/TIOP/SBC9000/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/opt/poky/1.5.2/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi --with-build-sysroot=/home/tanjian/TIOP/SBC9000/fsl-arm-yocto-bsp/build/tmp/sysroots/sbc9000 --disable-libunwind-exceptions --disable-libssp --disable-libgomp --disable-libmudflap --with-mpfr=/home/tanjian/TIOP/SBC9000/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/home/tanjian/TIOP/SBC9000/fsl-arm-yocto-bsp/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --enable-nls
Thread model: posix
gcc version 4.8.1 (GCC)
configure:3382: $? = 0
configure:3371: arm-poky-linux-gnueabi-gcc -V >&5
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-V'
arm-poky-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:3382: $? = 1
configure:3371: arm-poky-linux-gnueabi-gcc -qversion >&5
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'
arm-poky-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:3382: $? = 1
configure:3402: checking whether the C compiler works
configure:3424: arm-poky-linux-gnueabi-gcc conftest.c >&5
arm-poky-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:3428: $? = 1
configure:3466: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "alsa-lib"
| #define PACKAGE_TARNAME "alsa-lib"
| #define PACKAGE_VERSION "1.1.0"
| #define PACKAGE_STRING "alsa-lib 1.1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "alsa-lib"
| #define VERSION "1.1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3471: error: in `/usr/alsa/alsa-lib-1.1.0':
configure:3473: error: C compiler cannot create executables
See `config.log' for more details
...全文
1122 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

1,318

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧