Skip to content

internal compiler error: in lto_output_varpool_node #8661

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

Closed
MrSVCD opened this issue Mar 16, 2019 · 3 comments
Closed

internal compiler error: in lto_output_varpool_node #8661

MrSVCD opened this issue Mar 16, 2019 · 3 comments
Labels
Component: Compilation Related to compilation of Arduino sketches Type: Duplicate Another item already exists for this topic

Comments

@MrSVCD
Copy link

MrSVCD commented Mar 16, 2019

I am trying to compile https://github.com/dhansel/Altair8800 from 10 of march and I get this error with arduino avr core 1.6.23:

lto1: 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: fatal error: /home/ghostwolf/Program/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc returned 1 exit status
compilation terminated.
/home/ghostwolf/Program/arduino-1.8.9/hardware/tools/avr/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 compiling for board Arduino/Genuino Mega or Mega 2560.

@MrSVCD
Copy link
Author

MrSVCD commented Mar 16, 2019

Arduino AVR Boards version 1.6.21 does compile the code without errors.

@MrSVCD
Copy link
Author

MrSVCD commented Mar 16, 2019

I am running x86-64 Ubuntu-mate 18.04. Sorry for not including that from the start.

@per1234 per1234 added Component: Compilation Related to compilation of Arduino sketches Type: Duplicate Another item already exists for this topic labels Mar 16, 2019
@per1234
Copy link
Collaborator

per1234 commented Mar 16, 2019

Closing as duplicate of arduino/ArduinoCore-avr#39

Also related: #7949

The issue is specific to the avr-gcc 5.4.0 used by Arduino in Arduino AVR Boards 1.6.22 and 1.6.23. As you discovered, a reasonable workaround is to use Arduino AVR Boards 1.6.21 until a new release of Arduino AVR Boards comes out that doesn't use the problematic avr-gcc version.

There is also a workaround for your particular error described here:
arduino/ArduinoCore-avr#39 (comment)

@per1234 per1234 closed this as completed Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Compilation Related to compilation of Arduino sketches Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

2 participants