Compiling Error (Weird)

Compiling debug version of 'Project' for 'Arduino/Genuino Uno'
Build Folder: file:///C:/Users/guilherme/AppData/Local/Temp/VMBuilds/Project/uno/Debug

Error running c:\users\guilherme\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: CreateProcess

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

I don´t know why this is happening, yesterday it was all working just fine, but today after installing a new library (New Ping), it persists in showing this compiling error. So i tried to uninstall the library, but the error don´t give up.

if someone could guess what is happening or show me some solution, i'd be really grateful... :slight_smile:

I'd try uninstalling the NewPing library.

I'd volunteer what OS I was using, and what version of the IDE.

YMMV.

I'm using the W10 OS and the ide from microsoft the Visual Studio... and the version of Arduino is 1.8

That is not a compile problem, it is something wrong with the IDE installation. It is unable to run ar.exe, which is used to combine multipled compilation units into an object library. Your best bet is to un-install, then re-install the IDE. If it still doesn't work, then try compiling USING the IDE, rather than VisualStudio. It could be a bug in whatever you're using to launch Arduino compiles from VS.

Regards,
Ray L.

Thanks for the advising man, but the Arduino IDE is giving me the same problem, i don´t know what i can do anymore, i have this project to deliver by the end of May, and now this is happening, i'm really discouraged right now... :confused:

Hi! Could you solved this problem? I'm passing through the same, and I'm also using the Arduino IDE (v1.8.3) Getting this error message:

"C:\Users\rodri\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-gcc-ar" rcs "C:\Users\rodri\AppData\Local\Temp\arduino_build_482540\core\core.a" "C:\Users\rodri\AppData\Local\Temp\arduino_build_482540\core\wiring_pulse.S.o"
Error running c:\users\rodri\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\bin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: CreateProcess

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

I had the same issue. I solved it by going to Tools -> Board -> Board Manager

search for Arduino Uno and install an older version driver

1 Like