[En-Nut-Discussion] Help with AVR32

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jan 14 15:14:18 CET 2016


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 at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------


More information about the En-Nut-Discussion mailing list