First, Windows XP is fixed as my IDE execution environment; this can not be changed.
Second, I'm having problems with the Arduino IDE -- it program checks (bad pointer) inside GCC (actually ld from binutils) while building my sketch.
The task is to try and debug the GCC included with the Arduino IDE. As the IDE distribution has removed symbols and debug information, analyzing the windows dump is virtually impossible.
To make further progress, it appears that GCC (binutils and GCC) need to be rebuilt from the same source the IDE people used.
Then the new build has to be overlayed on (inserted into) the IDE libraries.
Finally, set windows debugging to trap the memory access error, start the IDE and compile the sketch, the save a dump when the program exception occurs. At that point, there should be enough debug information to figure out the dump, I hope, I hope.
(If there's an alternative method recommended, perhaps have the IDE starting the GCC debugger to do the compile, please speak up.)
I don't know what the IDE people used as the build system. I've heard linux, and mingw (the old one, not mingw2). Ubuntu is available for re-building, but the host must be Windows XP. The target, of course, is arm.
About a year ago, I tried building GCC with (most?) Arduino patches and got hung up getting a successful C++ build. 'binutils' appeared to build OK, but it was not sufficient to substitute just the binutils modules back into the IDE library. I assume that both binutils and gcc must be built together in order to successfully work together.
1. I need the GCC source (i.e. the version Arduino used) which I can locate and download (once I know what release).
2. I need all the Arduino patches for GCC. I understand they come from two places: Atmel (Microchip) and Arduino. I don't know where to download current patches.
3. I need a build script(s). I've seen several, none of which worked 100% in a cygwin, MinGW, or MinGW-64 environment. Where can I download the one used by Arduino, and what is their build environment?
I can (and have) gotten Xbuntu, cygwin, MinGW, and MinGW-64 running. I've fetched and build packages like GMP. I've written bash scripts, and done windows development. My background is software development for a dozen different machine and software architectures.
This should not be beyond me, but I need to be working with the same beast as the Arduino IDE people have unleashed.
Thanks for any leads you can give me; I've no problem doing leg work.