dexter1 wrote:
To get back on track. I've toyed with the idea for making a list of compile errors and how to deal with them. From the recent xcircuit discussion, i've realized that many problems in porting software comes from not reading or not interpreting the compilers error messages correctly. Getting a handle on compiler errors is vital in porting code that is correct and does what it is supposed to do.
I think that would be an excellent idea! It's not just the compiling, but also the setting up of the environment as well which could use a coherent tutorial. My recent forays into compilation with OpenTTD meant a lot of searching the forums for scraps of info, asking questions and relying on helpful people pointing things out before I could even start compiling the code.
There's plenty of info on setting up a good MIPSPro environment, but not much for the GCC equivalent. Plus of course differences with setting things up depending on whether you're using bash or tcsh. Then there were other bits of info I had to ask about, such as the 20k IRIX limit on command arguments which can be overridden with "systune -r ncargs 262144". Easy if you know how, but when .\configure is just bombing with an error message, it took time to figure out (with help from here). Also, simple methods of forcing gmake to be used instead of IRIX make.
I know the info is out there, but it's very fragmented. Hence, getting the info together can be a bit daunting, and it's easy for some people new to IRIX compiling to run into a few hurdles and just give up.
Add this with a nice list of compilation error fixes, and maybe a proper guide to debugging, and this might help a lot more people out there to start porting additional programs and utils to IRIX.