lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
Invalid library found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm: no headers files (.h) found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm
Invalid library found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm-master: no headers files (.h) found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm-master
Invalid library found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm: no headers files (.h) found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm
Invalid library found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm-master: no headers files (.h) found in C:\Users\shaky\Documents\Arduino\libraries\SunRiseAlarm-master
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
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. It has been reported here:
Here's the traditional workaround:
Tools > Board > Boards Manager
Wait for downloads to finish.
When you move the mouse pointer over "Arduino AVR Boards", you will see a "Select version" dropdown menu appear. Select "1.6.21".
Click "Install".
Wait for installation to finish.
Click "Close".
Due to a bug, this workaround doesn't work with Arduino IDE 1.8.6, but it will work with any other version of the Arduino IDE.
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.
Alternate workaround:
One of the Arduino developers recently worked on this and claims to have fixed it. There is a special beta testing hardware package you can install via the Arduino IDE's Boards Manager that has the fix:
(In the Arduino IDE) File > Preferences
In the "Additional Boards Manager URLs" field, enter: http://downloads.arduino.cc/packages/package_avr_7.3.0_index.json If you already have an additional Boards Manager URL in that field, you can separate multiple URLs with commas or click the button on the right side of the field to open a dialog that allows you to add each on its own line.
Please post your full sketch. If possible, you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.
Please always do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read.
When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.
i apologize for that, this is the problem im talking about after i did what he said to fix it when i look at the serial monitor at first it send me the right time and day but after few send this appeared ⸮Ҳ⸮⸮⸮⸮⸮=⸮⸮⸮B⸮1⸮⸮⸮⸮⸮⸮⸮⸮⸮F⸮⸮⸮⸮⸮⸮⸮⸮1⸮⸮⸮⸮-⸮⸮(⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮-⸮
after i installed the 1.6.21 board version and fix my first problem when i press the serial monitor at first it send me the right time and day but after a few seconds this start pop up ⸮Ҳ⸮⸮⸮⸮⸮=⸮⸮⸮B⸮1⸮⸮⸮⸮⸮⸮⸮⸮⸮F⸮⸮⸮⸮⸮⸮⸮⸮1⸮⸮⸮⸮-⸮⸮(⸮⸮⸮⸮⸮⸮⸮⸮⸮⸮-⸮ is this normal or what should i do to fix this?
i Dont own this code this is the code from rinkydinky code for DS3231 i followed the instructions and it keeps doing that.
#include <DS3231.h>
// Init the DS3231 using the hardware interface
DS3231 rtc(SDA, SCL);
void setup()
{
// Setup Serial connection
Serial.begin(115200);
// Uncomment the next line if you are using an Arduino Leonardo
//while (!Serial) {}
// Initialize the rtc object
rtc.begin();
// The following lines can be uncommented to set the date and time //rtc.setDOW(WEDNESDAY); // Set Day-of-Week to SUNDAY //rtc.setTime(00, 24, 0); // Set the time to 12:00:00 (24hr format) //rtc.setDate(16, 1, 2019); // Set the date to January 1st, 2014
}
This line of the code configures serial communication at 115200 baud:
JohnCarlo123:
Serial.begin(115200);
The Serial Monitor must be set to communicate at the same speed, but I see from your screenshot that it's set to 9600. From the baud rate menu at the bottom right corner of Serial Monitor, select "115200".
As to how the first several lines were OK at the mismatched speed, I have no clue.