jamessteward wrote on Tuesday, August 26, 2008:
Hi,
Just wondering if I should be using a specific version of GCC to build some of the apps?
Executing make in FreeRTOS_V5.0.3/Demo/lwIP_Demo_Rowley_ARM7 after fixing the compiler tools prefix in the Makefile (and had to rename makefile to Makefile),
P=arm-none-linux-gnueabi-
CC=$(P)gcc
OBJCOPY=$(P)objcopy
ARCH=$(P)ar
$ arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (CodeSourcery Sourcery G++ Lite 2007q1-10) 4.2.0 20070413 (prerelease)
After a few files are processed, I get this…
arm-none-linux-gnueabi-gcc -I. -I./EMAC -I…/Common/include -I./USB -I./lwip-1.1.0/src/include -I./lwip-1.1.0/contrib/port/FreeRTOS/AT91SAM7X -I…/…/Source/include -I…/…/Source/portable/GCC/ARM7_AT91SAM7S -I./lwip-1.1.0/src/include/ipv4 -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-strict-aliasing -D SAM7_GCC -D THUMB_INTERWORK -mthumb-interwork -mcpu=arm7tdmi -Tatmel-rom.ld -g -O0 -fomit-frame-pointer …/…/Source/portable/GCC/ARM7_AT91SAM7S/portISR.o EMAC/SAM7_EMAC_ISR.o USB/USBIsr.o Cstartup_SAM7.o …/…/Source/portable/MemMang/heap_2.o ParTest/ParTest.o main.o …/Common/Minimal/flash.o …/Common/Minimal/BlockQ.o …/Common/Minimal/integer.o …/Common/Minimal/PollQ.o …/Common/Minimal/semtest.o BasicWEB.o USB/USB-CDC.o lwip-1.1.0/src/core/tcp_out.o lwip-1.1.0/src/core/inet.o lwip-1.1.0/src/core/mem.o lwip-1.1.0/src/core/memp.o lwip-1.1.0/src/core/netif.o lwip-1.1.0/src/core/pbuf.o lwip-1.1.0/src/core/raw.o lwip-1.1.0/src/core/stats.o lwip-1.1.0/src/core/sys.o lwip-1.1.0/src/core/tcp.o lwip-1.1.0/src/core/tcp_in.o lwip-1.1.0/src/core/ipv4/ip.o lwip-1.1.0/src/core/ipv4/ip_addr.o lwip-1.1.0/src/core/ipv4/icmp.o lwip-1.1.0/src/api/tcpip.o lwip-1.1.0/src/api/api_msg.o lwip-1.1.0/src/api/err.o lwip-1.1.0/src/api/api_lib.o lwip-1.1.0/src/netif/etharp.o lwip-1.1.0/contrib/port/FreeRTOS/AT91SAM7X/sys_arch.o lwip-1.1.0/src/netif/ethernetif.o EMAC/SAM7_EMAC.o lwip-1.1.0/src/core/udp.o lwip-1.1.0/src/core/ipv4/ip_frag.o …/…/Source/tasks.o …/…/Source/queue.o …/…/Source/list.o …/…/Source/portable/GCC/ARM7_AT91SAM7S/port.o -nostartfiles boot.s -Xlinker -ortosdemo.elf -Xlinker -M -Xlinker -Map=rtosdemo.map
/opt/codesourcery/arm-2007q1/bin/…/lib/gcc/arm-none-linux-gnueabi/4.2.0/…/…/…/…/arm-none-linux-gnueabi/bin/ld: error: no memory region specified for loadable section `.interp’
collect2: ld returned 1 exit status
make: *** [rtosdemo.elf] Error 1
I don’t think I should have to “frig” with the linker script for a proved demo, so I assume I’ve got a compiler that is too new maybe?
Regards,
James.