Help with AVR32

Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org>
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
Hello,

compiling the apps for AVR32 with
> avr32-gcc --version
avr32-gcc (AVR_32_bit_GNU_Toolchain_3.4.3_820) 4.4.7
from the AVR website give e.g for evk1101/app/caltime:

evk1101/apps/caltime> make
avr32-gcc caltime.o -mpart=uc3b0256 -nostartfiles \
-L/devel/ethernut_sf/build/evk1101/../../nut/arch/avr32/ldscripts \
-Wl,-Tuc3b0256_rom.ld,-Map=caltime.map,--cref,--no-warn-mismatch \
-L/devel/ethernut_sf/build/evk1101/./lib \
-Wl,--start-group /devel/ethernut_sf/build/evk1101/./lib/nutinit.o \
-lnutpro -lnutgorp -lnutcrt -lnutos -lnutdev -lnutarch  \
-Wl,--end-group -o caltime.elf

/opt/cross/avr32-gnu-toolchain-linux_x86_64/bin/../lib/gcc/avr32/4.4.7/../../../../avr32/lib/ucr1/libc.a(lib_a-fflush.o): In function `fflush':
(.text.fflush+0x0): multiple definition of `fflush'
/devel/ethernut_sf/build/evk1101/./lib/libnutcrt.a(fflush.o):fflush.c:(.text.fflush+0x0): first defined here
collect2: ld returned 1 exit status
/devel/ethernut_sf/build/evk1101/../../nut/app/Makerules.gcc:41: recipe for target 'caltime.elf' failed
make: *** [caltime.elf] Error 1

Undefining "USE_LINE_EDITOR" makes the application compile. Has anybody
insight into the interaction between out libc and the avr32-libc that
collides fot fflush() in this example but not in the other examples? Any
ideas to clean up?

Thanks
-- 
Uwe Bonnes                bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.