Skip to content
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

lto-wrapper failed error on Windows IDE #332

Closed
np703 opened this issue Sep 5, 2019 · 1 comment
Closed

lto-wrapper failed error on Windows IDE #332

np703 opened this issue Sep 5, 2019 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted conclusion: invalid Issue/PR not valid conclusion: off topic Off topic for this repository type: imperfection Perceived defect in any part of project

Comments

@np703
Copy link

np703 commented Sep 5, 2019

Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"

In function 'global constructors keyed to 65535_0_Servo_current_test_4.ino.cpp.o':

lto1.exe: internal compiler error: Segmentation fault

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 (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/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@per1234
Copy link
Contributor

per1234 commented Sep 6, 2019

Duplicate of arduino/Arduino#7949

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.

Here's the traditional workaround:

  1. Tools > Board > Boards Manager
  2. Wait for downloads to finish.
  3. When you move the mouse pointer over "Arduino AVR Boards", you will see a "Select version" dropdown menu appear. Select "1.6.21".
  4. Click "Install".
  5. Wait for installation to finish.
  6. Click "Close".

If you have File > Preferences > Check for updates on startup checked, the Arduino IDE may occasionally notify you that a new version of Arduino AVR Boards is available, you'll need to refrain from updating back to the new Arduino AVR Boards version, otherwise you'll be back to seeing the segmentation fault error again.

@per1234 per1234 added conclusion: duplicate Has already been submitted conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project labels Sep 30, 2021
@per1234 per1234 added the conclusion: off topic Off topic for this repository label Mar 31, 2022
@per1234 per1234 closed this as completed Mar 31, 2022
@per1234 per1234 self-assigned this Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted conclusion: invalid Issue/PR not valid conclusion: off topic Off topic for this repository type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants