Closed sorphin closed 7 years ago
So.. it's not specific to RTC.. I commented some other features out (commented out their defines) with RTC still enabled... still fails the same way... FYI... Arudino IDE 1.6.9 and 1.6.10 are both doing this.. (I can't go higher right now).. OS X 10.11.4
Ok.. Interesting find... After some more searching... it appears it's related to a bug with g++.... On a hunch.. I rolled back the Arduino AVR Boards package back to 1.6.11 (1.6.12 - 1.6.14 fail)... and it compiles fine..
If I comment out #define RTC (Because I don't use the timer, etc).. I wind up with this in the compile output...
Users/dans/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/open_evse-stable.ino.elf" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/twi.c.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/Adafruit_TMP007.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/Gfi.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/I2CIO.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/J1772EvseController.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/J1772Pilot.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/LCD.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/LiquidCrystal_I2C.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/LiquidTWI2.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/MCP9808.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/RTClib.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/Time.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/Wire.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/avrstuff.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/open_evse-stable.ino.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/rapi_proc.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/serialcli.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/strings.cpp.o" "/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/core/core.a" "-L/var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp" -lm /Users/dans/Documents/ArduinoFiles/open_evse-stable/open_evse-stable.ino: In function 'ProcessInputs': open_evse-stable:2227: error: unable to find a register to spill in class 'NO_REGS' } ^ open_evse-stable:2227: error: this is the insn: (insn 749 746 752 132 (set (mem:QI (post_dec:HI (reg/f:HI 32 SP_L)) [0 S1 A8]) (subreg:QI (reg/f:HI 758) 1)) /var/folders/m4/n4xf0jg17djdjhcyrgtnwq9c0000gn/T/build4f48d17d60941664f85a5b58df5c7485.tmp/sketch/rapi_proc.cpp:403 1 {pushqi1} (expr_list:REG_ARGS_SIZE (const_int 7 [0x7]) (nil))) /Users/dans/Documents/ArduinoFiles/open_evse-stable/open_evse-stable.ino:2227: confused by earlier errors, bailing out lto-wrapper: /Users/dans/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/avr-gcc returned 1 exit status /Users/dans/Library/Arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.3-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status exit status 1 unable to find a register to spill in class 'NO_REGS'
When I put the #define RTC back in... all is fine..