Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: ArchiM on Jan 10, 2012, 11:33 pm

Title: Error compiling. Unable to rename core.a
Post by: ArchiM on Jan 10, 2012, 11:33 pm
Hi everyone.
I just started trying to make my recently buyed first arduino and I got stuck just in the very first step of making it work.

Trying to upload the blink example but with different time lapses for blinking, i get the next error while trying to compile.

"C:\Program Files\Arduino\arduino-1.0\hardware\tools\avr\bin\avr-ar: unable to rename 'core.a'; reason: File exists"

I'm using an Arduino Uno, with Windows Vista. I've installed it as told in the instructions and the thing is it has worked once of the about 50 that i've tried, and it compiled and uploaded.
I tired to reinstall all the folder, and worked well in the first try, but I keep on getting the same message now. :(

Any ideas!?
Thanks

Title: Re: Error compiling. Unable to rename core.a
Post by: ArchiM on Jan 13, 2012, 02:39 am
Really no one has an aswer?! :S
Title: Re: Error compiling. Unable to rename core.a
Post by: Atticus12 on Jul 10, 2012, 01:39 pm
Have the same problem. Tried giving the folder permissions to make changes but nothing works. Please someone help me. 
Title: Re: Error compiling. Unable to rename core.a
Post by: clvrmnky on Jul 10, 2012, 03:04 pm

Hi everyone.
I just started trying to make my recently buyed first arduino and I got stuck just in the very first step of making it work.

Trying to upload the blink example but with different time lapses for blinking, i get the next error while trying to compile.

"C:\Program Files\Arduino\arduino-1.0\hardware\tools\avr\bin\avr-ar: unable to rename 'core.a'; reason: File exists"

I'm using an Arduino Uno, with Windows Vista. I've installed it as told in the instructions and the thing is it has worked once of the about 50 that i've tried, and it compiled and uploaded.
I tired to reinstall all the folder, and worked well in the first try, but I keep on getting the same message now. :(

Any ideas!?
Thanks




You probably have some real-time anti-virus program running. You should disable this, or make sure everything to do with AVR development is ignored by it.
Title: Re: Error compiling. Unable to rename core.a
Post by: smeezekitty on Jul 10, 2012, 05:16 pm
Ignore it. I have had there error several times and for me, it always uploads if I ignore it and wait a few more minutes.
Title: Re: Error compiling. Unable to rename core.a
Post by: Louis Davis on Jul 10, 2012, 06:52 pm
I would suggest moving the Arduino folder outside of "Program Files".

This is the convention that I follow and I have not had any problems:
C:\arduino\arduino-1.0
C:\arduino\arduino-1.0.1
...
Title: Re: Error compiling. Unable to rename core.a
Post by: Staannlley on Jul 31, 2016, 07:09 pm
Hey guys, this stupid problem also happened to me.
Just turn off your antivirus system, and it should be fine.
Title: Re: Error compiling. Unable to rename core.a
Post by: lalitsharmaku on Aug 14, 2016, 12:48 pm
Thanks for all those who mentioned to disable antivirus, it works.
Title: Re: Error compiling. Unable to rename core.a
Post by: dorciley on Apr 07, 2017, 04:13 am
ola estou com esse problema ja desativei anti vírus mas o erro continua o mesmo eu uso windows 8.1 64bits
Title: Re: Error compiling. Unable to rename core.a
Post by: jonasfs on May 15, 2017, 08:06 pm
Estava com esse mesmo erro.

Encontrei a solução em um fórum que dizia:

"(...) tem que apagar essas pastas aqui:


No Mac OS X:
/Users/(username)/Library/Arduino15

No Windows:
C:\Users\(username)\AppData\Roaming\Arduino15
C:\Users\(username)\AppData\Local\Arduino15

No Linux:
/home/(username)/.arduino15    (a.k.a. ~/.arduino15) "

Seque o link do fórum: https://www.robocore.net/modules.php?name=Forums&file=viewtopic&t=5232 (https://www.robocore.net/modules.php?name=Forums&file=viewtopic&t=5232)
Title: Re: Error compiling. Unable to rename core.a
Post by: benhamouda on Jun 27, 2017, 12:49 am
Hello,

I had the same problem, just run Arduino as an administrator (on Windows).

Good luck.
Title: Re: Error compiling. Unable to rename core.a
Post by: Arnough on Jan 12, 2018, 12:18 pm

Moving the folder as stated worked for me. Thanks so much.

I would suggest moving the Arduino folder outside of "Program Files".

This is the convention that I follow and I have not had any problems:
C:\arduino\arduino-1.0
C:\arduino\arduino-1.0.1
...
Title: Re: Error compiling. Unable to rename core.a
Post by: Xukyo on Jan 12, 2018, 03:19 pm
I had the same issue installing the IDE on a new PC.

I had to change Tools -> Programmer to "Arduino as ISP"
Title: Re: Error compiling. Unable to rename core.a
Post by: Arnough on Jan 13, 2018, 03:05 pm
This solution works only temporarily.
Same error appeared the next day. Moving again to another path made error disappear.

I would suggest moving the Arduino folder outside of "Program Files".

This is the convention that I follow and I have not had any problems:
C:\arduino\arduino-1.0
C:\arduino\arduino-1.0.1
...
Title: Re: Error compiling. Unable to rename core.a
Post by: barsznica on Nov 22, 2018, 03:54 am
Similar problem and SOLUTION here (https://forum.arduino.cc/index.php?topic=513525.msg3941158#msg3941158).