Error compiling on Windows 10

I can use my 101 just fine on my desktop that uses windows 7. Using my laptop with Windows 10, however, produces the error:

Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino 101"

C:\Users\dmike\AppData\Local\Arduino15\packages\Intel\tools\arc-elf32\1.6.9+1.0.1/bin/arc-elf32-ar: unable to rename 'core\core.a'; reason: Permission denied

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

I can use the Windows 10 machine with the SparkFun Redboard (Uno), but I can't seem to get it to cooperate with the 101. Any help here would be hot.

Edit: I have to remove the 101 board from the IDE in order to be able to upload a sketch to the UNO. If the 101 board is installed, I get the same message as above when using the UNO.

Have you tried running the IDE as ADMINISTRATOR ?
This is different from a normal user with admin rights and is a level above that.

I believe that I am running as the Admin. I mean, I'm the one that set the machine up, so my profile is the Admin profile.

There is usually another level of Administrator.

The user that sets up the computer does have admin rights but not ALL OF THEM.
There is an ADMINISTRATOR level ABOVE that.

Google "Run as administrator"

Also what type of USB ports as USB 3.0 can cause issues with some Arduinos.
My 101 hates the USB 3.0 I have but works just fine if I use USB 2.0 or a powered SUB 2,0 plugged into a USB 3.0 port.

Ok, I tried running the program as an administrator and I still get the same error message. The USB ports appear to be 3.0. I'm not sure what you mean by a POWERED USB 2.0 plugged into a 3.0 port.

If you have a POWERED USB HUB that is USB 2.0 specification you can try plug that into your USB 3.0 port and plug the 101 into that.

It isn't 100% guaranteed to work but it works here with the RENESAS USB 3.0 chip-set.

USB 3.0 is "supposed" to be backward compatible with USB 2.0 etc.
But as seen in these forums and elsewhere that often depends on how it was implemented, chip-set, and age of the hardware it is installed / embedded on.

Its an issue that seems to affect Arduinos more than other things and I would hope Arduino picks up the ball and runs with it as it would save a lot of forum posts especially with windows 10 !

You mean something like this?

I'll have to see if someone has one I can borrow just to try it. It might be worth buying if I knew it would work.

Thanks for your help. I'll have to stick to the desktop at home for now with the 101 :-/.

Yes anything like that.
Although that one has a very nice sized PSU most are less amps than that and not always up to the job.

Ok, I tried using the powered USB 2.0 hub, and still no luck. It's an Ativa 4 port from Office Max (item 458-223). I enabled verbose during compiling to see if I can get more info. I got this:

(see attached)

I tried to chase down the file location. The arc-elf32-ar is there and it has all the permissions checked with nothing denied. The core folder is there (in the temp folder), but there is no /core.a file.

I tried running different cores for the board (1.0.5, 1.0.6) thinking maybe that would change something, but still no.

The part that confuses me is that I get the same error on the UNO board if I have the 101 core installed. I'm not even using that core, and it's stopping me from compiling on the Uno. I can remove the core and restart the PC, and I don't have any problems with the Uno -- only the 101.

Edit: The Hub that I got has a dual power mode -- Bus-powered or Self-powered. I used it while plugged in. I'm not sure if it makes a difference. Maybe I need one that's self powered only?

Error.txt (10.7 KB)

The answer is in the last line "'C:\Users\dmike\AppData\Local\Temp\arduino_build_143328\core\core.a'; reason: Permission denied"

Its a "permission" issue and does tend to lend itself to certain circumstances.

It is possible that the IDE install was corrupted at some point.
Or that you still ran without FULL admin privileges.

if it were me I might be tempted to do a CLEAN install as ADMINISTRATOR.

You could try to delete the Arduino15 folder and do a re-start and see if that helps first before going down the clean install route.

They are at one or both the following locations.
C:\Users\yopurname\AppData\Local\Arduino15
C:\Users\yopurname\AppData\Roamingl\Arduino15

If that doesn't help then the clean install would be my next choice.

The method I use is post #4 HERE

But after you download 1.6.12 (don't use your current copy) and BEFORE you actually install.
Go to the folder you used to download and Right click on the IDE and use the "RUN AS ADMINISTRATOR" option.
If you don't have that option google how to place it in the menu.

You can also set up the properties for the IDE shortcuts after install to also "run as administrator".

Another thing to watch out for is Antivirus and similar software as some will intercept the program compile and throw up errors.
Best way to check is once everything is installed then turn off the antivirus / anti malware software and try compile a simple blink sketch. If it compiles then try upload it to the board.

Still no. I tried deleting the Arduino15 folder and did a re-start, to no avail. so, I did this:

Remove the 101 core from the IDE,
Deleted the folder C:\Users\dmike\AppData\Local\Arduino15 (there was no folder under roaming)
Uninstalled Arduino 1.6.12
Installed CClean free version
Ran CClean twice
Installed Wise cleaner
Ran Wise three times
Restarted machine
Right clicked on IDE in downloads folder
Chose Run as Administrator
Gave permission to make changes on the hard drive
Opened IDE and installed 101 core
Clicked verify with empty sketch

Even with an empty sketch, I'm getting the compiler error. Still the same thing: cannot change core/core.a reason: permission denied.

I don't know about you, but this is starting to bug me. This laptop is only a month or so old. I just want to be able to take my laptop to school and work on a project with the 101. The school computers don't have the drivers installed, and I don't have the authority to install them. I can do all of the required projects on the Uno, but the 101 is sooo much more cool!

Ok, I got it (I think). I turned the windows firewall off, and that didn't help. So, I turned off Avast's "File System Shield" and I was able to compile a blank sketch!

This has got to be the key since I couldn't even do that before. Now I just have to figure out how to adjust the settings to make it do what I want without turning the feature off (or, I could maybe just leave it off).

I had issues with Avast too so what I did was add the Arduino folders to the EXCLUSIONS list.
Any of the folders I mentioned above and also the installation directory.
Open Avast, Click Scan, click Scan Settings, Click the Exclusions option, Click Add and point it to the correct directories. Only use this option for Arduino or 100% known safe items as misuse can leave a system at risk.

That's why i mentioned AV being a possible cause.

Good to hear you are now moving ahead.

Cool, Thanks! I do find it odd that my desktop runs it just fine with Avast but the laptop has issues. Either way, I know the work around now. Thanks for working through this with me.