IRIX Network Forums
Looking for GCC >= 4.3 Binaries for Irix/Nekoware - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: Development/Porting (//forums.irixnet.org/forum-9.html)
+--- Thread: Looking for GCC >= 4.3 Binaries for Irix/Nekoware (/thread-3765.html)



Looking for GCC >= 4.3 Binaries for Irix/Nekoware - matze584 - 12-08-2022

Hi!

I am on some software ports over to Irix, just for fun. My current candidate uses some more modern C++ features and thus won't compile straight out of the box with MIPSPro. I tried GCC 4.7 from Nekoware, but it throws a ton of errors (pthread-headers seem to be not that happy) as soon as any C++ include is used.
GCC 3.x from Nekoware, doesn't like the source bc. of the used C++ extensions also.
Also no success with SGUG GCC9. I am having issues with OpenGL librarys on that version. A binary is generated after a error-free build, but it throws a BusError exception prior to reaching the main() function, no matter what i tried yet. A simple test program works, but no chance with GL. Of course, this needed a "--allow-shlib-undefined" to get rid of "symbol _gl_INTERPRET_END not found". Maybe there are unresolved symbols left and it traps into these.

So my question is:
Does someone of you have a working binary package of GCC 4.3 or newer, compiled against Nekoware / MIPS4?  Just like Neko_gcc47 but working? :-D

Thanks!
 Matthias


RE: Some GCC Issues/Questions - Raion - 12-08-2022

The GCC pthread problem is well known, and it can affect any GCC version. Unfortunately I don't have a version that will work offhand. Generally applications with modern C++ features are difficult to port.

I have previously gotten the least-broken GCC (fewest testsuite fails) (4.9.x) working for IRIX but I don't have a package of it handy.

What application are you trying to port?


RE: Looking for GCC >= 4.3 Binaries for Irix/Nekoware - matze584 - 12-08-2022

Hi Raion!



Yes, i read about the prthread thing here and there. Very interesting. It kicks in every time i include nothing but the most basic C++ header into my test-program. All of them, that i tried, will sooner or later include something that references to <include_fixed/pthread..> down the line and go crazy. Has this package ever worked for someone using C++?

Quote:I have previously gotten the least-broken GCC (fewest testsuite fails) (4.9.x) working for IRIX but I don't have a package of it handy.
Ah, thats a pitty. Would have loved to try that one out :-)

There is a link to prepatched GCC 5 Sources in the Wiki. But the link seems to be broken (points to irix.cc) But would this compile with neko_gcc47? Which way would be least painfull? Or better: what would you suggest trying to get a (mostly) working > 4.3 GCC?



Quote:What application are you trying to port?
I am currently just trying to get a peek into how and what is going to work in terms of the dev-system. Just for fun and education. I started off with some basic trial and error test-cases using SDL and OpenGL to get an idea, get used to Irix and spend some quality time sitting in front of my Indigo2. Now i wanted to start with a somewhat more complex thing and get ArmagetronAdvanced to compile (and run!).  Not because it makes much sense, but it seems like a reasonable sized obstacle to grow on for other more useful things later on. And i'd love to play it on the Indigo ;-) Thats essential for the "keep going", even if its failing over and over again :-) For now it's  just all for the learning by doing. :-)


RE: Looking for GCC >= 4.3 Binaries for Irix/Nekoware - Raion - 12-09-2022

Check here I think:

You need to apply my patches for libgomp and such because thes predates that. Its in a thread I did on GCC for IRIX.

I almost got Mednafen to work 2-3 years back with GCC5