LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 857|回复: 2

建立交叉编译环境 ,可是我在装glibc-2.3.1的时候总是出现错误?

[复制链接]
发表于 2005-11-25 17:07:02 | 显示全部楼层 |阅读模式
arm-linux-gcc -nostdlib -nostartfiles -o /home/zz/embedded/build-tools/build-glibc/iconv/iconvconfig  -Wl,-dynamic-linker=/lib/ld-linux.so.2    /home/zz/embedded/build-tools/build-glibc/csu/crt1.o /home/zz/embedded/build-tools/build-glibc/csu/crti.o `arm-linux-gcc --print-file-name=crtbegin.o` /home/zz/embedded/build-tools/build-glibc/iconv/iconvconfig.o /home/zz/embedded/build-tools/build-glibc/iconv/strtab.o /home/zz/embedded/build-tools/build-glibc/iconv/xmalloc.o  -Wl,-rpath-link=/home/zz/embedded/build-tools/build-glibc:/home/zz/embedded/build-tools/build-glibc/math:/home/zz/embedded/build-tools/build-glibc/elf:/home/zz/embedded/build-tools/build-glibc/dlfcn:/home/zz/embedded/build-tools/build-glibc/nss:/home/zz/embedded/build-tools/build-glibc/nis:/home/zz/embedded/build-tools/build-glibc/rt:/home/zz/embedded/build-tools/build-glibc/resolv:/home/zz/embedded/build-tools/build-glibc/crypt:/home/zz/embedded/build-tools/build-glibc/linuxthreads /home/zz/embedded/build-tools/build-glibc/libc.so.6 /home/zz/embedded/build-tools/build-glibc/libc_nonshared.a -lgcc `arm-linux-gcc --print-file-name=crtend.o` /home/zz/embedded/build-tools/build-glibc/csu/crtn.o
/home/zz/embedded/build-tools/build-glibc/libc.so.6(.data+0x19a0): multiple definition of `__ctype_toupper@GLIBC_2.0'
/home/zz/embedded/build-tools/build-glibc/libc.so.6(*IND*+0x0): multiple definition of `__ctype32_toupper@GLIBC_2.2'
/home/zz/embedded/build-tools/build-glibc/libc.so.6(.data+0x19a8): first defined here
/home/zz/embedded/build-tools/build-glibc/libc.so.6(.data+0x19a4): multiple definition of `__ctype32_tolower@GLIBC_2.2'
/home/zz/embedded/build-tools/build-glibc/libc.so.6(.data+0x1994): multiple definition of `__ctype_b@GLIBC_2.0'
/home/zz/embedded/build-tools/build-glibc/libc.so.6(*IND*+0x0): multiple definition of `__ctype_tolower@GLIBC_2.0'
/home/zz/embedded/build-tools/build-glibc/libc.so.6(.data+0x199c): first defined here
/home/zz/embedded/build-tools/build-glibc/libc.so.6(.data+0x1998): multiple definition of `__ctype32_b@GLIBC_2.0'
collect2: ld returned 1 exit status
make[2]: *** [/home/zz/embedded/build-tools/build-glibc/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/home/zz/embedded/build-tools/glibc-2.3.1/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/home/zz/embedded/build-tools/glibc-2.3.1'
make: *** [all] Error 2
[zz@localhost build-glibc]$
我把版本换拉好几次 ,从glibc-2.3.6开始 ,没有一次成功的.
配置 :
gcc-3.2.1 glibc-2.3.1 binutils-2.10.1 kernel-2.4.21
请那位有经验的兄弟要怎样做才可以通过 !!
发表于 2005-12-21 14:05:26 | 显示全部楼层
我遇到同样的问题,之前的binutils安装后,bin目录下没有gasp文件, 之后安装gcc失败,不知两者有何关系,如何才能解决。我的目标板是i386的,系统是redhat9的,gcc-3.2.1,glibc-2.3.1,binutils-2.13.2.1,请高手指点
回复 支持 反对

使用道具 举报

发表于 2005-12-21 15:39:36 | 显示全部楼层
好像要打个补丁,你可以看看http://lfs.linuxsir.cn/htdocs/lf ... html,或许有用
回复 支持 反对

使用道具 举报

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

本版积分规则

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