[En-Nut-Discussion] Anybody on AVR32

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Mar 14 13:22:23 CET 2016


Hello,

compiling any AVR32 configuration, when linking app/caltime fflush is
defined twice:
/evk1100-intram/apps/caltime> make
avr32-gcc caltime.o -mpart=uc3a0512 -nostartfiles -L/devel/ethernut_sf/build/evk1100-intram/../../nut/arch/avr32/ldscripts -Wl,-Tuc3a0512_rom.ld,-Map=caltime.map,--cref,--no-warn-mismatch -L/devel/ethernut_sf/build/evk1100-intram/./lib -Wl,--start-group /devel/ethernut_sf/build/evk1100-intram/./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/ucr2/libc.a(lib_a-fflush.o): In function `fflush':
(.text.fflush+0x0): multiple definition of `fflush'
/devel/ethernut_sf/build/evk1100-intram/./lib/libnutcrt.a(fflush.o):fflush.c:(.text.fflush+0x0): first defined here
collect2: ld returned 1 exit status
/devel/ethernut_sf/build/evk1100-intram/../../nut/app/Makerules.gcc:41: recipe for target 'caltime.elf' failed
make: *** [caltime.elf] Error 1
evk1100-intram/apps/caltime> avr-gcc --version
avr-gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Any ideas how to fix?

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