Error of compilation for Arduino UNO

Hi there!

I know this subject has been treated many times, but every time I looked into others problem, their situation were different from mine.

My code :

/***********************************************************************
This sketch compiles and uploads Grbl to your 328p-based Arduino! 

To use:
- First make sure you have imported Grbl source code into your Arduino
  IDE. There are details on our Github website on how to do this.

- Select your Arduino Board and Serial Port in the Tools drop-down menu.
  NOTE: Grbl only officially supports 328p-based Arduinos, like the Uno.
  Using other boards will likely not work!

- Then just click 'Upload'. That's it!

For advanced users:
  If you'd like to see what else Grbl can do, there are some additional
  options for customization and features you can enable or disable. 
  Navigate your file system to where the Arduino IDE has stored the Grbl 
  source code files, open the 'config.h' file in your favorite text 
  editor. Inside are dozens of feature descriptions and #defines. Simply
  comment or uncomment the #defines or alter their assigned values, save
  your changes, and then click 'Upload' here. 

Copyright (c) 2015 Sungeun K. Jeon
Released under the MIT-license. See license.txt for details.
***********************************************************************/

#include <grbl.h>

// Do not alter this file!

As you can see, it is the grbl library I downloaded from here.

Error I obtain every time I try to download in arduino UNO :

Arduino : 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Carte : "Arduino/Genuino Uno"

C:\Users\arnau\OneDrive\Documents\Arduino\libraries\grbl\report.c: In function 'report_util_float_setting':

C:\Users\arnau\OneDrive\Documents\Arduino\libraries\grbl\report.c:103:1: 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\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

exit status 1
Erreur de compilation pour la carte Arduino/Genuino Uno

Ce rapport pourrait être plus détaillé ave c
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.

.
I tried to change port, nothing, I tried to uninstall and reinstall arduino, nothing, I tried to reboot windows (I don’t even know what I did that tho), nothing.

Please help me :sob: :sob:

Downgrade boards manager to version 1.6.21; this is a known bug in the latest boards managers.

Menu tools -> board -> boards manager.

PS The Windows store version has its own problems at occasion; if you encounter further problems, I suggest that you switch to the windows installer version.