Useful tip for anyone running Windows XP and the latest Arduino 1.6.12 IDE.

Since joining here I've noticed several other people reporting the same problem that I had with Windows XP sp3 and the latest 1.6.12 IDE. It may work for ages and then seemingly at random a tiny edit to your code can result in the following error generated by the loader.

collect2.exe: error: ld returned 5 exit status

I've been dealing with it by having both 1.6.12 and the older 1.0.6 version on my computer, and switching to the 1.0.6 version any time that this annoying error rears its ugly head. This has worked ok, and 90% of my final sketches have worked alright on the latest 1.6.12, but often at intermediate development steps I've had to switch back to 1.0.6 to get it to load, which is a bit of a pain.

Anyway I think I may have a solution. I don't want to declare that this is 100% a cure at this stage, because the error is just so random that I really cant say for sure. But so far every single sketch that previously would fail under 1.6.12 is now compiling and loading perfectly. So it's looking fairly positive.

The tip is simply to set the exe file (arduino.exe) to run in compatibility mode for Windows 2000. That's all there is to it.

Details: Right hand click on the exe file (or on it's shortcut if that's how you're launching it) and select "Properties". From properties select the "Compatibility" tab, and there tick the "Run this program in compatibility mode for:" checkbox, and finally select "Windows 2000" from the drop down menu below that.

So far this has been a 100% cure on my (XP sp3) computer.

another useful tip windows xp end of support...

time to move on :wink:

J-M-L:
time to move on :wink:

Hey I'm just trying to help people out here. Some old timers like me might still want to run it on an old laptop or whatever. The IDE seems to require relatively little computing power, so no reason not to be able to use it with whatever old gear you've got. :slight_smile:

1.6.12 has been 100% reliable for me since setting it for compatibility mode.

stuart0:
Hey I'm just trying to help people out here.

there was a smiley - it was humor. of course as long as it runs keep it, then install Linux on it...

Much appreciated !! Some of us still have XP machines around the house ... in fact, I still have a CP/M machine downstairs with dual 8 inch DSDD floppy drives I may bring up one of these days just for the fun of it again. XP was a decent OS (for windows).

THANK YOU! I've struggled with this for a couple of days. Assumed it had something to do with Windows XP compatibility because of the seemingly random nature of the non-compiles, but didn't know there was a "backwards compatibility" option in the IDE. I had to use Windows 95 vs Windows 2000, but nonetheless, it worked. Thanks again!

J-M-L:
another useful tip windows xp end of support...

time to move on :wink:

They might be ending support, but it still runs on low-end PCs. I just installed a copy yesterday on such a thing. Without XP you basically have to trash the entire PC.

Or install Ubuntu or another flavour of Linux. That's very good for resurrecting old Windows PCs to a quite useful life.

The Arduino developers recently made what they believe is a fix for this issue and are requesting people to run the test build and report their results:

Reference:

Test build:

If you do try it and don't have a GitHub account you can report here and I'll relay it over.

^ What pert said. :slight_smile:

I made this post when I first started using Arduino (1.6.12) on an XP SP3 computer. At the time I didn't realize how many others had the issue and how many different things that they had tried.

I tried lots of different fixes (like the W2k compatibility thing) and often they would make my immediate problem go away, but then the error would return (seemingly at random) with other code.

Since switching to the bug fix version (5863-BUILD-638) linked by pert a few weeks ago I haven't had a single compiler issue. It looks like this problem is definitely solved. :slight_smile:

Thanks for the update stuart0! Was that you who posted your results to the pull request for the fix today?

If not, I'm happy to relay your results over there if you don't have a GitHub account.

pert:
Thanks for the update stuart0! Was that you who posted your results to the pull request for the fix today?
Update bundled tools by facchinm · Pull Request #5863 · arduino/Arduino · GitHub

Hi pert. No that wasn't me who posted at github.

If not, I'm happy to relay your results over there if you don't have a GitHub account.

Yes, definitely feel free to do that. My results have been 100% positive. :slight_smile:

OK, I have reported your results to the developers @stuart0:

please report if you do encounter this issue again using the test build.

Thanks!

New member here. I am experiencing the compile error "collect2exe..etc" and much need to try the "fixed" version referenced in #8 above. The link under "Test build" brings up a page with a second link:

http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5863-BUILD-638-windows-app.appx

clicking this link results in a "Not Found" error.

Does a way still exist to access arduino-PR-5863-BUILD-638? Thanks.

MickH

The fix was merged into the Arduino IDE 1.8.2 release. Just install 1.8.2 and the problem will be solved.

Pert - thanks much for the quick reply. I will certainly try 1.8.2 and hope it will run with Win XP SP3 (other posts on the forum have indicated that recent IDE versions may not run under XP.

Mick H