On Tue, Jul 31, 2012 at 03:45:33PM +0300, Kaan Akşit wrote: > Thank you Senthil, here is the result of the test.c > > kaan@SAHILEVLERI ~ $ cat demo.c > int main () { return 0; } > kaan@SAHILEVLERI ~ $ avr-gcc -mmcu=atmega8 -v -c demo.c > as -mmcu=atmega8 -mno-skip-bug -o demo.o /tmp/cc2pzgVI.s > as: tanınmayan seçenek: `-mmcu=atmega8'
Clearly, it's not the AVR assembler that's running. Did you build avr binutils and avr gcc as per the procedure outlined in http://www.nongnu.org/avr-libc/user-manual/install_tools.html? In particular, did you add the installed binutils directory to the PATH environment variable before building avr-gcc? Regards Senthil > > Kaan > > 2012/7/31 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com> > > > On Tue, Jul 31, 2012 at 02:55:39PM +0300, Kaan Akşit wrote: > > > Dear all, > > > > > > I have tried the sample code under this link: > > > > > http://www.nongnu.org/avr-libc/user-manual/group__demo__project.html#demo_project_src > > > > > > and here is the output: > > > > > > kaan@SAHILEVLERI ~ $ avr-gcc -g -Os -mmcu=atmega8 -c demo.c > > > demo.c:17:22: fatal error: inttypes.h: No such file or directory > > > compilation terminated. > > > > > > > That is not very useful - compilation failed, so binutils is not > > involved. > > > > Can you try compiling the following program (say test.c) > > > > int main () { return 0; } > > > > with the following command line > > avr-gcc -mmcu=atmega8 -v -c test.c > > > > Regards > > Senthil > > _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list