Arduino: 1.8.6 Hourly Build 2017/10/20 02:33 (Windows 10), Board: 'Arduino/Genuino Uno'
In this tutorial, I’ll first go into a little background about humidity, then I’ll explain how the DHT11 measures humidity. After that, I’ll show you how to connect the DHT11 to an Arduino and give you some example code so you can use the DHT11 in your own projects.
c:usershpdesktoparduino-nightlyhardwaretoolsavrbin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'corecore.a'; reason: Permission denied
exit status 1 Error compiling for board Arduino/Genuino Uno.
This report would have more information with 'Show verbose output during compilation' option enabled in File -> Preferences.
Please help me fix this problem. This is my code:
user31481
dragonwarriordragonwarrior
1 Answer
The problem is just what the error message says it is.
c:usershpdesktoparduino-nightlyhardwaretoolsavrbin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'corecore.a'; reason: Permission denied
When you are compiling your code the compilation process is trying to rename a file called core.a (.a means a library). I'm guessing it is doing this because you have changed the board type and it needs to compile the library for that type of board.
You don't have permission to change this file. This could be because:
- You don't have Windows security permission.
- The file is in use already.
- It's because you have installed it on your desktop.
The easiest to check is 2, reboot you machine and start only one instance of the IDE and try again. If it works, something (don't ask what) was accessing the file.
If it doesn't work you need to change the security permissions of the parent folder and all sub folders and files. You will need to Google how to do that, and you will need to search for core/core.a.
Code GorillaCode Gorilla
Not the answer you're looking for? Browse other questions tagged arduino-unocompilation-errors or ask your own question.
Arduino: 1.8.6 Hourly Build 2017/10/20 02:33 (Windows 10), Board: 'Arduino/Genuino Uno'
c:usershpdesktoparduino-nightlyhardwaretoolsavrbin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'corecore.a'; reason: Permission denied
exit status 1 Error compiling for board Arduino/Genuino Uno.
This report would have more information with 'Show verbose output during compilation' option enabled in File -> Preferences.
Please help me fix this problem. This is my code:
user31481
dragonwarriordragonwarrior
1 Answer
The problem is just what the error message says it is.
c:usershpdesktoparduino-nightlyhardwaretoolsavrbin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'corecore.a'; reason: Permission denied
When you are compiling your code the compilation process is trying to rename a file called core.a (.a means a library). I'm guessing it is doing this because you have changed the board type and it needs to compile the library for that type of board.
You don't have permission to change this file. This could be because:
- You don't have Windows security permission.
- The file is in use already.
- It's because you have installed it on your desktop.
The easiest to check is 2, reboot you machine and start only one instance of the IDE and try again. If it works, something (don't ask what) was accessing the file.
If it doesn't work you need to change the security permissions of the parent folder and all sub folders and files. You will need to Google how to do that, and you will need to search for core/core.a.
Code GorillaCode Gorilla