New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avr-g++": file does not exist #5691

Closed
arun1944 opened this Issue Dec 9, 2016 · 16 comments

Comments

@arun1944

arun1944 commented Dec 9, 2016

I am trying to compile a simple "BLINK" sketch for Arduino UNO board, using Arduino IDE v1.6.13 on my Win 8.1 OS.
But while compiling, the output window shows an error message
C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-g++": file does not exist
Error compiling for board Arduino/Genuino Uno.

How do I resolve this issue, any suggestions please ?
-arun karkare

@dlabun

This comment has been minimized.

dlabun commented Dec 11, 2016

Sounds like your installation is corrupt... You may want to try removing and reinstalling Arduino

@facchinm

This comment has been minimized.

Member

facchinm commented Dec 12, 2016

Before starting the uninstall/reinstall dance, try opening the Board Manager and uninstall the AVR core. If everything goes well the label should become "BUILTIN" and the IDE should start using the builtin core again (with its related tools)

@arun1944

This comment has been minimized.

arun1944 commented Dec 12, 2016

@arun1944

This comment has been minimized.

arun1944 commented Dec 12, 2016

@facchinm

This comment has been minimized.

Member

facchinm commented Dec 13, 2016

@arun1944 did it solve your issue? 😄

@arun1944

This comment has been minimized.

arun1944 commented Dec 13, 2016

@facchinm facchinm closed this Dec 13, 2016

@Nibbels

This comment has been minimized.

Nibbels commented Aug 22, 2017

xec: "C:\Users\USERNAME\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++": file does not exist
Fehler beim Kompilieren für das Board Arduino/Genuino Mega or Mega 2560.

This happens when running a suggested "Board update" while compiling something. Then the update doesnt work and the board is unusable.

I fixed it with Board Manager -> Install "Arduino AVR Boards (1.6.19)" -> Restart Arduino IDE -> Install Arduino AVR Boards 1.6.20+ again. Then it worked. Simply reinstalling the complete Arduino IDE didnt help. I first tried to install 1.8.4 over 1.8.3 and still had the same issue.

Greetings

@facchinm

This comment has been minimized.

Member

facchinm commented Sep 4, 2017

@Nibbels probably on the first round the extraction failed but the folder structure (and relevant files) where in the correct place, so every other installation would pick theme as the correct core. Uninstalling und reinstalling the core from board manager does the trick as you discovered 😉

@binmulyadin

This comment has been minimized.

binmulyadin commented Sep 15, 2017

My problem solved as suggested by Nibbels, thank you

@Steve92169

This comment has been minimized.

Steve92169 commented Jan 20, 2018

I had the same error message on a Mega 2560 R3 using IDE 1.8.5 and AVR Boards 1.6.20. I installed AVR Boards 1.6.19, and that solved the problem. Re-installing 1.6.20 failed, so I went back to 1.6.19. It seems to work fine.

@per1234 per1234 changed the title from avr-g++ file to avr-g++": file does not exist Jan 20, 2018

@davidm-public

This comment has been minimized.

davidm-public commented Feb 23, 2018

@facchinm worked for me!
thanks

@NguyenCongTrinh1995

This comment has been minimized.

NguyenCongTrinh1995 commented Apr 9, 2018

I have reinstalled version 1.8.5 but it does not work

@adumont

This comment has been minimized.

adumont commented Jul 23, 2018

@Steve92169 solution above worked for me.

@Gurubasavaraj003

This comment has been minimized.

Gurubasavaraj003 commented Sep 2, 2018

same problem but this time also facing the same issue any solution plz

@PaulStoffregen

This comment has been minimized.

Collaborator

PaulStoffregen commented Sep 2, 2018

Any chance anti-virus software or windows defender was active and prevented the board install from writing all the necessary files?

@irfanctn

This comment has been minimized.

irfanctn commented Nov 11, 2018

you change arduino's home directory to the root directory, long folder names causes this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment