bucketxp 发表于 2004-8-23 11:09:35

编译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: *** Error 1
make: Leaving directory `/home/WinShare/skyeye/src/uClinux-dist/linux-2.4.x/arch/armnommu/kernel'
make: *** Error 2
make: Leaving directory `/home/WinShare/skyeye/src/uClinux-dist/linux-2.4.x'
make: *** Error 1
编译失败。不知道是什么问题?

chyyuu 发表于 2004-8-25 23:15:19

用老点的uclinux-dist试试
可以到
ftp://166.111.68.183/pub/embed/uclinux/soft 下载

bucketxp 发表于 2004-8-26 09:37:14

问题已解决。
原因是原先机器中已经有一个arm-elf的编译器,所在位置刚好和
arm-elf-tools-20030314安装时的目录相同,两者产生冲突。
彻底删除旧的编译器,再重新安装arm-elf-tools-20030314就可以编译通过了。

ywei2004 发表于 2004-11-23 16:18:03

make dep的时候
samsung linux-2.4.x   uC-libc
出现如下问题:
make: Leaving directory `/usr/src/uClinux-dist/linux-2.4.x/arch/armnommu/nwfpe'
make: 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: Leaving directory `/usr/src/uClinux-dist/linux-2.4.x'
页: [1]
查看完整版本: 编译uClinux-dist-20040408时出现的问题