I'm having these bizarre compilation errors : (library file) FastLED/lib8tion.h:362:12: error:

I’m having these bizarre compilation errors :

(library file) FastLED/lib8tion.h:362:12: error: invalid output constraint ‘+a’ in asm

(library file) FastLED/fastpin.h:28:14: error: invalid input constraint ‘z’ in asm

Anyone know what to look for to debug this?

I would restart your computer in order to restart Java and the ide

I’d need to know more about what hardware that you’re compiling for. These kinds of errors indicate that you are compiling for something that isn’t arm or avr, but it is attempting to do asm code.

So - what hardware are you compiling for? What version of the arduino ide are you using? (And if you aren’t using the arduino ide, what are you using? )

I’m using the Codebender IDE to compile on an Adafruit Trinket Pro. I have many other projects running the same setup without problem. After some proper debugging I tried to remove chunks of my code until the problem goes away, and even then I couldn’t pinpoint the culprit.

It’s driving me mad. Even small code like this gives me the errors :

#include <FastLED.h>
void setup() {pinMode(MODEBUTTON_PIN, INPUT);}
void loop() {}

I’m starting to think it’s a bug with Codebender. If I delete the #include and successfully compile, then re-add it, not problem. It’s like a bug from a previous compilation sticks.

The one difference with this project is that I’m using other libraries that use SPI. I’m not sure if they’re supposed to play well with each other.

//Color manipulation library
#include <FastLED.h>

//Libraries for PWM driver
#include <Adafruit_TLC59711.h>
#include <SPI.h>

//Libraries for accelerometer
#include <Wire.h>
#include <Adafruit_MMA8451.h>
#include <Adafruit_Sensor.h>

@Mr_Happy I tried restarting, to no avail

So this:

#include <FastLED.h>
void setup() {pinMode(MODEBUTTON_PIN, INPUT);}
void loop() {}

is giving you errors, ultimately, because MODEBUTTON_PIN isn’t defined. If you add

#define MODEBUTTON_PIN 6

it starts compiling.

It looks like there are certain types of syntax error that, when you have them, causes code bender to completely eat itself. I have no idea why, but it does.

So - without seeing the entire .ino file that you’re trying to compile, I can’t give you much help on where the error is. (Please use http://pastebin.com or http://gist.github.com if you’re going to up load code to be looked at).

Here is the solution for anyone having this issue on Codebender : Compile your code on the desktop Arduino IDE. It will find your syntax error. Correct it and go back to work.

I apologize for the lack of details when bringing forward my problem.