Re: Building code

Senthil Kumar Selvaraj <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
On Thu, Oct 09, 2014 at 11:16:19AM +0200, Andreas Höschler wrote:
> Hi Senthil,
> 
> > The compiler is not able to find header files supplied by avr-libc. Did
> > you build both of them with the same install prefix? Can you paste the
> > output of running avr-gcc with -v?
> 
> 
> See below:
> 
> -bash-3.2$ avr-gcc  -v
> Using built-in specs.
> Target: avr
> Configured with: ../gcc-4.3.3/configure --target=avr --prefix=/usr/local/avr --enable-languages=c --disable-libssp --disable-shared --disable-libada --disable-libssp --disable-nls --with-dwarf2 --with-gmp=/usr/local --with-mpfr=/usr/local --prefix=/usr/local/avr : (reconfigured) ../gcc-4.3.3/configure --target=avr --prefix=/usr/local/avr --enable-languages=c --disable-libssp --disable-shared --disable-libada --disable-libssp --disable-nls --with-dwarf2 --with-gmp=/usr/local --with-mpfr=/usr/local --prefix=/usr/local/avr : (reconfigured) ../gcc-4.3.3/configure --target=avr --prefix=/usr/local/avr --enable-languages=c --disable-libssp --disable-shared --disable-libada --disable-libssp --disable-nls --with-dwarf2 --with-gmp=/usr/local --with-mpfr=/usr/local --prefix=/usr/local/avr
> Thread model: single
> gcc version 4.3.3 (GCC) 
> 

Hmm, did you manage to build avr-libc successfully? Atleast from the avr-libc 
configure command line you sent in the previous email, it looks like
you're missing --prefix.

Can you try configuring avr-libc with

./configure --host=avr --prefix=/usr/local/avr

and then running make and make install?

Regards
Senthil
> 
> Thanks,
> 
>  Andreas
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.