QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1306|回复: 4

Linux7.2下Blob配置通不过,急求帮助...

[复制链接]
发表于 2004-10-14 19:14:48 | 显示全部楼层 |阅读模式
近段时间想在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版本太低了还是其他什么原因?恳请各位指教.还有,你们的交叉编译环境是建立起来之后是如何检验的呢?
发表于 2004-10-14 22:15:09 | 显示全部楼层
你的交叉编译建好了没有
好像找不到啊。。。
configure:1190: checking whether the C compiler (arm-linux-gcc ) works...no
修改profile没有
回复

使用道具 举报

 楼主| 发表于 2004-10-15 13:15:11 | 显示全部楼层

How to modify profile ?Thanks.

没有修改profile,I donot know how to do it?Can u tell me claerly ,Thank u very Much!
回复

使用道具 举报

发表于 2004-10-15 13:57:26 | 显示全部楼层
就是你交叉编译的路径
回复

使用道具 举报

发表于 2004-10-17 14:30:24 | 显示全部楼层
最好还是用arm-linux-gcc 2.95.3
我用过很多编译器编译blob,但只有2.95.3没有问题,一次通过
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-5 21:49 , Processed in 0.107602 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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