关于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. 在cygwin下编译么?如果是,请在本论坛中搜索答案 不是的,是在redhat linux下面编译的 连接时没有-elf2flt参数
页:
[1]