Hello colleagues.
I came across following compilation error (linker error) during compilation of simple Xmega16E5 project:
make all
'Building target: SpectrumDFT.elf'
'Invoking: AVR C Linker'
avr-gcc -Wl,-Map,SpectrumDFT.map -mmcu=atxmega32e5 -o "SpectrumDFT.elf" ./SSD1309/ssd1309.o ./FONTS/fonts.o ./main.o
c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avrxmega2\libc.a(fp_powsodd.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S:59:(.text.avr-libc.fplib+0x10): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avrxmega2\libgcc.a(_mul_sf.o)
c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avrxmega2\libc.a(fp_powsodd.o):/data2/home/toolsbuild/jenkins-knuth/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S:69:(.text.avr-libc.fplib+0x20): relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in c:/program files/atmel/avr tools/avr toolchain/bin/../lib/gcc/avr/4.7.2/avrxmega2\libgcc.a(_mul_sf.o)
collect2.exe: error: ld returned 1 exit status
make: *** [SpectrumDFT.elf] Błąd 1
It seems to be correlated with cos (cosinus) function used as follows:
for(uint8_t i=0; i<100; ++i) Twiddle[i] = (int16_t) ((1 << 6)*cos(i*PI2/100));
Could anybody help? robiw