Looking for GCC >= 4.3 Binaries for Irix/Nekoware
#1
Looking for GCC >= 4.3 Binaries for Irix/Nekoware
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

Octane2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT
(This post was last modified: 12-08-2022, 02:50 PM by matze584.)
matze584
O2

Trade Count: (0)
Posts: 20
Threads: 3
Joined: Sep 2022
Location: Germany
Find Reply
12-08-2022, 12:24 PM
#2
RE: Some GCC Issues/Questions
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?

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,252
Threads: 535
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
12-08-2022, 02:45 PM
#3
RE: Looking for GCC >= 4.3 Binaries for Irix/Nekoware
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. :-)

Octane2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT
matze584
O2

Trade Count: (0)
Posts: 20
Threads: 3
Joined: Sep 2022
Location: Germany
Find Reply
12-08-2022, 08:08 PM
#4
RE: Looking for GCC >= 4.3 Binaries for Irix/Nekoware
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

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,252
Threads: 535
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
12-09-2022, 01:59 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)