|  | 
 
| 近段时间想在44b0开发板上嵌个uCLinux,于是从网上下了tpu编译好的blob、uClinuxFor44b0以及romfs,但是对blob进行配置(configure)时总是通不过,查了论坛上好多文章,有些是同样的的问题,但大家在做好后似乎都再没有给出解决的办法^_^,所以我只好再次向大家求救了…… OS:RedHat Linux7.2(gcc version 2.96),交叉编译是在www.handhelds.org/download/toolchain/上下载的 arm-linux-gcc 3.4.1,安装好之后,执行:
 # export CC=arm-linux-gcc
 # ./configure --with-board=mba-44b0 --with-linux-prefix=/usr/src/linux
 总是提示说 :
 ...
 configure:1190: checking whether the C compiler (arm-linux-gcc  ) works...no
 ...
 C compiler cannot create executables.然后就终止了.config.log文件是这样的:
 
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
 configure:645: checking for a BSD compatible install
 configure:698: checking whether build environment is sane
 configure:755: checking whether make sets ${MAKE}
 configure:801: checking for working aclocal
 configure:814: checking for working autoconf
 configure:827: checking for working automake
 configure:840: checking for working autoheader
 configure:853: checking for working makeinfo
 configure:873: checking whether to enable maintainer-specific portions of Makefiles
 configure:906: checking host system type
 configure:935: checking for arm-linux-gcc
 configure:970: checking for arm-linux-objcopy
 configure:1005: checking for arm-linux-ranlib
 configure:1040: checking for arm-linux-ar
 configure:1077: checking for gcc
 configure:1190: checking whether the C compiler (arm-linux-gcc  ) works
 configure:1206: arm-linux-gcc -o conftest    conftest.c  1>&5
 /usr/local/lib/gcc-lib/arm-linux/3.4.1/collect2: /lib/i686/libc.so.6: version `GLIBC_2.3' not found (required by /usr/local/lib/gcc-lib/arm-linux/3.4.1/collect2)
 configure: failed program was:
 
 #line 1201 "configure"
 #include "confdefs.h"
 
 main(){return(0);}
 这个"GLIBC_2.3"究竟是什么东东呀?************************
 我怀疑是我的交叉编译环境没有建好,看了论坛上的一篇文章,试着输入arm-linux-再按tab键可以看见好多带arm-linux-开头的命令.也不知有没有好?
 后来看到说arm-elf-gcc也可以编译,我就下了个arm-elf-tools-20030314.sh,装好并设置好环境变量,并将configure中的arm-linux全部改为arm-elf,再次编译,还是出现以下错误:
 
 configure:1190: checking whether the C compiler (arm-elf-gcc  ) works...no
 
 C compiler cannot create executables.
 
 这时打开config.log:
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
 configure:645: checking for a BSD compatible install
 configure:698: checking whether build environment is sane
 configure:755: checking whether make sets ${MAKE}
 configure:801: checking for working aclocal
 configure:814: checking for working autoconf
 configure:827: checking for working automake
 configure:840: checking for working autoheader
 configure:853: checking for working makeinfo
 configure:873: checking whether to enable maintainer-specific portions of Makefiles
 configure:906: checking host system type
 configure:935: checking for arm-elf-gcc
 configure:970: checking for arm-elf-objcopy
 configure:1005: checking for arm-elf-ranlib
 configure:1040: checking for arm-elf-ar
 configure:1077: checking for gcc
 configure:1190: checking whether the C compiler (arm-elf-gcc  ) works
 configure:1206: arm-elf-gcc -o conftest    conftest.c  1>&5
 /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o): In function `__do_global_ctors':
 __main.o(.text+0xc4): undefined reference to `__CTOR_LIST__'
 /usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.data+0x0): undefined reference to `__DTOR_LIST__'
 collect2: ld returned 1 exit status
 configure: failed program was:
 
 #line 1201 "configure"
 #include "confdefs.h"
 
 main(){return(0);}
 
 这是不是因为我的linux7.2版本太低了还是其他什么原因?恳请各位指教.还有,你们的交叉编译环境是建立起来之后是如何检验的呢?
 | 
 |