[En-Nut-Discussion] Nut/OS Version 3.9.5 Pre-Release compilation fails (x2)

PinkF_ linuxhacker at poczta.onet.pl
Sun Feb 20 13:51:48 CET 2005


-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


-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]))
            (use (reg:QI 24 r24 [60]))
            (use (const_int 1 [0x1]))
            (clobber (scratch:HI))
            (clobber (scratch:HI))
            (clobber (scratch:QI))
        ]) 16 {*movstrqi_insn} (insn_list 87 (insn_list 89 (nil)))
    (expr_list:REG_DEAD (reg:QI 24 r24 [60])
        (expr_list:REG_DEAD (reg/v/f:HI 44 [ mac ])
            (expr_list:REG_UNUSED (scratch:QI)
                (expr_list:REG_UNUSED (scratch:HI)
                    (expr_list:REG_UNUSED (scratch:HI)
                        (nil)))))))
arpcache.c:487: confused by earlier errors, bailing out
make[1]: *** [arpcache.o] Error 1
make[1]: Leaving directory `/nut/net'
make: *** [all] Error 2



System Debian Sid
gcc-avr/testing uptodate 1:3.4.3-1 (3.4.3)
avr-libc/testing uptodate 1:1.0.5-1 (1.0.5)
binutils-avr/testing uptodate 2.15-1 

Yours sincerelly Tomasz T.



More information about the En-Nut-Discussion mailing list