Page 1 of 1

lto-wrapper failed

Posted: Fri Sep 13, 2019 12:22 pm
by sbow
New Freematics-ONE and trying to upload datalogger sketch and I get "lto-wrapper failed" all of my other sketch with other Arduino boards are working fine. Please help :)
////////////////////////////////////////////////////////////////////////////////////////////////////////
lto1.exe: internal compiler error: in lto_output_varpool_node, at lto-cgraph.c:624

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> 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

Re: lto-wrapper failed

Posted: Sun Sep 15, 2019 10:16 pm
by stanley
Use an older version of Arduino IDE (with older avr-gcc) or use Freematics Builder.

Re: lto-wrapper failed

Posted: Tue Sep 17, 2019 10:40 am
by sbow
Updating Arduino IDE App to 1.8.10 Fixed this problem. Thx.

Re: lto-wrapper failed

Posted: Sun Sep 22, 2019 10:41 pm
by stanley
This issue has been fixed. Please update Freematics ONE library and your code should compile with latest Arduino IDE.