QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1142|回复: 0

求助:编译 GDB/ARMulator 中gcc的问题

[复制链接]
发表于 2006-3-23 14:57:29 | 显示全部楼层 |阅读模式
$ ./configure --target=arm-elf
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /home/wp/Armulator/gdb-5.0
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.text+0xc4): In function `__do_global_ctors':
: 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 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


gcc我是通过arm-elf-tools-20040427.sh安装gcc,环境变量已经设置了
在gdb文件夹中README说要设置个CC variable我也设置了,也作了个link指向gcc的,可是还有是这个错误-----人都快疯了,请过来人指点一二
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 12:30 , Processed in 0.041297 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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