Error:exit status 1

Compiling fails with this output:

FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\DELL\AppData\Local\arduino\sketches\DA6C312C494EE2BD5F9D88E2D6114185\sketch\new_sketch_1742564074521.ino.cpp -o nul
Generating function prototypes...
C:\Users\DELL\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\DELL\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\DELL\AppData\Local\arduino\sketches\DA6C312C494EE2BD5F9D88E2D6114185\sketch\new_sketch_1742564074521.ino.cpp -o C:\Users\DELL\AppData\Local\Temp\37763837\sketch_merged.cpp
C:\Users\DELL\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\DELL\AppData\Local\Temp\37763837\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\DELL\\AppData\\Local\\arduino\\sketches\\DA6C312C494EE2BD5F9D88E2D6114185\\sketch\\new_sketch_1742564074521.ino.cpp" -o "C:\\Users\\DELL\\AppData\\Local\\arduino\\sketches\\DA6C312C494EE2BD5F9D88E2D6114185\\sketch\\new_sketch_1742564074521.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\DELL\AppData\Local\arduino\cores\arduino_avr_uno_a190a41e58bee30ca427a25c3625f440\core.a
Linking everything together...
"C:\\Users\\DELL\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\DELL\\AppData\\Local\\arduino\\sketches\\DA6C312C494EE2BD5F9D88E2D6114185/new_sketch_1742564074521.ino.elf" "C:\\Users\\DELL\\AppData\\Local\\arduino\\sketches\\DA6C312C494EE2BD5F9D88E2D6114185\\sketch\\new_sketch_1742564074521.ino.cpp.o" "C:\\Users\\DELL\\AppData\\Local\\arduino\\sketches\\DA6C312C494EE2BD5F9D88E2D6114185/..\\..\\cores\\arduino_avr_uno_a190a41e58bee30ca427a25c3625f440\\core.a" "-LC:\\Users\\DELL\\AppData\\Local\\arduino\\sketches\\DA6C312C494EE2BD5F9D88E2D6114185" -lm
c:/users/dell/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1

Compilation error: exit status 1

Please post the error log in code tags.

Did you have verbose enabled? If not, enable it and post the errors in code tags.

Since it's the first time you posted, did you just recently install the IDE? It looks like part of it is missing. If so, just reinstall on top of the existing.

Try to downgrade the AVR board package to e.g. version 1.6.23 using the boards manager. Then test if the problem has disappeared.

Next you can upgrade again to an in between version (e.g. 1.8.1), test and after that back to 1.8.6.

Note that I'm not talking about the IDE version but about the version of the AVR board package.