Go Down

Topic: Arduino Create lto-wrapper failed (Read 747 times) previous topic - next topic


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 runtime.tools.avr-gcc.path=./opt/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs runtime.tools.avrdude.path=./opt/tools/avrdude/6.3.0-arduino14 -prefs runtime.tools.arduinoOTA.path=./opt/tools/arduinoOTA/1.2.1 -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??


Oct 31, 2018, 03:32 am Last Edit: Oct 31, 2018, 03:56 am by Annabel-L16

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 :-(.


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

Thank you.

Go Up