[qmk_firmware]"avr-gcc: command not found" has occurred and failed to flash


In Windows 10, when I tried to flash a program to my keyboard through MINGW64, I got an error like this and couldn't flash.

USERNAME@USERPC MINGW64 ~/qmk_firmware
$make lily58:default:avrdude
QMK Firmware 0.8.13
Making Lily58/rev1 with keymap default and target avrdude

make[1]: enters directory '/home/USERNAME/qmk_firmware'
/bin/sh: avr-gcc: command not found
sh: avr-gcc: command not found
sh: avr-gcc: command not found
make[1]: *** [tmk_core/rules.mk:257: gccversion]Error 127
make[1]: exits directory '/home/USERNAME/qmk_firmware'
Make finished with errors
make: *** [Makefile:579: lily58:default:avrdude]Error 1

It seems that avr-gcc is not installed.
It should be installed by running "util/qmk_install.sh".
There should be "avr8-gnu-toolchain" directory in "qmk_utils" directory, which located in the same directory as "qmk_firmware."
But i can't find this directory even though I run the command again.

I carefully reviewed the log, and I found that anti-virus software installed on my PC seems to interfere with the command.
I succeed in installing avr-gcc by run the command after disabling the anti-virus software.

Now I can flash a program.
It's a happy ending!



また、* が付いている欄は必須項目となりますので、必ずご記入をお願いします。


2 + 5 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.