When compiling with Spence Konde's ATtiny85 (version 1.2.2) (Arduino IDE 1.8.2) I get this error:
exec: "cmd": executable file not found in %PATH%
Windows 7 64bit.
Same program on different computer with exactly same setup for Arduino, versions, etc. compiles ok.
I had done some Arduino as ISP testing, had upgraded Spence Konde to 1.2.3, detected this error, went back to 1.2.2 but still same issue. This morning all still compiled and worked ok, "all of a sudden" now not anymore?
All compiles well until the very last line:
Linking everything together...
"C:\Users\Mysafety\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-gcc" -Os -Wl,--gc-sections -mmcu=attiny85 -o "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.elf" "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574\sketch\ATtiny_Analog_Write.ino.cpp.o" "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/core\core.a" "-LC:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574" -lm
"C:\Users\Mysafety\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.elf" "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.eep"
"C:\Users\Mysafety\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.elf" "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.hex"
cmd /C "C:\Users\Mysafety\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.elf" > "C:\Users\Mysafety\AppData\Local\Temp\arduino_build_21574/ATtiny_Analog_Write.ino.lst"
exec: "cmd": executable file not found in %PATH%
Fout bij het compileren van board ATtiny25/45/85
Compiling with Digistump board is ok, compiling for damellis attiny core (ATtiny microcontrollers ATtiny25/45/85) also compiles ok.
When I change in the platform.txt file for c:/Users/Mysafety/AppData/Local/Arduino15/packages/ATTinyCore/hardware/avr/1.2.2/platform.txt
the following text:
## Save disassembler listing
recipe.hooks.objcopy.postobjcopy.1.pattern.windows=cmd /C "{compiler.path}{compiler.objdump.cmd}" {compiler.objdump.flags} "{build.path}/{build.project_name}.elf" > "{build.path}/{build.project_name}.lst"
recipe.hooks.objcopy.postobjcopy.1.pattern.linux=chmod +x "{runtime.platform.path}/create_disassembler_listing.sh"
recipe.hooks.objcopy.postobjcopy.1.pattern.macosx=chmod +x "{runtime.platform.path}/create_disassembler_listing.sh"
recipe.hooks.objcopy.postobjcopy.2.pattern.linux="{runtime.platform.path}/create_disassembler_listing.sh" "{compiler.path}{compiler.objdump.cmd}" "{compiler.objdump.flags}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.lst"
recipe.hooks.objcopy.postobjcopy.2.pattern.macosx="{runtime.platform.path}/create_disassembler_listing.sh" "{compiler.path}{compiler.objdump.cmd}" "{compiler.objdump.flags}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.lst"
to:
## Save disassembler listing
##recipe.hooks.objcopy.postobjcopy.1.pattern.windows=cmd /C "{compiler.path}{compiler.objdump.cmd}" {compiler.objdump.flags} "{build.path}/{build.project_name}.elf" > "{build.path}/{build.project_name}.lst"
recipe.hooks.objcopy.postobjcopy.1.pattern.linux=chmod +x "{runtime.platform.path}/create_disassembler_listing.sh"
recipe.hooks.objcopy.postobjcopy.1.pattern.macosx=chmod +x "{runtime.platform.path}/create_disassembler_listing.sh"
recipe.hooks.objcopy.postobjcopy.2.pattern.linux="{runtime.platform.path}/create_disassembler_listing.sh" "{compiler.path}{compiler.objdump.cmd}" "{compiler.objdump.flags}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.lst"
recipe.hooks.objcopy.postobjcopy.2.pattern.macosx="{runtime.platform.path}/create_disassembler_listing.sh" "{compiler.path}{compiler.objdump.cmd}" "{compiler.objdump.flags}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.lst"
..then this problem disappears.
However,
-
what are the consequences?
-
why would this issue appear on this pc, and not on the exactly same other pc (probably trivial question)?
-
is there any way to resolve the core of this problem?