[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/88230] New: Fatal error trying to compile arduino IR reci
From: |
al11 at lafcat dot com |
Subject: |
[Bug classpath/88230] New: Fatal error trying to compile arduino IR recieve example code |
Date: |
Tue, 27 Nov 2018 21:22:03 +0000 |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88230
Bug ID: 88230
Summary: Fatal error trying to compile arduino IR recieve
example code
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
Assignee: unassigned at gcc dot gnu.org
Reporter: al11 at lafcat dot com
Target Milestone: ---
Error code from Arduino compiler:
Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560,
ATmega2560 (Mega 2560)"
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
(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 Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Source code (from Adafruit):
//Create a receiver object to listen on pin 2
IRrecvPCI myReceiver(2);
//Create a decoder object
IRdecode myDecoder;
void setup() {
Serial.begin(9600);
delay(2000);
//while (!Serial); //delay for Leonardo
myReceiver.enableIRIn(); // Start the receiver
Serial.println(F("Ready to receive IR signals"));
}
void loop() {
//Continue looping until you get a complete signal received
if (myReceiver.getResults()) {
myDecoder.decode(); //Decode it
myDecoder.dumpResults(true); //Now print results. Use false for less
detail
myReceiver.enableIRIn(); //Restart receiver
}
}
- [Bug classpath/88230] New: Fatal error trying to compile arduino IR recieve example code,
al11 at lafcat dot com <=