当前位置: 技术问答>linux和unix
交叉编译器的运用(求帮助)
来源: 互联网 发布时间:2016-12-02
本文导语: 我在eclipse下安装ARM插件,然后从网上下了一个arm-linux-gcc 4.3.2版本的编译器,按照所说的将相关的环境变量设好,然后就试运行一个例子LPC_2148_C,(也是网上一个教程的例子),编译后遇到的问题如下: make all Buildi...
我在eclipse下安装ARM插件,然后从网上下了一个arm-linux-gcc 4.3.2版本的编译器,按照所说的将相关的环境变量设好,然后就试运行一个例子LPC_2148_C,(也是网上一个教程的例子),编译后遇到的问题如下:
make all
Building target: helloworld.elf
Invoking: ARM Linux GCC C Linker
arm-linux-gcc -T"/home/shenxinyue/下载/LPC_2148_C/LPC2148-ROM.ld" -nostartfiles -Wl,-Map,helloworld.map -mcpu=arm7tdmi -o"helloworld.elf" ./Startup.o ./lowLevel.o ./main.o ./rprintf.o ./syscalls.o ./uart0.o
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9537
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9537
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9537
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9771
make: *** [helloworld.elf] 错误 1
请求高手指点下,不慎感激!
make all
Building target: helloworld.elf
Invoking: ARM Linux GCC C Linker
arm-linux-gcc -T"/home/shenxinyue/下载/LPC_2148_C/LPC2148-ROM.ld" -nostartfiles -Wl,-Map,helloworld.map -mcpu=arm7tdmi -o"helloworld.elf" ./Startup.o ./lowLevel.o ./main.o ./rprintf.o ./syscalls.o ./uart0.o
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9537
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9537
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9537
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: BFD (Sourcery G++ Lite 2008q3-72) 2.18.50.20080215 assertion fail /scratch/julian/lite-respin/linux/obj/binutils-src-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:9771
make: *** [helloworld.elf] 错误 1
请求高手指点下,不慎感激!
|
eclipse有两种编译,一种是跟据工程里面的原有的makefile编译,一个是它自己生成makefile编译!你可以先写个helloworld, 然后写个makefile,也就是第一种编译方式试试!