共2条
1/1 1 跳转至页
arm,gcc 新装的arm-gcc总报这样的错误,请问有谁知道是怎么回事??
问
新装的ARM-gcc总报这样的错误,请问有谁知道是怎么回事??
[root@localhost Phsm]# make
cd src ; make
make[1]: Entering directory `/root/ser/Phsm/src'
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o Phsm.o Phsm.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o PhsmPro.o PhsmPro.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o PhsmData.o PhsmData.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o PhsmLinux.o PhsmLinux.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
make[1]: Leaving directory `/root/ser/Phsm/src'
mv src/*.o obj
cd test; make
make[1]: Entering directory `/root/ser/Phsm/test'
ARM-elf-gcc main.o ../obj/Phsm.o ../obj/PhsmData.o ../obj/PhsmPro.o ../obj/PhsmLinux.o ../../source/msgQueue.o ../../source/Timer.o -o main
/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
make[1]: *** [main] Error 1
make[1]: Leaving directory `/root/ser/Phsm/test'
make: *** [all] Error 2 答 1: 看看elf2flt的使用ARM-elf-gcc: elf2flt: linker input file unused since linking not done
你可以在命令行下直接运行这个程序,应该就可以知道什么问题了 答 2: 好像没有问题不知道在哪里看的东西,讲在编译内核时总会出2个错误。
[root@localhost Phsm]# make
cd src ; make
make[1]: Entering directory `/root/ser/Phsm/src'
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o Phsm.o Phsm.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o PhsmPro.o PhsmPro.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o PhsmData.o PhsmData.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes -I../include -I../../include -Wl,elf2flt -c -o PhsmLinux.o PhsmLinux.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
make[1]: Leaving directory `/root/ser/Phsm/src'
mv src/*.o obj
cd test; make
make[1]: Entering directory `/root/ser/Phsm/test'
ARM-elf-gcc main.o ../obj/Phsm.o ../obj/PhsmData.o ../obj/PhsmPro.o ../obj/PhsmLinux.o ../../source/msgQueue.o ../../source/Timer.o -o main
/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
make[1]: *** [main] Error 1
make[1]: Leaving directory `/root/ser/Phsm/test'
make: *** [all] Error 2 答 1: 看看elf2flt的使用ARM-elf-gcc: elf2flt: linker input file unused since linking not done
你可以在命令行下直接运行这个程序,应该就可以知道什么问题了 答 2: 好像没有问题不知道在哪里看的东西,讲在编译内核时总会出2个错误。
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
与电子爱好者谈读图二被打赏50分 | |
【FRDM-MCXN947评测】Core1适配运行FreeRtos被打赏50分 | |
【FRDM-MCXN947评测】双核调试被打赏50分 | |
【CPKCORRA8D1B评测】---移植CoreMark被打赏50分 | |
【CPKCORRA8D1B评测】---打开硬件定时器被打赏50分 | |
【FRDM-MCXA156评测】4、CAN loopback模式测试被打赏50分 | |
【CPKcorRA8D1评测】--搭建初始环境被打赏50分 | |
【FRDM-MCXA156评测】3、使用FlexIO模拟UART被打赏50分 | |
【FRDM-MCXA156评测】2、rt-thread MCXA156 BSP制作被打赏50分 | |
【FRDM-MCXN947评测】核间通信MUTEX被打赏50分 |