Show verbose output during compilation

Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"

Sketch uses 926 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM7 -b115200 -D -Uflash:w:C:\Users\IRONGU~1\AppData\Local\Temp\arduino_build_652876/arduino_wheels.ino.hex:i

An error occurred while uploading the sketch

avrdude: Version 6.3-20190619

     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

     Copyright (c) 2007-2014 Joerg Wunsch



     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



     Using Port                    : COM7

     Using Programmer              : arduino

     Overriding Baud Rate          : 115200

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

please help... i did this with both arduino leonardo as well as uno board.

That information is wrong as you have an upload problem and not a compile problem; it should be "This report would have more information with
"Show verbose output during upload"
option enabled in File -> Preferences.

Are your boards correctly recognised in Windows device manager?

yes.. i have installed a driver for recognition of the board.