bellsleep 发表于 2009-10-25 17:41:49

编译ucosii4skyeye-v1.8.3报错

环境:Ubuntu 9.04
编译器版本:
arm-elf-gcc -v:
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)

make的时候报错
/usr/local/lib/gcc-lib/arm-elf/2.95.3//libc.a(__uClibc_main.o)(.text+0xf8): In function `__uClibc_start_main':
: undefined reference to `main'
make: *** 错误 1

bellsleep 发表于 2009-10-25 18:15:58

补充一点,我是用的arm-elf-tools-20040427.sh直接安装的

在网上查,有前辈说在/usr/local/lib/gcc-lib/arm-elf/2.95.3/下还需要libc.a,我在usr下搜索,发现有这些
./local/arm-elf/lib/libc.a
./local/arm-elf/lib/fpic/libc.a
./local/arm-elf/lib/fpic/msingle-pic-base/libc.a
./local/arm-elf/lib/fpic/mapcs-26/libc.a
./local/arm-elf/lib/fpic/mapcs-26/msingle-pic-base/libc.a
./local/arm-elf/lib/mapcs-26/libc.a
./lib/libc.a
./lib/xen/libc.a
我直接将./local/arm-elf/lib/libc.a拷贝到./local/lib/gcc-lib/arm-elf/2.95.3/目录下,编译还是同样的错误?

jiangtao9999 发表于 2009-10-26 14:56:42

是不是放错位置了?
你还是手动安装为好。不要用2004年的东西了

bellsleep 发表于 2009-10-27 00:21:30

不知道楼上说的手动安装是指什么?
源代码编译?
ucosii4skyeye-v1.8.3这个东西也是几年以前的版本,时间比较接近阿

bellsleep 发表于 2009-10-27 00:50:45

这种错是怎么回事?
Bus write error, can not find corresponding bank for addr 0x0,pc=0xfb4
Bus read error, can not find corresponding bank for addr 0xfb8,pc=0xfb8
Bus write error, can not find corresponding bank for addr 0x0,pc=0xfb8
Bus read error, can not find corresponding bank for addr 0xfbc,pc=0xfbc
页: [1]
查看完整版本: 编译ucosii4skyeye-v1.8.3报错