AW: [En-Nut-Discussion] Build-Problems with WinAVR 20050214

Alexander Zäch alexander.zaech at bytehunter.de
Sat Feb 19 17:43:03 CET 2005


Hi Oliver

Now it works with WinAVR 20050214 (gcc 3.4.3)!
Many thanks for your help.

With kind regards

AlexZ

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Oliver Schulz
Gesendet: Samstag, 19. Februar 2005 00:34
An: 'Ethernut User Chat (English)'
Betreff: AW: [En-Nut-Discussion] Build-Problems with WinAVR 20050214


Hi Alex,

Since version 3.4.3 of avr-gcc, I have the same problem. Meanwhile I found a
workaround, which makes it possible to compile Nut/OS again with gcc 3.4.x. 
Simply add the option -fno-regmove after the option -Os in the line starting
with CPFLAGS in file Makedefs.avr-gcc

Obviously the is a problem with the optimization of the registers in gcc for
target avr.

BTW, even with the option -fno-regmove it's not possible to compile Nut/OS
with the current gcc HEAD (version 4.0.0 (experimental)).

Hope that helps,
Oliver.

> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von 
> Matthias Ringwald
> Gesendet: Freitag, 18. Februar 2005 12:00
> An: Ethernut User Chat (English)
> Betreff: Re: [En-Nut-Discussion] Build-Problems with WinAVR 20050214
> 
> hi alexz
> 
> as mentioned in my last mail, nut/os CVS does not compile
> without modifications using avr-libc-1.2+ . WinAVR20050214 
> contains avr-libc-1.2.2 oder .3, so thats a reason it does 
> not work out of the box. so my simple recommendation is to go 
> back to the previous WinAVR.
> 
> I'm right now trying to do a small fix, that at least deals
> with some moved header files of avr-libc in a compatible way 
> (old and new avr-libc..)
> 
> your compile problem look seems directly related with the
> newer avr-gcc.
> you might ask on avr-gcc-chat list.
> 
> regards,
> matthias
> 
> 
> 
> right now
> On 18.02.2005, at 09:51, Alexander Zäch wrote:
> 
> > Hello everybody!
> >
> > I found out some problems using the new WinAVR version 20050214 for
> > building the libraries of Nut/OS. Please have a look @ this:
> >
> > [ ... ]
> > C:/ethernut/nut/net/arpcache.c: In function `NutArpCacheQuery':
> > C:/ethernut/nut/net/arpcache.c:487: error: unable to find a
> register
> > to spill in class `POINTER_REGS'
> > C:/ethernut/nut/net/arpcache.c:487: error: this is the insn: (insn 
> > 90 207 206 5 (parallel [
> >             (set (mem:BLK (reg/v/f:HI 44 [ mac ]) [0 A8])
> >                 (mem:BLK (reg/v/f:HI 28 r28 [orig:46 entry
> ] [46]) [0
> 
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de 
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion





More information about the En-Nut-Discussion mailing list