wont compile

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

this is the error message i get

This is a dupe of http://forum.arduino.cc/index.php?topic=576604.0.

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

Thank you.

iM SUDDENLY HAVING THIS PROBLEM

lto1: fatal error: bytecode stream in file '/tmp/506222695/build/../../core/core_arduino_avr_uno_0fd389f0184d5a21fcc443ff311da7f1.a' generated with LTO version 4.1 instead of the expected 6.0

compilation terminated.

lto-wrapper: fatal error: /home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status

exit status 1

epbyrne: iM SUDDENLY HAVING THIS PROBLEM

lto1: fatal error: bytecode stream in file '/tmp/506222695/build/../../core/core_arduino_avr_uno_0fd389f0184d5a21fcc443ff311da7f1.a' generated with LTO version 4.1 instead of the expected 6.0

compilation terminated.

lto-wrapper: fatal error: /home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status

exit status 1

I'm having the same issue. Code worked last week, today it won't compile.

Won't compile "Blink" example. Error is below. We are in a classroom setting with multiple MacOS all of which are having issue. My MacOS is 10.14.6

"lto1: fatal error: bytecode stream in file '/tmp/644824624/build/../../core/core_arduino_avr_uno_0fd389f0184d5a21fcc443ff311da7f1.a' generated with LTO version 4.1 instead of the expected 6.0

compilation terminated.

lto-wrapper: fatal error: /home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-gcc returned 1 exit status

compilation terminated.

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: error: lto-wrapper failed

collect2: error: ld returned 1 exit status"

In my previous post I should have indicated I was having the problem with the online editor. Earlier in this thread endorama indicated to follow a different thread, but that thread seems to deal with the original offline editor so I did not find a solution.

Also noting that after my post, I experienced the same thing a in a classroom of chromebooks this afternoon, so not only MacOS.

I'm having the same issue this morning, unfortunately the "workaround" isn't viable for me as my IT dept is very restrictive on any new installs.

According to the team it was fixed.
Thanks for your reports.

Bob.