jblang
January 7, 2016, 2:26am
1
It’s been a while since I hacked on Aurora and I’m trying to get it building again. I reinstalled Windows since the last time, so I’m trying to get up and running again on a fresh install of the Arduino software and I’m getting ALL KINDS of build errors.
I’m using the following versions:
Arduino 1.6.7
Teensyduino 1.27
FastLED-3.1.0
SmartMatrix3-3.0.0
aJson master
Aurora master
Here are the errors I’m getting… any thoughts?
gistfile1.txt
Arduino: 1.6.7 (Windows 10), TD: 1.27, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimized (overclock), US English"
In file included from C:\Users\jblang\Documents\Arduino\Aurora\Aurora.ino:63:0:
C:\Users\jblang\arduino-1.6.7\libraries\FastLED-3.1.0/FastLED.h:12:2: warning: #warning FastLED version 3.001.000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3.001.000 (Not really a warning, just telling you here.)
^
In file included from C:\Users\jblang\Documents\Arduino\Aurora\Aurora.ino:70:0:
C:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared
static bool read(tmElements_t &tm);
^
This file has been truncated. show original
Jason
January 7, 2016, 2:54am
2
Hey, JB! Yeah, it’s been a while for me as well. I haven’t tried Arduino 1.6.7 yet, but I’ll try to soon. Looks like you might be missing the Time library. Did you choose it when installing Teensyduino? Here’s the full list of dependencies: Compiling · pixelmatix/aurora Wiki · GitHub
Can you enable verbose compilation output in the Arduino Preferences? If you do, it’ll list off the locations of all the libraries it’s including in your sketch.
jblang
January 7, 2016, 3:25am
3
I tried reinstalling Teensyduino just to make sure I had selected the Time library and it still fails. I have selected all 3 listed in the wiki.
Can you let me know what version of Arduino and Teensyduino you were using the last time you successfully compiled Aurora?
Here’s the output you requested. I noticed it’s not listing the Time library but I went and double checked that the directory exists in C:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\Time.
gistfile1.txt
Arduino: 1.6.7 (Windows 10), TD: 1.27, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimized (overclock), US English"
C:\Users\jblang\arduino-1.6.7\arduino-builder -dump-prefs -logger=machine -hardware "C:\Users\jblang\arduino-1.6.7\hardware" -tools "C:\Users\jblang\arduino-1.6.7\tools-builder" -tools "C:\Users\jblang\arduino-1.6.7\hardware\tools\avr" -built-in-libraries "C:\Users\jblang\arduino-1.6.7\libraries" -libraries "C:\Users\jblang\Documents\Arduino\libraries" -fqbn=teensy:avr:teensy31:usb=serial,speed=96opt,keys=en-us -ide-version=10607 -build-path "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\jblang\Documents\Arduino\Aurora\Aurora.ino"
C:\Users\jblang\arduino-1.6.7\arduino-builder -compile -logger=machine -hardware "C:\Users\jblang\arduino-1.6.7\hardware" -tools "C:\Users\jblang\arduino-1.6.7\tools-builder" -tools "C:\Users\jblang\arduino-1.6.7\hardware\tools\avr" -built-in-libraries "C:\Users\jblang\arduino-1.6.7\libraries" -libraries "C:\Users\jblang\Documents\Arduino\libraries" -fqbn=teensy:avr:teensy31:usb=serial,speed=96opt,keys=en-us -ide-version=10607 -build-path "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\jblang\Documents\Arduino\Aurora\Aurora.ino"
"C:\Users\jblang\arduino-1.6.7\hardware\tools\avr/../arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=127 -DARDUINO=10607 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\cores\teensy3" "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp\sketch\Aurora.ino.cpp" -o "nul"
"C:\Users\jblang\arduino-1.6.7\hardware\tools\avr/../arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=127 -DARDUINO=10607 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\cores\teensy3" "-IC:\Users\jblang\arduino-1.6.7\libraries\SmartMatrix3\src" "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp\sketch\Aurora.ino.cpp" -o "nul"
"C:\Users\jblang\arduino-1.6.7\hardware\tools\avr/../arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=127 -DARDUINO=10607 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\cores\teensy3" "-IC:\Users\jblang\arduino-1.6.7\libraries\SmartMatrix3\src" "-IC:\Users\jblang\arduino-1.6.7\libraries\FastLED-3.1.0" "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp\sketch\Aurora.ino.cpp" -o "nul"
"C:\Users\jblang\arduino-1.6.7\hardware\tools\avr/../arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=127 -DARDUINO=10607 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\cores\teensy3" "-IC:\Users\jblang\arduino-1.6.7\libraries\SmartMatrix3\src" "-IC:\Users\jblang\arduino-1.6.7\libraries\FastLED-3.1.0" "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\IRremote" "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp\sketch\Aurora.ino.cpp" -o "nul"
"C:\Users\jblang\arduino-1.6.7\hardware\tools\avr/../arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=127 -DARDUINO=10607 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\cores\teensy3" "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\SPI" "-IC:\Users\jblang\arduino-1.6.7\libraries\SmartMatrix3\src" "-IC:\Users\jblang\arduino-1.6.7\libraries\FastLED-3.1.0" "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\IRremote" "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp\sketch\Aurora.ino.cpp" -o "nul"
"C:\Users\jblang\arduino-1.6.7\hardware\tools\avr/../arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=127 -DARDUINO=10607 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\cores\teensy3" "-IC:\Users\jblang\arduino-1.6.7\libraries\SmartMatrix3\src" "-IC:\Users\jblang\arduino-1.6.7\libraries\FastLED-3.1.0" "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\IRremote" "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\SPI" "-IC:\Users\jblang\arduino-1.6.7\hardware\teensy\avr\libraries\SD" "C:\Users\jblang\AppData\Local\Temp\build5f65a35292af3266d641135ec23b93ea.tmp\sketch\Aurora.ino.cpp" -o "nul"
This file has been truncated. show original
Jason
January 8, 2016, 4:07pm
4
I’m able to build it without error in 1.6.4. I can try in newer versions, but it’ll likely be a few days. It’s odd that Time isn’t listed in the libraries.
jblang
January 8, 2016, 5:57pm
5
What version of Teensyduino? I’m thinking that might be just as important or maybe more important than the verison of Arduino.
Jason
January 8, 2016, 11:48pm
6
Just now compiled it without error using Arduino 1.6.5 and Teensyduino 1.25-beta2. Not sure why I’m still using a beta, but I’m sure it’d still work with the release version.
jblang
January 13, 2016, 11:42pm
7
Got sidetracked from this a bit and I just now got back to it. I got it to compile using Arduino 1.6.5 and Teensyduino 1.25 (not the beta). There was also an issue with the latest aJson due to this commit:
committed 07:18PM - 12 Jul 15 UTC
They conditionalize the location of the pgmspace.h include:
#ifdef __AVR__
#include <avr/pgmspace.h>
#else
#include <pgmspace.h>
#endif
But apparently the Teensy still puts it in avr/pgmspace.h even though it’s not really an AVR. I changed
#ifdef __AVR__
to
#if defined(__AVR__) || defined(TEENSYDUINO)
And it works now. I’ve submitted a pull request for aJson: Fix pgmspace include for Teensyduino by jblang · Pull Request #79 · interactive-matter/aJson · GitHub
UPDATE: I’ve done a bit more testing and determined the problem seems to be Arduino 1.6.6 or later. I got it to successfully compile using Arduino 1.6.5-r5 and Teensyduino 1.27. I’ve updated the wiki compilation instructions to include the caveats I’ve discovered.
I’m not sure where to start debugging the compilation issues with 1.6.6 and later… I will leave that to the professionals. If you think it would be helpful I can ask for help on the PJRC forums.
Jason
January 15, 2016, 3:24am
9
Cool, thanks! I’ve been out of town the last few days, and will be out again all weekend, but hope to get a chance to try on the latest Arduino and Teensyduino some time next week.