No problem! GCC on some of these older UNIXen can really be a pain, IIRC in order to bootstrap GCC on a 3B1 you had to download some binary of the GNU C preprocessor because the stock AT&T preprocessor blew up on GCC's bazillion portability defines.
And if you like herculean fits... take a look at SVR2 source as present in the Microport source leak or SVR4.2. Both have their own share of issues, and both can be considered Herculean, although SVR2 is *much* more Herculean

. I've recompiled both so I know they at least compile properly after some fixes, but don't overdo yourself too much, SVR2 can be a real pain, and SVR4.2 has its own issues which I won't talk about as to not spoil the surprise
P. S. originally I didn't even know SVR4v4.0 was out there, binary or source, then someone in a retrocomputing Discord nerdbaited me into recompiling that and provided a link to the source tree during a discussion on SVR4v3.0, and now I kind of act as the distribution guy since apparently not many people even know that's out there