当前位置: 技术问答>linux和unix
编译uclinux2.6真就这么难!?? 自己到底缺哪些东西???
来源: 互联网 发布时间:2016-06-25
本文导语: 新人,第一步总是艰难.因为工作需要,要编译个uclinux,就这样把我给难住了. 我编译的uclinux 2.6 环境是:fedora 10 make xconfig 采用的是: GDB ARM linux 2....
新人,第一步总是艰难.因为工作需要,要编译个uclinux,就这样把我给难住了.
我编译的uclinux 2.6
环境是:fedora 10
make xconfig
采用的是: GDB
ARM
linux 2.6
uclibc
结果在make 的时候出现了一些问题:
首先 no arm-linux-20070808-gcc in (/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/arm/usr/local/arm/3.4.1/bin/:/usr/local/arm/3.4.1/bin/:/usr/local/arm/usr/local/arm/3.4.1/bin/:/home/guningyi/bin)
大概是说这个编译器没有找到,我查了一下,是在 uClinux-dist/vendors/config/armnommu/ 下有个
config.arch 中提到了,我将其注释掉后又提示我其它的编译器版本太老.
继续编译到最后结果是出错.
libc/libc_so.a(difftime.os)(.text+0x8): In function `difftime':
: undefined reference to `__floatsidf'
libc/libc_so.a(difftime.os)(.text+0x2c): In function `difftime':
: undefined reference to `__subdf3'
libc/libc_so.a(_fpmaxtostr.os)(.text+0xb4): In function `_fpmaxtostr':
: undefined reference to `__nedf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0xd8): In function `_fpmaxtostr':
: undefined reference to `__eqdf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0xf4): In function `_fpmaxtostr':
: undefined reference to `__divdf3'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x100): In function `_fpmaxtostr':
: undefined reference to `__ltdf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x15c): In function `_fpmaxtostr':
: undefined reference to `__muldf3'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x2c0): In function `_fpmaxtostr':
: undefined reference to `__gedf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x350): In function `_fpmaxtostr':
: undefined reference to `__adddf3'
libc/libc_so.a(__psfs_do_numeric.os)(.text+0x570): In function `__psfs_do_numeric':
: undefined reference to `__truncdfsf2'
libc/libc_so.a(strtof.os)(.text+0x1c): In function `__GI_strtof':
: undefined reference to `__extendsfdf2'
arm-linux-ld: BFD 2.15.90.0.3 20040415 assertion fail /work/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/binutils-2.15.90.0.3/bfd/elf32-arm.h:1861
arm-linux-ld: BFD 2.15.90.0.3 20040415 assertion fail /work/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/binutils-2.15.90.0.3/bfd/elf32-arm.h:1861
make[4]: * [lib/libc.so] Error 1
make[3]: * [lib/libc.so.0] 错误 2
make[3]: Leaving directory `/home/guningyi/download/uClinux-dist/uClibc'
make[2]: * [uClibc] 错误 2
make[2]: Leaving directory `/home/guningyi/download/uClinux-dist/lib'
make[1]: * [all] 错误 2
make[1]: Leaving directory `/home/guningyi/download/uClinux-dist/lib'
make: * [subdirs] 错误 1
请高手帮我看看,大概是什么地方出了问题,谢谢!
我编译的uclinux 2.6
环境是:fedora 10
make xconfig
采用的是: GDB
ARM
linux 2.6
uclibc
结果在make 的时候出现了一些问题:
首先 no arm-linux-20070808-gcc in (/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/arm/usr/local/arm/3.4.1/bin/:/usr/local/arm/3.4.1/bin/:/usr/local/arm/usr/local/arm/3.4.1/bin/:/home/guningyi/bin)
大概是说这个编译器没有找到,我查了一下,是在 uClinux-dist/vendors/config/armnommu/ 下有个
config.arch 中提到了,我将其注释掉后又提示我其它的编译器版本太老.
继续编译到最后结果是出错.
libc/libc_so.a(difftime.os)(.text+0x8): In function `difftime':
: undefined reference to `__floatsidf'
libc/libc_so.a(difftime.os)(.text+0x2c): In function `difftime':
: undefined reference to `__subdf3'
libc/libc_so.a(_fpmaxtostr.os)(.text+0xb4): In function `_fpmaxtostr':
: undefined reference to `__nedf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0xd8): In function `_fpmaxtostr':
: undefined reference to `__eqdf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0xf4): In function `_fpmaxtostr':
: undefined reference to `__divdf3'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x100): In function `_fpmaxtostr':
: undefined reference to `__ltdf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x15c): In function `_fpmaxtostr':
: undefined reference to `__muldf3'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x2c0): In function `_fpmaxtostr':
: undefined reference to `__gedf2'
libc/libc_so.a(_fpmaxtostr.os)(.text+0x350): In function `_fpmaxtostr':
: undefined reference to `__adddf3'
libc/libc_so.a(__psfs_do_numeric.os)(.text+0x570): In function `__psfs_do_numeric':
: undefined reference to `__truncdfsf2'
libc/libc_so.a(strtof.os)(.text+0x1c): In function `__GI_strtof':
: undefined reference to `__extendsfdf2'
arm-linux-ld: BFD 2.15.90.0.3 20040415 assertion fail /work/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/binutils-2.15.90.0.3/bfd/elf32-arm.h:1861
arm-linux-ld: BFD 2.15.90.0.3 20040415 assertion fail /work/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/binutils-2.15.90.0.3/bfd/elf32-arm.h:1861
make[4]: * [lib/libc.so] Error 1
make[3]: * [lib/libc.so.0] 错误 2
make[3]: Leaving directory `/home/guningyi/download/uClinux-dist/uClibc'
make[2]: * [uClibc] 错误 2
make[2]: Leaving directory `/home/guningyi/download/uClinux-dist/lib'
make[1]: * [all] 错误 2
make[1]: Leaving directory `/home/guningyi/download/uClinux-dist/lib'
make: * [subdirs] 错误 1
请高手帮我看看,大概是什么地方出了问题,谢谢!
|
嗯,这个基本上是编译太老的原因。
fc上没有armgcc吗?
fc上没有armgcc吗?
|
make clean 再make dep
|
上sourceforge上下载一个新的用用吧。