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 Using built-in specs. COLLECT_GCC=avr-gcc Target: avr Configured with: ../configure --target=avr --mandir=/usr/share/man --datadir=/usr/share --prefix=/opt/toolchain/avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2 --with-system-zlib --enable-version-specific-runtime-libs --with-pkgversion='Pardus Linux' --with-bugurl=http://bugs.pardus.org.tr Thread model: single gcc version 4.7.1 (Pardus Linux) COLLECT_GCC_OPTIONS='-mmcu=atmega8' '-v' '-c' /opt/toolchain/avr/libexec/gcc/avr/4.7.1/cc1 -quiet -v -imultilib avr4 demo.c -quiet -dumpbase demo.c -mmcu=atmega8 -auxbase demo -version -o /tmp/cc2pzgVI.s GNU C (Pardus Linux) version 4.7.1 (avr) compiled by GNU C version 4.5.3, GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/opt/toolchain/avr/lib/gcc/avr/4.7.1/../../../../avr/sys-include" ignoring nonexistent directory "/opt/toolchain/avr/lib/gcc/avr/4.7.1/../../../../avr/include" #include "..." search starts here: #include <...> search starts here: /opt/toolchain/avr/lib/gcc/avr/4.7.1/include /opt/toolchain/avr/lib/gcc/avr/4.7.1/include-fixed End of search list. GNU C (Pardus Linux) version 4.7.1 (avr) compiled by GNU C version 4.5.3, GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: f2b81f82542e686b629ed0ebdfab0d77 COLLECT_GCC_OPTIONS='-mmcu=atmega8' '-v' '-c' as -mmcu=atmega8 -mno-skip-bug -o demo.o /tmp/cc2pzgVI.s as: tanınmayan seçenek: `-mmcu=atmega8'
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