[En-Nut-Discussion] AVR32 build broken
Harald Kipp
harald.kipp at egnite.de
Sun Sep 30 20:18:56 CEST 2012
Hi Thiago,
On 27.08.2012 13:33, Thiago A. Corrêa wrote:
>> ld.exe: cannot open linker script file uc3a0512_rom.ld: No such file or directory
>
> I've built evk1100-intram with qnutconf and it didn't fail.
> uc3a0512_rom.ld also exists in nut\arch\avr32\ldscripts, I thought it
> might have been renamed but it's not the case. Perhaps there is a
> problem with the tools. What do you use to build?
It still fails here with different toolchain versions. Last one I tried
is the toolchain from AVR Studio 6.
avr32-gcc (AVR_32_bit_GNU_Toolchain_3.4.0_332) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
When checking the linker options, I cannot see any path to the linker
scripts. So how can the linker find them?
Here are the options when linking for AT91SAM7SE
arm-none-eabi-gcc
caltime.o
-mcpu=arm7tdmi
-nostartfiles
-L../../nut/arch/arm/ldscripts
-Tat91sam7se512_xram.ld
-Wl,-Map=caltime.map,--cref,--no-warn-mismatch
-L../../nutbld-eir10c/lib
-Wl,--start-group
../../nutbld-eir10c/lib/nutinit.o
-lnutpro
-lnutgorp
-lnutcrt
-lnutos
-lnutdev
-lnutarch
-Wl,--end-group
-o caltime.elf
and here are the options for EVK1101
avr32-gcc
caltime.o
-mpart=uc3b0256
-nostartfiles
-Wl,-Tuc3b0256_rom.ld,-Map=caltime.map,--cref,--no-warn-mismatch
-L../../nutbld-evk1101/lib
-Wl,--start-group
../../nutbld-evk1101/lib/nutinit.o
-lnutpro
-lnutgorp
-lnutcrt
-lnutos
-lnutdev
-lnutarch
-Wl,--end-group
-o caltime.elf
The latter doesn't contain any path to ../../nut/arch/arm/ldscripts. How
does your command line look like when linking any application for any
AVR32 board?
Regards,
Harald
More information about the En-Nut-Discussion
mailing list