GCC On IRIX -- a lot of stuff I'm learning about this
#1
GCC On IRIX -- a lot of stuff I'm learning about this
Ok, so the GCC guides and build systems out there that allow GCC building, all in all are filled with well-intentioned but often outright contrary to proper GCC guidelines for building a working compiler without a lot of pain. Part of this is why I'm doing something about this. 

Let's start:

1. Many patches directly edit fixincl.x, for the fixincludes part of GCC. This is not supposed to be done. I know /why/ many people do this, mind you, but it makes it hard to port patches between GCC versions. This requires autogen and guile to be installed, and thus is a bit more of a pain in the ass, but I will not, for any future source tree patches I publish. Otoh, for prepatched code that's ready to go, and has sufficient instructions, this is probably not an issue. Thankfully, many of the patch authors have also applied them to the include definitions that are called to build fixincl.x, so that's helpful at the very least if you need to regenerate that. 

2. I've been building the libs and such out of tree, but everything I've read from GCC literature, as well as the advice of a good friend whose developed for GCC in the past, has indicated to me this is not the right way to do it. You should use contrib/download_prerequisites whenever possible, or if you have your own versions of GMP, MPC, MPFR etc to build against, put those in tree. This is also easier if you intend, as I do, to have multiple GCC versions installed. I would rather, because all of these are basically reinstatements of GCC, have as much coverage through known-good versions and multiple points of potential failure; if a particular version of GCC does better with a certain program, we can help keep track of this between ourselves. I do usually put GMP out of tree, but that's because I have a lot of small patches for it and some custom configure scripts I haven't figured out how to pass to GCC downstream. I WILL be updating the script with the particulars of what versions I used, and the commands I used for them.

3. IRIX tar has path length limitations that cause some path names on GCC to get corrupted, usually for libstdc++ and parts of the testsuite. star, gnu tar, and bsdtar from libarchive all work. I have a schily tar tardist available as well that makes this easy. 

4. After I get the GCC versions all built, I plan to go back and see how hard is it for us to patch them using IRIX ld and IRIX as. I don't know if this will make any differences code or performance-wise, but like many of us here, I'm leery of binutils. Danielhams' patches are pretty good and I've had only a few weirdness issues from them that I was able to solve with some ease; sometimes though I wonder if IRIX's ld or as can do better, as a few users here prefer the use of IRIX's as for perceived ASM benefits. I found some longstanding bugs that broke bootstrapping, and some unfixed GMP bugs that an old pkgsrc post came up with. 

5. LTO appears to be broken, both for the didbs builds, and for Erno's builds, as well as Nekoware's GCC. This is also true of mine

6. I am releasing a new Nekoware I GCC compiler. This will mostly be for the benefit of those who have any interest in Nekoware 1 -- Nekoware II is gonna happen... eventually.

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,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
06-09-2021, 09:55 PM


Messages In This Thread
GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-09-2021, 09:55 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-10-2021, 06:54 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by jirka - 06-10-2021, 08:04 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-12-2021, 12:24 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-12-2021, 05:51 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-13-2021, 01:37 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by weblacky - 06-13-2021, 02:30 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by synthetix - 06-13-2021, 07:09 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-13-2021, 03:02 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by synthetix - 06-13-2021, 06:57 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-13-2021, 02:54 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-13-2021, 07:32 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by synthetix - 06-14-2021, 02:54 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-14-2021, 02:57 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-15-2021, 05:07 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 06-21-2021, 03:40 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 02-18-2023, 03:55 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 02-18-2023, 06:33 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 02-18-2023, 06:53 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 02-18-2023, 07:38 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 03-28-2023, 07:40 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 09-06-2024, 03:18 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-18-2024, 03:46 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-18-2024, 05:14 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-18-2024, 06:07 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by robespierre - 12-18-2024, 06:52 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-18-2024, 08:38 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-18-2024, 09:16 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-18-2024, 09:56 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-18-2024, 10:33 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-19-2024, 12:04 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 12:45 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-19-2024, 07:42 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 05:44 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 03:22 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 03:40 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 04:09 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 04:31 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-19-2024, 05:10 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 05:40 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-19-2024, 07:47 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-20-2024, 05:20 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-21-2024, 01:13 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-22-2024, 01:22 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 06:36 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by robespierre - 12-19-2024, 07:03 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 07:53 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 08:03 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-19-2024, 08:56 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-19-2024, 08:59 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 05:56 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 03:19 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by robespierre - 01-02-2025, 11:28 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 03:33 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 03:41 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 05:42 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-20-2024, 06:47 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 08:43 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by weblacky - 12-20-2024, 09:52 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 10:54 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-20-2024, 11:33 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-21-2024, 01:43 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-22-2024, 04:03 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-22-2024, 06:52 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-22-2024, 08:34 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-23-2024, 01:07 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-23-2024, 04:03 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-23-2024, 04:03 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-23-2024, 07:58 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-23-2024, 10:09 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-24-2024, 04:28 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-24-2024, 09:50 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-25-2024, 09:13 PM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by weblacky - 12-26-2024, 01:22 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-26-2024, 02:05 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by vishnu - 12-26-2024, 03:56 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 12-26-2024, 04:42 AM
RE: GCC On IRIX -- a lot of stuff I'm learning about this - by Raion - 01-02-2025, 04:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)