[En-Nut-Discussion] AVR-GCC for Linux

Jan Dubiec jdx at slackware.pl
Sat Mar 13 16:10:34 CET 2004


Hello,

Which version of avr-gcc and avr-libc for Linux do you use? And where
can I find them? I am trying to merge my H8/300H port into the Nut/OS cvs
snapshot from 9th March and I would like to test whether my changes do
not break AVR build  process. Until then I tried two binary versions from:
 1) http://combio.de/avr/
 2) http://www.linet.gr.jp/~mituiwa/h8/gcc.html
I have installed them manually under /opt directory and set up Nut/OS
not modified source using configure script for ATmega103. When I typed
make I got follownig output:
jdx at hs001:~/NUT/nut.new$ make
make -C os
make[1]: Entering directory `/home/jdx/NUT/nut.new/os'
avr-gcc -c -mmcu=atmega103 -Os -Wall -Werror -Wstrict-prototypes -Wa,-ahlms=init.lst  -I../mod/include -I../include init.c -o init.o
In file included from ../include/compiler.h:84,
                 from ../include/sys/types.h:95,
                 from ../include/sys/heap.h:66,
                 from init.c:87:
../include/cpu/avr.h:203:20: avr/io.h: No such file or directory
[.....]

OK, the compiler couldn't see avr-libc headers so I did symbolic link:
root at hs001:/opt/avrgcc/include# ln -sf ../avr/include avr

Afther this change I got following messages:
jdx at hs001:~/NUT/nut.new$ make
make -C os
make[1]: Entering directory `/home/jdx/NUT/nut.new/os'
avr-gcc -c -mmcu=atmega103 -Os -Wall -Werror -Wstrict-prototypes -Wa,-ahlms=init.lst  -I/opt/avrgcc/include -I../mod/include -I../include init.c -o init.o
In file included from ../include/cpu/avr.h:205,
                 from ../include/compiler.h:84,
                 from ../include/sys/types.h:95,
                 from ../include/sys/heap.h:66,
                 from init.c:87:
/opt/avrgcc/include/avr/signal.h:7:2: #warning "please include sig-avr.h instead"
cc1: warnings being treated as errors
init.c: In function `NutSaveConfig':
init.c:150: warning: implicit declaration of function `eeprom_read_byte'
init.c:151: warning: implicit declaration of function `eeprom_write_byte'
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/home/jdx/NUT/nut.new/os'
make: *** [all] Error 2
jdx at hs001:~/NUT/nut.new$

The warning about sig-avr.h and eeprom functions (which also are not
declared in my avr/eeprom.h) has ssugested me that I have got an
outdated avr-libc/avr-gcc. Could you point me a link where I can
download the working stuff from?

Regards,
/J.D.
-- 
Jan Dubiec, jdx at slackware.pl, mobile: +48 602 101787

Głęboka wiara wymaga płytkiego rozumu i nikłej wiedzy.



More information about the En-Nut-Discussion mailing list