New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4 WS1812b strips on nano D2-D5 will not compile #732

Open
tip32a opened this Issue Feb 4, 2019 · 5 comments

Comments

Projects
None yet
2 participants
@tip32a
Copy link

tip32a commented Feb 4, 2019

I am using the cyclone demo and have 4 ws2812b 144 led strips on D2-D5 on a genuine arduino nano.
The code in question looks like
LEDS.addLeds<WS2812,5,RGB>(leds,NUM_LEDS);
LEDS.addLeds<WS2812,4,RGB>(leds,NUM_LEDS);
LEDS.addLeds<WS2812,3,RGB>(leds,NUM_LEDS);
LEDS.addLeds<WS2812,2,RGB>(leds,NUM_LEDS);

This causes a compile error.
FastLED version 3.002.001

lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files (x86)/arduino/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 Nano.

Yet when I use 5,4,3,6 it compiles.
The problem is the nano is already epoxied in place and I really need to use D2-D5 if possible.

Thanks in advance.

@focalintent

This comment has been minimized.

Copy link
Member

focalintent commented Feb 4, 2019

This looks like it is most likely a bug in Arduino/the compiler Arduino uses - what version of Arduino are you using?

@tip32a

This comment has been minimized.

Copy link
Author

tip32a commented Feb 6, 2019

1.8.8

@tip32a

This comment has been minimized.

Copy link
Author

tip32a commented Feb 6, 2019

In my app if I have 5,4,3, and 2 OR 5,4,3 and 6 I get

lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files (x86)/arduino/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 Nano.

@focalintent

This comment has been minimized.

Copy link
Member

focalintent commented Feb 6, 2019

Can you please copy/paste the entire build log into gist.github.com and post the link here. I want to see if there’s any other messages that hint at what is going on.

@focalintent

This comment has been minimized.

Copy link
Member

focalintent commented Feb 6, 2019

It looks like you might be hitting this issue in Arduino - arduino/Arduino#7949

There's some comments here - https://forum.arduino.cc/index.php?topic=568731.0 - that have workaround suggestions:

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:
arduino/Arduino#7949

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".

See if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment