Go Down

Topic: [Solved, more or less] Problem with 0022 IDE ( 'permission denied') (Read 2 times) previous topic - next topic

bartprins

Jul 03, 2011, 12:56 am Last Edit: Jul 13, 2011, 09:24 am by bartprins Reason: 1
Received my Uno board yesterday, can't get it to work...

The 0022 IDE keeps telling me this error:
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar: core.a: Permission denied

even if I use 'verify' without the Uno attached. The Uno itself seems to function, it was recognized bij USB and I could install te driver without any problem. Attaching the Uno does not change this situation

I use XP/SP3 with Avira. Avira doesn't seem to bother about com-ports and does not warn me for the Arduino (or fwiw any of the other programs this start) being blocked.

Any hints please???

bartprins

I tried to reboot XP in safe modus, then the 'verify' stage is OK, but I can not upload because the comports are not available...

Also it seems that my Java was broken, reinstalled it but to no avail...

Any hints please??

smeezekitty

Hold down shift where clicking the verify button in normal mode. then post the whole output here.
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

bartprins


Hold down shift where clicking the verify button in normal mode. then post the whole output here.


Ok. Tried to verify the 'Blink' sketch:

Code: [Select]

C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Blink.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Blink.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\pins_arduino.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\pins_arduino.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\WInterrupts.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WInterrupts.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_analog.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_analog.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_digital.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_digital.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_pulse.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_pulse.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\wiring_shift.c -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_shift.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\HardwareSerial.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\HardwareSerial.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\main.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\main.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\Print.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Print.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\Tone.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\Tone.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\WMath.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WMath.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=22 -IC:\Program Files\arduino-0022\hardware\arduino\cores\arduino C:\Program Files\arduino-0022\hardware\arduino\cores\arduino\WString.cpp -oC:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WString.cpp.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\pins_arduino.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\WInterrupts.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_analog.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_digital.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\wiring_pulse.c.o
C:\Program Files\arduino-0022\hardware\tools\avr\bin\avr-ar: C:\DOCUME~1\BARTPR~1\LOCALS~1\Temp\build490926452363711457.tmp\core.a: Permission denied

smeezekitty

Click start -> run and enter "C:\DOCUME~1\BARTPR~1\LOCALS~1\" into the box.
Now locate the folder called temp and right click and select properties. Make sure Read Only isn't checked and check the permissions on the "Security" tab if present. Although probably not such a good idea on a normal basis, try right clicking the Arduino icon and select "Run as administrator" or if that is not present, select "Run as" and select "Administrator" at the popup.
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

bartprins


Click start -> run and enter "C:\DOCUME~1\BARTPR~1\LOCALS~1\" into the box.
Now locate the folder called temp and right click and select properties. Make sure Read Only isn't checked and check the permissions on the "Security" tab if present. Although probably not such a good idea on a normal basis, try right clicking the Arduino icon and select "Run as administrator" or if that is not present, select "Run as" and select "Administrator" at the popup.


I've checked the readonly, which is not checked (it indicates there are inherited rights). The logged on user has administrator rights (bad habit, I admit), but I tried to run as administrator anyway. The results are the same with the error described in the opening post.

Tomorrow I will try at work to get things working to check if the problem is in my home computer. (which I suspect as I can build without any problems in safe mode...)

smeezekitty

Try this.
Open a command prompt and navigate to the Arduino installation directory.
Type the following commands:
Code: [Select]

mkdir atemp
set TEMP=.\atemp
set TMP=%TEMP%
@start arduino

This should start the Arduino program with a different temp directory. Retry compiling or uploading.
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

bartprins



Tomorrow I will try at work to get things working to check if the problem is in my home computer. (which I suspect as I can build without any problems in safe mode...)


I just tried it on my work-computer which compiles and uploads OK, so the Uno-board itself seems ok.

Will try with different TMP dir, but still have problems with Java which can not be unstalled or reinstalled (some strange error occurs)  :0

bartprins


Try this.
Open a command prompt and navigate to the Arduino installation directory.
Type the following commands:
Code: [Select]

mkdir atemp
set TEMP=.\atemp
set TMP=%TEMP%
@start arduino

This should start the Arduino program with a different temp directory. Retry compiling or uploading.


=( no  =(

The compiling takes a LOT LONGER to do compared to my work computer... (which is a bit newer I might say).
But the same error occurs.

I will now focus on removing Java to get a clean install of JRE6.26

bartprins

After updating the windows installer and removing any reference to java I succeeded in reinstalling Java without errors.

The arduino.exe still can't build (same error), even after moving the program outside "program files" and even after moving the whole lot inside the %temp% directory...

Getting a bit sad now... Anyone??

madworm

Do you NEED windows? If not, get rid of it. And if it is only for gaming, why not dual boot or add another disk with a more useful OS.

In the bad old days of Win9x I would've suggested "format c:", but I'm not sure that would still 'work' ;-)

Have you tried to wipe your tmp folder completely?

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

joseph_m

I agree use Linux.  The last time windows was my main os was win 95.  I had a dual boot up to about ten years ago.  I completely dumped windows and haven't regretted a thing.  The Linux os is much better but the big thing is when I have some issue like you are having finding out why is easy.  With windows it's like trying to put a complicated machine together blindfolded with boxing gloves on.

I know it's a big step to drop what you are familiar with and use something you know nothing about.  So you can either add a hard drive to your computer and setup a dual boot system or, if your hard drive is big enough, you can repartition the drive to get space back and install Linux on the new space then dual boot.  Feel free to send me a PM and I will help you all I can.  It's well worth the effort.

My wife used to work as a teacher for AOL.  She used my Linux box once and asked me if I could put Linux on her computer.  She used it once and saw how much better it was.  Yes you do have to learn different things.  You are going into a Unix type world.  It is different then windows but not that much different.    There is only one windows but there are many types, called distros, for Linux.  You can start out by taking a look at distrowatch.com .  The  number of distros will make your head swim.  To give you an idea I have 11 computers in my house.  I don't have cable TV but I do have a computer that is attached to my TV.  On that one I run OpenSuse. On that one I get videos from the internet like Pbs, Hulu and YouTube.  As well as downloading a LOT of old movies from the archives.  The laptop I use the most is a Debian Linux machine as is my main desktop.  I use Slackware for the server that runs both the wired and wireless branches of my network.  My daughter does a lot of Music and uses Debian for the Midi and audio programs.  My son is 12 and likes to play games on line and uses OpenSuse.  My wife uses Ubuntu.  Ubuntu was made from debian.  I don't like it.  It has taken away alot of what makes a Unix like system so powerful but it is easy to maintain if you want your system to be controlled by the wishes of someone else.  In the end it's all about freedom. Free as in speech and Free as in beer. 

bartprins


I agree use Linux. 

[...]

Free as in speech and Free as in beer.   


Free beer is never a bad thing. But for this computer I'll stick to windows. I'm trying to find some cheap netbook and will run it with linux.
For now I will try to 'repair' WXP with the installation disk.

joseph_m

The Chinese have an expression of the 8 incurable diseases.  The one that come to mind is when the patient won't take the medicine.

smeezekitty

One terrible hack-a-round would be try to upload using Linux in VirtualBox with the serial port linked.
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

Go Up