Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Applet compilation
PostPosted: Fri Jul 13, 2012 11:58 am 
Offline

Joined: Mon Oct 10, 2011 11:23 am
Posts: 5
Hi,
I am facing an issue when I try to compile sam-ba applets for sam9x5 board.
Compilation fail at linking, I always get this error:

Code:
...

/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.text.BOARD_ConfigureNorFlash' in file 'obj/sram_board_memories.o'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.rodata' in file 'obj/sram_board_memories.o'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.text' in file '/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/arm-926ejs-linux-gnueabi/sysroot/usr/lib/libc_nonshared.a(elf-init.oS)'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.eh_frame' in file '/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/crtend.o'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.jcr' in file '/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/crtend.o'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.init' in file '/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/arm-926ejs-linux-gnueabi/sysroot/usr/lib/crtn.o'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: Removing unused section '.fini' in file '/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/arm-926ejs-linux-gnueabi/sysroot/usr/lib/crtn.o'
/opt/tbox/gcc-4.4.6-glibc-2.9/arm-926ejs-linux-gnueabi/lib/gcc/arm-926ejs-linux-gnueabi/4.4.6/../../../../arm-926ejs-linux-gnueabi/bin/ld: error: no memory region specified for loadable section `.interp'
collect2: ld returned 1 exit status
make[1]: *** [sram] Error 1
make[1]: Leaving directory `/home/gil/Projects/KernelLinux/tools/sam-ba_cdc_cdc_linux/applets/sam9xx5/sam-ba_applets/lowlevelinit'
make: *** [applets] Error 2


Is this due to my compiler, or some missing resources?
It is a custom compiler, created with crosstool-ng.
I have also tried with a codesourcery compiler under windows (with cygwin) but in this case, the error is:

Code:
...

c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld.exe: warning: changing start of section .gnu.version_r by 2 bytes
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld.exe: warning: changing start of section .gnu.version_d by 1 bytesc:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld.exe: warning: changing start of section .gnu.version by 1 bytes
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld.exe: warning: changing start of section .gnu.version_r by 2 bytes
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld.exe: bin/applet-lowlevelinit-sam9g15.elf: hidden symbol `__init_array_end' isn't defined
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.2/../../../../arm-none-linux-gnueabi/bin/ld.exe: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [sram] Error 1
make[1]: Leaving directory `/cygdrive/c/Program Files/ATMEL Corporation/sam-ba_2.11/applets/sam9xx5/sam-ba_applets/lowlevelinit'
make: *** [applets] Error 2



SAM-BA version is 2.11.
Does anyone have an idea of what is going wrong?


Top
 Profile  
 
 Post subject: Re: Applet compilation
PostPosted: Tue Jul 17, 2012 5:06 pm 
Offline

Joined: Mon Oct 10, 2011 11:23 am
Posts: 5
Problem is solved, it compile with this compiler from code sourcery: arm-2012.03-56-arm-none-eabi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: