Yes, I know there are others. Â Newer versions of GCC too!.. but I was more so curious to see if I could do it. Â I know there were GCC 1.x ports to the Amiga but I can’t find source anywhere. Â And for some reason the Amiga and Atari ST seem to have never been mainlined into GCC. Â I would have thought 1990-1992 they would have had far more users than say SUN-2/SUN-3.
Some ‘fixes’ are described in this file:
https://raw.githubusercontent.com/sdenel/How-to-install-SimpleScalar-on-Ubuntu/master/Install-SimpleScalar.sh
Although it’s not 100%.
I downloaded the files mentioned on this GCC page, and started to massage stuff. Â This was easier as GCC 2.7 & Binutils 2.8 both support Windows NT 3.5 (and much much higher!).
I may want to try to get an ancient Nethack to build, so I put it onto sourceforge…
I’ve just tested a hello world type executable. Â I’m more so amazed that it linked and executed, ‘file’ detects the objects as
x.o: raw G3 data, byte-padded
But at least the executables look right:
hi: AmigaOS loadseg()ble executable/binary
I had to hack all kinds of crap compiling eamiga.c
and eamiga_bss.c as neither generated correctly, and both had all kinds of missing and undefined things.  I’m sure on bigger projects it’d just explode, but right now I’m just amazed the linker could pick up my object, plus the 21 year old objects + libraries from that aforementioned ancient GCC port.
Oh well I was entertained for a couple hours.
The Burr-Rushing-Pigg port from 1990 may be interesting as it uses the GCC 1.37 apparently in a stock/SUN config, but includes a program to convert the a.out to Amiga hunk:
SObjA – Convert object files from Sun to Amiga format.
Which may help with that added vintage feeling.