problem with uploading or verifing

I've got a problem with my IDE ,whenever I try to verify my sketch or upload it gives me this error
Error compiling for board Arduino/Genuino Uno.

even if I've checked the port and the board from tools list .

I'm using arduino IDE 1.8.3

Please include the full text of the error, not just the last line. You can click the button to copy the full output in order to easily paste it into here.

MohamedAlsayad:
I've got a problem with my IDE ,whenever I try to verify my sketch or upload it gives me this error
Error compiling for board Arduino/Genuino Uno.

even if I've checked the port and the board from tools list .

I'm using arduino IDE 1.8.3

Have you tried to select the right board, processor, and port through the arduino software?
can be accessed by tools at the toolbar

dindibo4:
Have you tried to select the right board, processor, and port through the arduino software?
can be accessed by tools at the toolbar

yes I've checked it . I even tried to use another board like nodeMCU and the same problem occurs

DrAzzy:
Please include the full text of the error

Here it is

Arduino: 1.8.3 (Windows 8.1), Board: "Arduino/Genuino Uno"

c:/users/fo2sh/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to `main'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

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