Arduino stops compiling halfway through??!!

Hey guys, I've been using arduino for at least a year now and just recently the programming environment has stopped compiling anything.

If I click 'compile', the progress bar stops about halfway across. I have left it in this state for more than an hour with no changes.

I do not get any error codes-just a stuck progress bar!

I am using windows 7. Changing the sketch does not affect the problem.

***EDIT: just noticed that after 2 hours of waiting for it to compile, the progress bar reads 'done compiling' and the black 'status' bar below it reads:

"C:\Users\Max\Documents\Personal\Ickle creations\RC\Controllers\Crius stuff\arduino-1.0.4\hardware\tools\avr\bin\avr-ar: unable to rename 'core.a'; reason: File exists"

Any ideas?

Help is much appreciated.

Can you compile a simple sketch, like Blink for example?

Just trying to help isolate the problem to the IDE environment or your particular sketch.

Yes!

But it took flippin' forever to compile-a good 15 minutes!

No issues with the sketch or errors flagged in the bottom black bar.

For most of the compilation, it seems to get stuck as shown in the pic below.

I had a similar problem which turned out to be a bad hard drive. I wasn't having any disk errors, but it seemed some bad sectors were very slow to read/write.

This is exactly the problem I'm getting. I am only trying to compile the very simplest sketch. i.e to blink an led. Somebody must know why this has just started to happen!!! I posted a message yesterday and am waiting...........

What kind of CPU and how much RAM do you have?

Someone else was having issues with Windows security settings causing slow downs.

Given various other problems Ive been having with my PC (slowdowns, very high fan speed which isn't dust-clogged etc) I think its most likely a bad hard drive. Ive re-installed Java though...no joy :frowning:

A bad hard disk wouldn't cause high fan speed. Perhaps your CPU cooler isn't seated well and it is overheating.

Can you check your temperatures?

i have the exact same problem and i have been searching the internment for hours and tried every thing can some one plz help me?

If you have enough RAM on your computer, create a ramdrive (using imdisk, freeware w/ source), set the RAM drive as your temp drive, and what all your compiles finish in less than 10 seconds.

Since I have RAM to spare on my development machine, and I reserved 2Gb for a imdisk RAMdrive, which gets created at boot by a script (.bat), that also sets the TEMP path variable and a few other settings. This approach drastically reduces disk writes, which improves overal performance and extends the HDD's lifespan.

Thanks ill try it when i get the time, but i did get it to uploed a basic skatch but it took more then 15 min