[En-Nut-Discussion] Nut/OS configurator Floating point activation leads to compiler error (.elf file)
Philipp Drey
drey at imtek.de
Sun Jul 29 17:40:35 CEST 2012
Hello,
I'm working with an EtherNut 2.1B board. As in my program code floating
point operations are needed, I activated floating point in the Nut/OS
configurator, like discribed in the NutWiki. Afte compiling with the new
config file, I get an error (I think while building the .elf file, or
somewhere after line 33).
I am working on a WinXP PC and complie on the command line.
Here is the output from the console:
1.
C:\ethernut-4.10\nutapp_21b\NutTracker>make clean
2.
rm -f NutTracker.o
3.
rm -f NutTracker.hex NutTracker.bin NutTracker.elf
4.
rm -f NutTracker.eep
5.
rm -f NutTracker.obj
6.
rm -f NutTracker.map
7.
rm -f NutTracker.lst
8.
rm -f NutTracker.bak
9.
rm -f NutTracker.i
10.
C:\ethernut-4.10\nutapp_21b\NutTracker>make burn
11.
avr-gcc -c -IC:/ethernut-4.10/nutbld_21b/include -IC:/ethernut-4.10/nut/include
12.
-DETHERNUT2 -D__HARVARD_ARCH__ -mmcu=atmega128 -Os -fno-delete-null-pointer-c
13.
hecks -Wall -Wstrict-prototypes -Wa,-a=NutTracker.lst -o NutTracker.o NutTracke
14.
r.c
15.
NutTracker.c: In function 'ProcessRequests':
16.
NutTracker.c:232: warning: implicit declaration of function 'NutSleep'
17.
NutTracker.c:233: warning: implicit declaration of function 'NutReset'
18.
NutTracker.c:287:4: warning: "/*" within comment
19.
NutTracker.c:308: warning: implicit declaration of function 'ScanAtXY'
20.
NutTracker.c:312: warning: implicit declaration of function 'tracker'
21.
NutTracker.c:166: warning: unused variable 'i'
22.
NutTracker.c:165: warning: unused variable 'sinus'
23.
NutTracker.c:164: warning: unused variable 'kR'
24.
NutTracker.c:162: warning: unused variable 'z_rad'
25.
NutTracker.c: At top level:
26.
NutTracker.c:332: warning: conflicting types for 'ScanAtXY'
27.
NutTracker.c:308: warning: previous implicit declaration of 'ScanAtXY' was here
28.
NutTracker.c:389: warning: conflicting types for 'tracker'
29.
NutTracker.c:312: warning: previous implicit declaration of 'tracker' was here
30.
NutTracker.c: In function 'NutAppMain':
31.
NutTracker.c:479: warning: implicit declaration of function 'fdevopen'
32.
NutTracker.c:502: warning: implicit declaration of function 'NutDhcpIfConfig'
33.
avr-gcc NutTracker.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=NutTracker.map,--c
34.
ref -LC:/ethernut-4.10/nutbld_21b/lib -Wl,--start-group C:/ethernut-4.10/nutbld_
35.
21b/lib/nutinit.o -lnutpro -lnutnet -lnutfs -lnutos -lnutgorp -lnutcrt -lnutdev
36.
-lnutarch -Wl,--end-group -o NutTracker.elf
37.
c:/programme/winavr/bin/../lib/gcc/avr/4.3.3/../../../../avr/lib/avr51\libc.a(fp
38.
_powsodd.o): In function `__fp_powsodd':
39.
(.text.avr-libc.fplib+0x10): relocation truncated to fit: R_AVR_13_PCREL against
40.
symbol `__mulsf3' defined in .text section in c:/programme/winavr/bin/../lib/gc
41.
c/avr/4.3.3/avr51\libgcc.a(_mul_sf.o)
42.
c:/programme/winavr/bin/../lib/gcc/avr/4.3.3/../../../../avr/lib/avr51\libc.a(fp
43.
_powsodd.o): In function `__fp_powsodd':
44.
(.text.avr-libc.fplib+0x20): relocation truncated to fit: R_AVR_13_PCREL against
45.
symbol `__mulsf3' defined in .text section in c:/programme/winavr/bin/../lib/gc
46.
c/avr/4.3.3/avr51\libgcc.a(_mul_sf.o)
47.
make: *** [NutTracker.elf] Error 1
48. C:\ethernut-4.10\nutapp_21b\NutTracker>
Since I'm not an expert in programming, I don't understand the error
message. I hope someone can tell me where to search the error.
Regards, Philipp
More information about the En-Nut-Discussion
mailing list