[En-Nut-Discussion] Nut/OS Version 3.9.5 Pre-Release compilation fails (x2)
Matthias Ringwald
mringwal at inf.ethz.ch
Mon Feb 21 11:46:55 CET 2005
On 20.02.2005, at 13:51, PinkF_ wrote:
> -1-
>
> make
> make -C os
> make[1]: Entering directory `/nut/os'
> avr-gcc -c -mmcu=atmega128 -Os -Wall -Werror -Wstrict-prototypes
> -Wa,-ahlms=nutinit.lst -D__HARVARD_ARCH__ -I../include nutinit.c -o
> nutinit.o
> In file included from nutinit.c:111:
> arch/avr_nutinit.c: In function `NutIdle':
> arch/avr_nutinit.c:392: error: parse error before '}' token
> arch/avr_nutinit.c:394: error: parse error before '}' token
> make[1]: *** [nutinit.o] Error 1
> make[1]: Leaving directory `/nut/os'
> make: *** [all] Error 2
>
> I don't understand (avr_nutinit.c):
>
> #if defined(__GNUC__) && defined(__AVR_ATmega128__)
> if (idle_sleep_mode != SLEEP_MODE_NONE) {
> sleep_mode = MCUCR & SLEEP_MODE_EXT_STANDBY;
> set_sleep_mode(idle_sleep_mode);
> sleep_mode();
> set_sleep_mode(sleep_mode);
> }
> #endif
>
this is a bug in avr-libc-1.0.5. you can replace avr/sleep.h with the
version from 1.0.4.
ole reinhard did post a patch to this on the list here.
>
> -2-
>
> avr-gcc -c -mmcu=atmega128 -Os -Wall -Werror -Wstrict-prototypes
> -Wa,-ahlms=arpcache.lst -D__HARVARD_ARCH__ -I../include arpcache.c
> -o arpcache.o
> arpcache.c: In function `NutArpCacheQuery':
> arpcache.c:487: error: unable to find a register to spill in class
> `POINTER_REGS'
> 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
> A8]))
> ..
As far as I remember, this was related to avr-gcc. try another version.
it was dicussed on the list, too.
matthias
More information about the En-Nut-Discussion
mailing list