FastLED ws2818B rgb black compilation error

Hi everyone,

I'm using a ws2812b LED stripe and wanting to turn the specific leds off. I have tried CRGB::Black and assigning 0 to the led's r,g,b values, both ended up in compilations errors. Here are my code and error log. Does anyone know what is causing this? Thank you.

// Now turn the LED off, then pause

Arduino: 1.8.9 (Windows Store (Windows 10), Board: "Arduino Mega ADK"

In file included from C:\Users\sesa525401\Documents\Arduino\sketch_aug15a\sketch_aug15a.ino:1:0:

C:\Users\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.000

pragma message "FastLED version 3.003.000"


C:\Users\Documents\Arduino\libraries\FastLED/controller.h: In member function 'clearLeds':

C:\Users\Documents\Arduino\libraries\FastLED/controller.h:76:82: internal compiler error: Segmentation fault

virtual void clearLeds(int nLeds) { showColor(CRGB::Black, nLeds, CRGB::Black); }


Please submit a full bug report,

with preprocessed source if appropriate.

See for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Mega ADK.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This bug is specific to the 5.4.0-atmel3.6.1-arduino2 version of avr-gcc used by Arduino AVR Boards 1.6.22 and newer. It has been reported here:

Here's the traditional workaround:

  • Tools > Board > Boards Manager
  • Wait for downloads to finish.
  • When you move the mouse pointer over "Arduino AVR Boards", you will see a "Select version" dropdown menu appear. Select "1.6.21".
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close".

If you have File > Preferences > Check for updates on startup checked, the Arduino IDE may occasionally notify you that a new version of Arduino AVR Boards is available, you'll need to refrain from updating back to the new Arduino AVR Boards version, otherwise you'll be back to seeing the segmentation fault error again.