error compiling



  • Hi all,

    Latest MySensors 2.3.2 on Moteino USB is giving the following compile errors:

    "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.8.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\cores\\arduino" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\Moteino\\hardware\\avr\\1.6.1\\variants\\Moteino" "-Ic:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\libraries\\Wire\\src" "-Ic:\\Users\\ashes\\Documents\\Arduino\\libraries\\SparkFun_BME280\\src" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino-sketch-9F678573572D7168587156F8AF298387\\sketch\\MotionSensor-lowlabs_v2_Nr2.ino.cpp" -o "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino-sketch-9F678573572D7168587156F8AF298387\\sketch\\MotionSensor-lowlabs_v2_Nr2.ino.cpp.o"
    In file included from c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/MyCryptoAVR.h:25:0,
                     from c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/MyCryptoAVR.cpp:21,
                     from c:\Users\ashes\Documents\Arduino\libraries\MySensors/MySensors.h:65,
                     from C:\Users\ashes\Documents\Arduino\MotionSensor-lowlabs_v2_Nr2\MotionSensor-lowlabs_v2_Nr2.ino:17:
    c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp: In function 'AES_CBC_encrypt_buffer(AES_ctx*, unsigned char*, unsigned long)':
    c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:525:1: error: unable to find a register to spill in class 'POINTER_REGS'
     }
     ^
    c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:525:1: error: this is the insn:
    (insn 288 325 289 11 (set (reg:HI 26 r26)
            (reg/v/f:HI 67 [ buf ])) c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:524 82 {*movhi}
         (expr_list:REG_DEAD (reg/v/f:HI 67 [ buf ])
            (nil)))
    c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:525: confused by earlier errors, bailing out
    
    Using library MySensors at version 2.3.2 in folder: C:\Users\ashes\Documents\Arduino\libraries\MySensors 
    Using library SPI at version 1.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\libraries\SPI 
    Using library Wire at version 1.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\libraries\Wire 
    Using library SparkFun_BME280 at version 2.0.9 in folder: C:\Users\ashes\Documents\Arduino\libraries\SparkFun_BME280 
    exit status 1
    
    Compilation error: exit status 1
    

    Any idea how to fix it? Using latest Arduino IDE and libraries


  • Mod

    @alexsh1 https://github.com/arduino/ArduinoCore-avr/issues/158 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040 suggests it is a bug in gcc. It seems to have been resolved a long time ago though.


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 2
  • 8
  • 6

12
Online

11.4k
Users

11.1k
Topics

112.7k
Posts