[En-Nut-Discussion] build problem concerning USART

Jungeol Chun nautes at gmail.com
Tue Feb 6 00:54:51 CET 2007


Hi, Thiago.

Yes, I used GCC 4.1.1.
It's unbelievable that new version of complier has such a simple and stupid
bug. :(
After I changed gcc from 4.1.1 to 3.4.6, that problem was gone.
Thanks a lot.

On 2/5/07, Thiago A. Corrêa <thiago.correa at gmail.com> wrote:
>
> Hi Jungeol,
>
>
>     Are you using GCC 4.1? There was a message on the list not long ago
> about a bug with the compiler not being able to handle long switch'es.
> Using
> the previous winavr should help. One could do an unpleasant workaround
> such
> as default: switch( var ) {}. But I'm not sure if it is worth the effort.
> It
> sure is a pain having to change code to please a compiler bug.
>
> Regards,
>    Thiago A. Correa
>
> On 2/5/07, Jungeol Chun <nautes at gmail.com> wrote:
> >
> > I had a problem building Nut/OS using configurator.
> > When I tried to build OS, it returns an error message like this:
> >
> > avr-ar: creating libnutos.a
> > C:/ethernut-4.2.1/nut/dev/usart.c: In function 'UsartIOCtl':
> > C:/ethernut-4.2.1/nut/dev/usart.c:844: error: unable to find a register
> to
> > spill in class 'BASE_POINTER_REGS'
> > C:/ethernut-4.2.1/nut/dev/usart.c:844: error: this is the insn:
> > (insn 663 162 163 14 (set (mem/c:HI (plus:HI (reg/f:HI 28 r28)
> >                 (const_int 1 [0x1])) [29 S2 A8])
> >         (reg:HI 24 r24)) 12 {*movhi} (nil)
> >     (nil))
> > C:/ethernut-4.2.1/nut/dev/usart.c:844: confused by earlier errors,
> bailing
> > out
> > make[1]: *** [usart.o] Error 1
> > make: *** [all] Error 2
> >
> > --
> > I used Nut/OS configurator v1.3.1 and WinAVR(avr-gcc), NutOS 4.2.1 and
> > Ethernut20a configuration file.
> > Is there anyone having a solution?
> >
> > Thanks in advance.
> >
> > --
> > I think, therefore I am...................single!
> > --
> > Jungeol Chun                   nautes at gmail.com
> > _______________________________________________
> > http://lists.egnite.de/mailman/listinfo/en-nut-discussion
> >
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>



-- 
I think, therefore I am...................single!
--
Jungeol Chun                   nautes at gmail.com



More information about the En-Nut-Discussion mailing list