[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Strange error in avr-gcc 4.3.3 - relocation truncated to
From: |
Carsten |
Subject: |
[avr-gcc-list] Strange error in avr-gcc 4.3.3 - relocation truncated to fit: R_AVR_13_PCREL |
Date: |
Tue, 11 Aug 2009 22:44:48 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090608) |
Hi avr-gcc list
I have noticed a strange error (list at bottom of post) , and Jörg
adviced me to forward the question here for a 2'nd opinion
I just tried to compile uracoli (http://www.nongnu.org/uracoli/index.html)
Source :
http://download.savannah.nongnu.org/releases/uracoli/uracoli-0.0.10-src.zip
Using the new avr-gcc 4.3.3 linux buildscript by the "sticky" on avr-freaks.
I know that script , as i maintain it based on Jörg's freebsd patches.
The script builds avr-gcc-4.3.3 w. binutils2.19.1 and then avr-libc-1.6.7
URL: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631
Source :
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=download&id=15350
You might have to register on avrfreaks , in order to download it.
I'm using a fully updated Ubuntu 8.10 , and have build avr-gcc with the
above mentioned script.
In order to build uracoli one must install scons (just an apt-get or
synaptic install on ubuntu)
http://www.scons.org/
Change to the extracted source and do a make ...
Here is the "Tail" of the console build output.
Regards
Bingo from AVR Freaks
"])
avr-gcc -o build/tiny230/xmpl/xmpl_trx_rxaack.o -c -Wall -Wundef -gstabs
-Os -mmcu=attiny84 -Dtiny230 -DBOOT_LOADER_ADDRESS=0x0 -DF_CPU=8000000UL
-Iinstall/inc -Ibuild/tiny230/xmpl/Inc -ISrc/Xmpl/Inc
Src/Xmpl/xmpl_trx_rxaack.c
avr-gcc -o build/tiny230/xmpl/xmpl_trx_rxaack_tiny230.elf
-Wl,-Map=build/tiny230/xmpl/xmpl_trx_rxaack_tiny230.map -mmcu=attiny84
build/tiny230/xmpl/xmpl_trx_rxaack.o -Linstall/lib -lradio_tiny230
-lio_tiny230
Install file: "build/tiny230/xmpl/xmpl_trx_rxaack_tiny230.elf" as
"install/bin/xmpl_trx_rxaack_tiny230.elf"
avr-objcopy -O ihex build/tiny230/xmpl/xmpl_trx_rxaack_tiny230.elf
build/tiny230/xmpl/xmpl_trx_rxaack_tiny230.hex
Install file: "build/tiny230/xmpl/xmpl_trx_rxaack_tiny230.hex" as
"install/bin/xmpl_trx_rxaack_tiny230.hex"
avr-gcc -o build/tiny230/xmpl/xmpl_radio_stream.o -c -Wall -Wundef
-gstabs -Os -mmcu=attiny84 -Dtiny230 -DBOOT_LOADER_ADDRESS=0x0
-DF_CPU=8000000UL -Iinstall/inc -Ibuild/tiny230/xmpl/Inc -ISrc/Xmpl/Inc
Src/Xmpl/xmpl_radio_stream.c
Src/Xmpl/xmpl_radio_stream.c: In function 'main':
Src/Xmpl/xmpl_radio_stream.c:60: warning: passing argument 1 of
'buffer_stream_init' discards qualifiers from pointer target type
Src/Xmpl/xmpl_radio_stream.c:62: warning: assignment from incompatible
pointer type
Src/Xmpl/xmpl_radio_stream.c:63: warning: assignment from incompatible
pointer type
Src/Xmpl/xmpl_radio_stream.c:64: warning: assignment discards qualifiers
from pointer target type
avr-gcc -o build/tiny230/xmpl/xmpl_radio_stream_tiny230.elf
-Wl,-Map=build/tiny230/xmpl/xmpl_radio_stream_tiny230.map -mmcu=attiny84
build/tiny230/xmpl/xmpl_radio_stream.o -Linstall/lib -lradio_tiny230
-lio_tiny230
/usr/local/avr-gcc-4.3.3-libc-1.6.7-14-Jun-2009/bin/../lib/gcc/avr/4.3.3/../../../../avr/lib/avr25/crttn84.o:
In function `__bad_interrupt':
../../../../../../source/avr-libc-1.6.7/crt1/gcrt1.S:193: relocation
truncated to fit: R_AVR_13_PCREL against symbol `exit' defined in .fini9
section in
/usr/local/avr-gcc-4.3.3-libc-1.6.7-14-Jun-2009/bin/../lib/gcc/avr/4.3.3/avr25/libgcc.a(_exit.o)
scons: *** [build/tiny230/xmpl/xmpl_radio_stream_tiny230.elf] Error 1
scons: building terminated because of errors.
make: *** [all] Error 2
address@hidden:~/avr/uracoli-rf-library/uracoli-0.0.10-src$
- [avr-gcc-list] Strange error in avr-gcc 4.3.3 - relocation truncated to fit: R_AVR_13_PCREL,
Carsten <=