.. I can start the Arduino IDE and have it know that a GEMMA board is attached. (The Port option is greyed out, but it looks like this is normal.)
When I try to compile the minimal program, it gives a couple of warnings and then comes up with some compiler errors:
Code: Select all
ian:~/arduino-1.5.7$ ./arduino
Board arduino:Trinket:trinket3 doesn't define a 'build.board' preference. Auto-set to: TRINKET_TRINKET3
Board arduino:Trinket:trinket5 doesn't define a 'build.board' preference. Auto-set to: TRINKET_TRINKET5
Board arduino:Trinket:gemma doesn't define a 'build.board' preference. Auto-set to: TRINKET_GEMMA
Board arduino:Trinket:Trinket doesn't define a 'build.board' preference. Auto-set to: TRINKET_TRINKET
Third-party platform.txt does not define compiler.path. Please report this to the third-party hardware maintainer.
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp: In member function 'String& String::copy(const __FlashStringHelper*, unsigned int)':
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:189:26: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
strcpy_P(buffer, (const prog_char *)pstr);
^
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:189:26: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:189:20: error: expected primary-expression before 'const'
strcpy_P(buffer, (const prog_char *)pstr);
^
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:189:20: error: expected ')' before 'const'
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp: In member function 'String& String::operator=(const __FlashStringHelper*)':
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:249:39: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
if (pstr) copy(pstr, strlen_P((const prog_char *)pstr));
^
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:249:39: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:249:33: error: expected primary-expression before 'const'
if (pstr) copy(pstr, strlen_P((const prog_char *)pstr));
^
/home/ian/arduino-1.5.7/hardware/arduino/Trinket/cores/arduino/WString.cpp:249:33: error: expected ')' before 'const'
As might be guessed from the paths, I am using Linux (specifically Lubuntu 14.04) so using one of the 'we've hacked this so it works' IDEs isn't an option.