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


标题: 关于uclinux下gdb编译的问题
coco_sam
新手上路
Rank: 1



UID 224721
精华 0
积分 20
帖子 8
阅读权限 10
注册 2006-8-28
状态 离线
发表于 2006-10-9 16:25  资料  短消息  加为好友 
关于uclinux下gdb编译的问题

uclinux 下原本带的gdbserver运行有问题(m68k版本的),于是在网上下载了gdb编译但是编译出现如下错误

#tar vxjf gdb-5.0.tar.bz2
#gunzip < gdb-5.0-uclinux-armulator-20021127.patch.gz | patch -p0
#cd gdb-5.0
# CC=/usr/local/bin/arm-elf-gcc;export CC

#./configure --target=arm-elf arm-elf
Created "Makefile" in /opt/skyeye/uClinux-dist/user/gdbserver/gdb-5.0
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o): In function `__do_global_ctors':
__main.o(.text+0xc4): undefined reference to `__CTOR_LIST__'
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.data+0x0): undefined reference to `__DTOR_LIST__'
collect2: ld returned 1 exit status
*** The command '/usr/local/bin/arm-elf-gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

顶部
ksh
高级会员
Rank: 4


UID 92875
精华 1
积分 1476
帖子 794
阅读权限 50
注册 2004-2-4
来自 China
状态 离线
发表于 2006-10-11 17:51  资料  短消息  加为好友  添加 ksh 为MSN好友 通过MSN和 ksh 交谈
在cygwin下编译么?如果是,请在本论坛中搜索答案

顶部
coco_sam
新手上路
Rank: 1



UID 224721
精华 0
积分 20
帖子 8
阅读权限 10
注册 2006-8-28
状态 离线
发表于 2006-10-16 09:39  资料  短消息  加为好友 
不是的,是在redhat linux下面编译的

顶部
jfx_lion
新手上路
Rank: 1



UID 228116
精华 0
积分 15
帖子 6
阅读权限 10
注册 2006-10-17
状态 离线
发表于 2006-10-17 09:59  资料  短消息  加为好友  添加 jfx_lion 为MSN好友 通过MSN和 jfx_lion 交谈
连接时没有-elf2flt参数

顶部
 


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