当前时区 GMT+8, 现在时间是 2008-9-5 17:11 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 编译uClinux-dist-20040408时出现的问题
bucketxp
注册会员
Rank: 2


UID 88004
精华 8
积分 300
帖子 103
阅读权限 20
注册 2004-1-8
来自 BIT
状态 离线
发表于 2004-8-23 11:09  资料  短消息  加为好友 
编译uClinux-dist-20040408时出现的问题

使用软件包为:
uClinux-dist-20040408.tar
arm-elf-tools-20030314.sh

具体操作步骤如下:
1) ./arm-elf-tools-20030314.sh
2) tar zxvf uClinux-dist-20040408.tar
3) cd uClinux-dist
4) make menuconfig
    choose ---> Vendor(GDB)
                ---> GDB Products(ARMulator)
                ---> Kernel Version(linux-2.4.x)
                ---> Libc Version(uClibc)
    save and exit
5)make dep
6)make
...
arm-elf-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/WinShare/skyeye/src/uClinux-dist/linux-2.4.x/include  -DNO_MM -mapcs-32 -march=armv4 -msoft-float -mno-fpu   -c
-o entry-armv.o entry-armv.S
entry-armv.S: Assembler messages:
entry-armv.S:1283: Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
entry-armv.S:1285: Error: Internal_relocation (type 185) not fixed up (IMMEDIATE)
entry-armv.S:1336: Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
entry-armv.S:1337: Error: Internal_relocation (type 187) not fixed up (OFFSET_IMM)
entry-armv.S:1608: Error: Can not represent SWI relocation in this object file format (0)
make[2]: *** [entry-armv.o] Error 1
make[2]: Leaving directory `/home/WinShare/skyeye/src/uClinux-dist/linux-2.4.x/arch/armnommu/kernel'
make[1]: *** [_dir_arch/armnommu/kernel] Error 2
make[1]: Leaving directory `/home/WinShare/skyeye/src/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1
编译失败。不知道是什么问题?

顶部
chyyuu
公社版主



UID 37477
精华 23
积分 1949
帖子 727
阅读权限 225
注册 2003-5-15
来自 China.gif
状态 离线
发表于 2004-8-25 23:15  资料  短消息  加为好友 
用老点的uclinux-dist试试
可以到
ftp://166.111.68.183/pub/embed/uclinux/soft 下载

顶部
bucketxp
注册会员
Rank: 2


UID 88004
精华 8
积分 300
帖子 103
阅读权限 20
注册 2004-1-8
来自 BIT
状态 离线
发表于 2004-8-26 09:37  资料  短消息  加为好友 
问题已解决。
原因是原先机器中已经有一个arm-elf的编译器,所在位置刚好和
arm-elf-tools-20030314安装时的目录相同,两者产生冲突。
彻底删除旧的编译器,再重新安装arm-elf-tools-20030314就可以编译通过了。

顶部
ywei2004
新手上路
Rank: 1


UID 156228
精华 0
积分 40
帖子 16
阅读权限 10
注册 2004-9-27
来自 China.gif
状态 离线
发表于 2004-11-23 16:18  资料  短消息  加为好友 
make dep的时候
samsung linux-2.4.x   uC-libc
出现如下问题:
make[3]: Leaving directory `/usr/src/uClinux-dist/linux-2.4.x/arch/armnommu/nwfpe'
make[2]: Leaving directory `/usr/src/uClinux-dist/linux-2.4.x'
find /usr/src/uClinux-dist/linux-2.4.x/include/asm /usr/src/uClinux-dist/linux-2.4.x/include/linux /usr/src/uClinux-dist/linux-2.4.x/include/scsi /usr/src/uClinux-dist/linux-2.4.x/include/net /usr/src/uClinux-dist/linux-2.4.x/include/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep --  > .hdepend
scripts/mkdep -- init/*.c > .depend
make[1]: Leaving directory `/usr/src/uClinux-dist/linux-2.4.x'

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP