avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] avr-libc


From: Senthil Kumar Selvaraj
Subject: Re: [avr-gcc-list] avr-libc
Date: Tue, 31 Jul 2012 18:29:45 +0530
User-agent: Mutt/1.5.21 (2010-09-15)

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
> 
> address@hidden ~ $ cat demo.c
> int main () { return 0; }
> address@hidden ~ $ 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 <address@hidden>
> 
> > 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:
> > >
> > > address@hidden ~ $ 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
> >



reply via email to

[Prev in Thread] Current Thread [Next in Thread]