GCC 6 for Nekoware
#1
GCC 6 for Nekoware
Why?

GCC on IRIX has been a bit "broken". Not broken in the sense of "It doesn't work" but "it's kinda cobbled together". This is the first of hopefully more successful attempts to combine and fix IRIX's GCCs for future use by users. 

GCC 6 is a goldilocks GCC. It's substantially newer than older GCC iterations, so it brings benefits (C++14 support) but it is not too far away that testsuites can get next to useless and it builds cleanly. 

What's different from SGUG's GCC 9.2?

This GCC has been patched for:

Multilib (32/64-bit support)

Fortran (I know, who the hell cares, but I tried!

Bootstrapping (Cross compiling GCC, AFAICT, precludes this. It can make the resultant GCC more broken). 

Built prereqs in tree (This is less error prone. It may make a better GCC, it may not, but it's better IMHO)

This GCC has less testsuite failures, which might indicate better code generation. GCC 9.2.x when I built and ran, had inordinate test failures. These are less painful. 

Where's the code?
Patch: http://contrib.irixnet.org/raion/gcc-pat...irix.patch

My helper script for downloading (Uses optxeno and schily tools star)http://contrib.irixnet.org/raion/gcc-pat...prereqs.sh

Pre-patched codehttp://contrib.irixnet.org/raion/gcc-pre...rix.tar.gz

Nekoware package to come soon™: http://contrib.irixnet.org/raion/tardist...c6.tardist

What patches have all been merged?

I used Onre's/Daniel Ham's patches as a base, used larbob's bootstrap patch from 4.7.3 (I think he got it from a mailing list, but credit where due!), the Andrej patch for libgomp, and a bunch of hacks by me and Aurxenon. Onre's fixincludes proved critical to fix broken IRIX headers.

What did you use to build it?

I uh, used a version of GCC 4.7.4. I compiled using neko_gcc while wasted and somehow forced neko_gcc to accept broken include files. Don't know how, didn't document it and I apparently turned the Tezro off. I used the GCC 6.5.0 from that to build a bootstrap, then used that to build this GCC. It got comparable marks, so I skipped bootstrap (last compilation to finalize binutils and other deps)

No matter, just use my GCC here as a download.

Did you document the build?

Relnotes are here: http://contrib.irixnet.org/raion/relnotes/neko_gcc6.txt

It has everything you would expect including all information on how I built them. 

What's the next step?

Please test and use the compiler. Let me know how it runs. I will be adding the nekoware package to /beta once built.

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.
(This post was last modified: 01-06-2025, 09:20 PM by Raion. Edit Reason: raw tarball deprecated )
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,252
Threads: 535
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
12-24-2024, 03:16 PM
#2
RE: GCC 6 for Nekoware
After having a GCC expert review the test suite failures the majority of the compiler related failures are minor. She informed me that the only concern might be related to floating point related code so if someone wants to poke around with that I wouldn't be insulted.

The only concern that we have is that name mangling might be a bit screwy if the test suite results for libstdc++v3 are an indication. I'm not 100% but I will figure that out and at some point I will go through and disable the tests that are obviously not related to SGI mips.

All in all I'm pretty pleased with what has come out of this.

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-24-2024, 04:37 PM
#3
RE: GCC 6 for Nekoware
The main areas that I would like people to help test are:

64-bit. I built the compiler with 64-bit support so running 64-bit code should be doable.

C++. I'm not overly concerned about the ability of it to build C++ because it was able to build itself twice already but you never know.

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-24-2024, 08:58 PM
#4
RE: GCC 6 for Nekoware
A fellow of mine tried to build Chromium on it. Now with GCC6 available, he could retry.

SGI - the legend will never die!!

Indy Indigo Crimson Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT O2 O2 Octane Octane2 Octane2 Tezro
Geoman
Crimson to Tezro

Trade Count: (0)
Posts: 162
Threads: 13
Joined: May 2018
Location: Germany
Find Reply
12-28-2024, 11:52 AM
#5
RE: GCC 6 for Nekoware
Actually, Fortran is a huge part of the code we write at my place of employ. Our code has to follow government mandated life-critical safety rules.

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,254
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
12-28-2024, 12:48 PM
#6
RE: GCC 6 for Nekoware
(12-28-2024, 11:52 AM)Geoman Wrote:  A fellow of mine tried to build Chromium on it. Now with GCC6 available, he could retry.

That's a very lofty goal but I hope that it helps in some small way with some project

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-28-2024, 02:59 PM
#7
RE: GCC 6 for Nekoware
Tardist uploaded. Give it a shot for me please

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
01-06-2025, 12:22 AM
#8
RE: GCC 6 for Nekoware
So, I would like to help, but there is more to setting up a compile tool chain than just installing the above right?

Is there any doco on how to set that up correctly with the appropriate headers and Environment variables to actually successfully compile something that you could point me to?

Thx
xc68000
O2

Trade Count: (0)
Posts: 18
Threads: 8
Joined: Dec 2023
Location: Denver CO
Find Reply
02-27-2025, 05:58 PM
#9
RE: GCC 6 for Nekoware
https://forums.irixnet.org/thread-4494.html

I got a bunch of WIP docs here.

Your install needs the development foundations 1.3 and development libraries installed as well as the mipspro compiler.

If you want to build something with GCC, you should be aware of the caveats involved. It's not a bad compiler but it has some things that need to be observed.

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
02-27-2025, 06:13 PM
#10
RE: GCC 6 for Nekoware
Thanks,

I have the Mipspro 7.4 cd but I though it was only C and C++ required a flexlm.

Do you know what C++ standard mipspro supports? I was taking to the lead of the bzflag project (my fav sgi game of all time) and he was telling me that the 2.4 release uses some C++ v11 features.

EDIT: I think mipspro support C++ 98 standard and GCC6 supports up to v14
(This post was last modified: 02-27-2025, 07:55 PM by xc68000.)
xc68000
O2

Trade Count: (0)
Posts: 18
Threads: 8
Joined: Dec 2023
Location: Denver CO
Find Reply
02-27-2025, 07:45 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)