Arduino Create lto-wrapper failed

Out of the blue compilation in Arduino Create failed on TWO different sketches that were previously compiled and uploaded with no error. Board is Arduino Nano. Error message is: ............ ./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:avr:nano:cpu=atmega328old -build-cache /tmp -build-path /tmp/870751721/build -verbose -prefs -prefs -prefs -libraries /tmp/870751721/custom -libraries /tmp/870751721/pinned /tmp/870751721/AutoCap_ArduinoUno_v1.5

Using library Newliquidcrystal_1.3.5 in folder: /tmp/870751721/custom/Newliquidcrystal_1.3.5 (legacy)

Using library Wire at version 1.0 in folder: /home/ubuntu/opt/cores/arduino/avr/libraries/Wire

lto1: fatal error: bytecode stream generated with LTO version 3.0 instead of the expected 4.1

compilation terminated.

lto-wrapper: fatal error: ./opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/ubuntu/opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status

exit status 1 ..........

Error seems to exist before but I could not find a solution. Any solutions or should I switch from cloud editor??


I believe that this is, unfortunately, an error with the web editor. You can download the app or hang until the error is fixed.

I've been having the same problem :(

Same issue. Trying to do some last minute updates to a Halloween project :-(.

There are multiple other reports of this bug:

I recommend subscribing to those threads so that you'll be sure to get news of any progress in fixing it.

This is an Arduino Web Editor specific problem so the workaround is to use the regular Arduino IDE, which you can download for free from:

Hello, please follow topic Issue 2018-10-30: lto-wrapper error prevent compilations for further information and updates about this.

Thank you.