QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3513|回复: 4

gdb安装问题

[复制链接]
发表于 2006-7-25 16:56:15 | 显示全部楼层 |阅读模式
下载gdb源码后想安装成arm-linux-gdb的调试工具但make都有很多错!

网上有文章说建立arm-linux-gdb现下杂gdb源码,然后
./configure --target=arm-linux
make
make install

但我在make时出力如下错误

./gentmap -c >tmp-tmap.c
/bin/sh ./../../move-if-change tmp-tmap.c targ-map.c
targ-map.c is unchanged
touch stamp-tvals
make[2]: *** 没有规则可以创建“run”需要的目标“../../intl/libintl.a”。 停止。
make[2]: Leaving directory `/gdb-6.3/sim/arm'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/gdb-6.3/sim'
make: *** [all-sim] 错误 2

不知道如何解决,请大虾指点:)
发表于 2006-7-26 14:55:13 | 显示全部楼层
../configure --target=arm-linux --prefix=/your arm tool chains dir
回复

使用道具 举报

 楼主| 发表于 2006-7-26 16:00:17 | 显示全部楼层
[quote:c483c5a1fc="wiserltz"]../configure --target=arm-linux --prefix=/your arm tool chains dir[/quote]

我试验过了不行!

我下载的是gdb6.3,操作系统是debian

cd gdb6.3
./configure --target=arm-linux --preifx=/usr/local/arm/3.4.1/bin
make

还是出同样的错误

make[2]: *** 没有规则可以创建“run”需要的目标“../../intl/libintl.a”。 停止。
make[2]: Leaving directory `/gdb-6.3/sim/arm'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/gdb-6.3/sim'
make: *** [all-sim] 错误 2

是不是缺少什么库文件呀?

但是编译gdbserver却没问题

cd gdb
cd gdbserver
./configure --target=arm-linux CC=arm-linux-gcc
make

能正确的生成gdbserver文件!

但怎么gdb就编译不果呢???????
回复

使用道具 举报

发表于 2006-7-26 16:18:49 | 显示全部楼层
gdbserver is running on your target board, and gdb will run on you PC, so the environment are different.

try
./configure --target=arm-linux --preifx=/usr/local/arm/3.4.1/

and paste the result here
回复

使用道具 举报

 楼主| 发表于 2006-7-26 16:32:12 | 显示全部楼层
[quote:7debf1e555="wiserltz"]gdbserver is running on your target board, and gdb will run on you PC, so the environment are different.

try
./configure --target=arm-linux --preifx=/usr/local/arm/3.4.1/

and paste the result here[/quote]

故障依旧呀老兄

部分错误信息

iwmmxt.c: In function `WMAC':
iwmmxt.c:2117: warning: use of cast expressions as lvalues is deprecated
iwmmxt.c:2133: warning: use of cast expressions as lvalues is deprecated
iwmmxt.c: In function `WMADD':
iwmmxt.c:2169: warning: use of cast expressions as lvalues is deprecated
iwmmxt.c:2177: warning: use of cast expressions as lvalues is deprecated
iwmmxt.c:2186: warning: use of cast expressions as lvalues is deprecated
iwmmxt.c:2191: warning: use of cast expressions as lvalues is deprecated
iwmmxt.c: In function `WSLL':
iwmmxt.c:2840: warning: integer constant is too large for "long" type
iwmmxt.c: In function `WSRA':
iwmmxt.c:2917: warning: integer constant is too large for "long" type
iwmmxt.c:2917: warning: integer constant is too large for "long" type
iwmmxt.c:2919: warning: integer constant is too large for "long" type
iwmmxt.c: In function `WSRL':
iwmmxt.c:2988: warning: integer constant is too large for "long" type
iwmmxt.c: In function `WUNPCKEH':
iwmmxt.c:3290: warning: integer constant is too large for "long" type
iwmmxt.c: In function `WUNPCKEL':
iwmmxt.c:3357: warning: integer constant is too large for "long" type
rm -f libsim.a
ar rc libsim.a callback.o syscall.o targ-map.o armemu26.o armemu32.o arminit.o armos.o armsupp.o armvirt.o bag.o thumbemu.o wrapper.o sim-load.o armcopro.o maverick.o iwmmxt.o
ranlib libsim.a
gcc -c ./../common/run.c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1     -DDEFAULT_INLINE=0           -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES   -I. -I. -I../common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes -I../../intl -I./../../intl -g -O2
make[2]: *** 没有规则可以创建“run”需要的目标“../../intl/libintl.a”。 停止。
make[2]: Leaving directory `/root/gdb-6.3/sim/arm'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/root/gdb-6.3/sim'
make: *** [all-sim] 错误 2
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-29 18:58 , Processed in 0.130420 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表