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. Here is my configure for binutils 2.22.52.0.4: ./configure --mandir=/usr/share/man --datadir=/usr/share --prefix=/usr --target=avr --disable-werror --disable-nls Here is my configure for avr-gcc 4.7.1: ./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 Best regards, Kaan 2012/7/31 Georg-Johann Lay <a...@gjlay.de> > Kaan Aks,it wrote: > > Dear all, > > > > I have successfully installed avr-binutils, avr-gcc by compiling from the > > source. Now it is time for me to compile avr-libc so that I can use the > > complete AVR toolchain. But I have encountered an error during > > configuration phase of avr-libc. Here is the config.log of the avr-libc. > I > > couldn't understand where the problem is, I kindly ask for your > > suggestions/directions/comments/advices? > > > > Best regards, > > Kaan > > > > This file contains any messages produced by compilers while > > running configure, to aid debugging if configure makes a mistake. > > > > It was created by avr-libc configure 1.8.0, which was > > generated by GNU Autoconf 2.68. Invocation command line was > > > > $ ./configure --build=x86_64-pc-linux-gnu --prefix=/usr/share/avr > > --host=avr > > > > ## --------- ## > > ## Platform. ## > > ## --------- ## > > > > hostname = SAHILEVLERI > > uname -m = x86_64 > > uname -r = 3.2.5 > > uname -s = Linux > > uname -v = #1 SMP Fri Feb 10 13:22:45 EET 2012 > > > > [...] > > > > /tmp/ccbUBR6G.s:19: Error: no such instruction: `ldi r24,0' > > /tmp/ccbUBR6G.s:20: Error: no such instruction: `ldi r25,0' > > Appears you misconfigured GCC and/or binutils. > > Can you compile a sample program with that avr-gcc? > > Please read the configure documentation again. > > In particular, don't configure GCC in a subdirectory of > its source three which is not supported. > > Johann > >
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list