avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] Re: Error building avr-libc 1.6.8 and with gcc 4.5.0


From: Vidar Vidnes
Subject: [avr-libc-dev] Re: Error building avr-libc 1.6.8 and with gcc 4.5.0
Date: Wed, 5 May 2010 17:59:03 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Joerg Wunsch <j <at> uriah.heep.sax.de> writes:

> 
> (Please subscribe to the list, you'll miss replies otherwise.)
> 

Good advise. I have registered now, but have not got any confirmation mail, yet,
after some hours waiting.

I will keep an eye on this thread manually until then

> As Vidar Vidnes wrote:
> 
> > In file included from ../../../../common/macros.inc:39:0,
> >                  from ../../../../crt1/gcrt1.S:38:
> > ../../../../include/avr/io.h:404:6: warning: #warning "device type not
> > defined"
> 
> Herein lies the rub.  Somehow, your build process must be busted, and
> no (or no appropriate) -mmcu= option passed to the compiler.  You
> didn't include the compiler command-line in your transcript.
> 
> Without a valid MCU name, building gcrt1.S cannot work.
> 

Yes, I noticed that but could not link it up to anything I did since I used the
below configuration options. That is if option "--target=avr" (or "--host=avr"
for avr-libc) is not enough.

Command line options for GCC (compilation went well)
../configure --prefix=$PREFIX --target=avr --enable-languages=c --disable-nls
--disable-libssp --with-dwarf2

Command line options for Avr-libc (compiled with error)
./configure --prefix=$PREFIX --build=`./config.guess` --host=avr

PREFIX is in both case /usr/local/avr

Have I missed an option here?

Breg
Vidar Vidnes





reply via email to

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