Compilation exits wwith error exec: "cmd": executable file not found in %PATH%

Any ideas?

cmd /C "C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" > "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino_atmega328p_16000000L.lst"
Compilation error: exec: "cmd": executable file not found in %PATH%

You will get this if the location containing the Windows command line interpreter cmd (usually C:\Windows\System32) is not in your system path.

That is an unusual circumstance that would probably result from a non-standard system configuration or security restrictions on the user account you are running the IDE from.

Thank You.
Strange! as I have and had no problems running Arduino V1.8.15.0 and prior before. This is only experienced since the V2.0.0.0 beta version. SOLVED! for now by editing the shortcut, under advanced properties, allowing for running under elevated user rights running in administrator mode.

Now I have another small issue! Probly needs another topic?

Compilation fails due to no "Upload port specified". Under the regular Arduino App ther is a option under "Tools" to specify the port. In this version that option is absent. leading to this error.

Using board '328' from platform in folder: C:\Users\Developers\AppData\Local\arduino15\packages\MiniCore\hardware\avr\2.1.3
Using core 'MCUdude_corefiles' from platform in folder: C:\Users\Developers\AppData\Local\arduino15\packages\MiniCore\hardware\avr\2.1.3
Detecting libraries used...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp" -o "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\Developers\\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\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp" -o "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Developers\AppData\Local\Temp\arduino-core-cache\core_b9263c5116bb36e94e821547bda0a9e0.a
Linking everything together...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -w -flto -g -o "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp.o" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/..\\arduino-core-cache\\core_b9263c5116bb36e94e821547bda0a9e0.a" "-LC:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64" -lm
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.eep"
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.hex"
cmd /C "C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" > "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino_atmega328p_16000000L.lst"
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf"
Sketch uses 176 bytes (0%) of program storage space. Maximum is 32768 bytes.
Global variables use 0 bytes (0%) of dynamic memory, leaving 2048 bytes for local variables. Maximum is 2048 bytes.

--------------------------
Compilation complete.
Upload error: Error: 13 INTERNAL: Failed uploading: no upload port provided

Confirms as a problem as when I use the option "Upload using Programmer" All works as expected.

WhatsApp Image 2021-11-19 at 09.35.32

Using board '328' from platform in folder: C:\Users\Developers\AppData\Local\arduino15\packages\MiniCore\hardware\avr\2.1.3
Using core 'MCUdude_corefiles' from platform in folder: C:\Users\Developers\AppData\Local\arduino15\packages\MiniCore\hardware\avr\2.1.3
Detecting libraries used...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp" -o "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\Developers\\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\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR -Wextra -flto -g "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\cores\\MCUdude_corefiles" "-IC:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\MiniCore\\hardware\\avr\\2.1.3\\variants\\standard" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp" -o "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Developers\AppData\Local\Temp\arduino-core-cache\core_b9263c5116bb36e94e821547bda0a9e0.a
Linking everything together...
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -w -flto -g -o "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64\\sketch\\Blink_Uno.hex.ino.cpp.o" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/..\\arduino-core-cache\\core_b9263c5116bb36e94e821547bda0a9e0.a" "-LC:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64" -lm
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.eep"
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.hex"
cmd /C "C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf" > "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino_atmega328p_16000000L.lst"
"C:\\Users\\Developers\\AppData\\Local\\arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Developers\\AppData\\Local\\Temp\\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.elf"
Sketch uses 176 bytes (0%) of program storage space. Maximum is 32768 bytes.
Global variables use 0 bytes (0%) of dynamic memory, leaving 2048 bytes for local variables. Maximum is 2048 bytes.

--------------------------
Compilation complete.
"C:\Users\Developers\AppData\Local\arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18/bin/avrdude" "-CC:\Users\Developers\AppData\Local\arduino15\packages\MiniCore\hardware\avr\2.1.3/avrdude.conf" -v  -patmega328p -cpickit4_isp -Pusb "-Uflash:w:C:\Users\Developers\AppData\Local\Temp\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.with_bootloader.hex:i"

avrdude: Version 6.3-20201216
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Developers\AppData\Local\arduino15\packages\MiniCore\hardware\avr\2.1.3/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : pickit4_isp
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : JTAG3_ISP
         Description     : MPLAB(R) PICkit 4 in ISP mode
         Vtarget         : 4.9 V
         SCK period      : 8.00 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "C:\Users\Developers\AppData\Local\Temp\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.with_bootloader.hex"
avrdude: writing flash (176 bytes):

Writing | ################################################## | 100% 0.07s

avrdude: 176 bytes of flash written
avrdude: verifying flash memory against C:\Users\Developers\AppData\Local\Temp\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.with_bootloader.hex:
avrdude: load data flash data from input file C:\Users\Developers\AppData\Local\Temp\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.with_bootloader.hex:
avrdude: input file C:\Users\Developers\AppData\Local\Temp\arduino-sketch-048A8C2D1A4872B6A4167EC65472CF64/Blink_Uno.hex.ino.with_bootloader.hex contains 176 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.10s

avrdude: verifying ...
avrdude: 176 bytes of flash verified

avrdude done.  Thank you.


--------------------------
upload using programmer complete.

Hope this help!
Thanks for your great efforts!

4 posts were merged into an existing topic: Compilation fails due to "No upload port specified"