So, in case anyone wants to get the ball rolling, here are the official instructions on how to compile most of the (older) versions of QEMU under UNIX systems, which are (were) listed as having the same steps as GNU/Linux:
https://web.archive.org/web/20080203073227/http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC76https://web.archive.org/web/20150928012001/http://qemu.weilnetz.de/qemu-doc.html#compilation (this one doesn't mention anything about GCC versions)
6. Compilation from the sources
6.1 Linux/Unix
6.1.1 Compilation
First you must decompress the sources:
cd /tmp
tar zxvf qemu-x.y.z.tar.gz
cd qemu-x.y.z
Then you configure QEMU and build it (usually no options are needed):
./configure
make
Then type as root user:
make install
to install QEMU in `/usr/local'.
6.1.2 GCC version
In order to compile QEMU successfully, it is very important that you have the right tools. The most important one is gcc. On most hosts and in particular on x86 ones, gcc 4.x is not supported. If your Linux distribution includes a gcc 4.x compiler, you can usually install an older version (it is invoked by gcc32 or gcc34). The QEMU configure script automatically probes for these older versions so that usually you don't have to do anything.
For most of the duration of QEMU's existence, that is how it was documented.
In more recent years, they changed it here and there, although the same general idea applies:
https://wiki.qemu.org/Hosts/BSDhttps://www.qemu.org/download/In the past, they used to say that GCC 4 was "too new" and instead an earlier version was preferred (which is great for us). However, it seems to suggest that QEMU might want GCC 3.2.x or GCC 3.4.x, and Power MachTen might be stuck with gcc 2.8.1: According to Cameron Kaiser from Floodgap (from Classilla/TenFourFox/Talospace fame), he was unable to upgrade to GCC 3 or GCC 4, although he did not specify which exact version he tried, nor if he tried building GCC 2.95.x or even rebuilding 2.8.1 to try things out. So honestly, there's still a lot to explore in terms of updating GCC in Power MachTen.
Kaiser's page talking about GCC:
http://www.floodgap.com/retrotech/machten/base.htmlGCC versions in release order:
https://gcc.gnu.org/releases.htmlFinally, here you can find the official downloads for the source code of most QEMU versions:
https://download.qemu.org/You can dig for even earlier versions' source codes if you want, over here:
https://web.archive.org/web/20030601085257/http://fabrice.bellard.free.fr/qemu/https://web.archive.org/web/20050220020835/http://fabrice.bellard.free.fr/qemu/index.htmlhttps://web.archive.org/web/20071018041459/http://fabrice.bellard.free.fr/qemu/index.htmlNote how the versioning numbers only changed in very recent years (version 3 onwards). That's because they decided to change how they do version numbering itself, and not because they suddenly made breakthrough after breakthrough more than ever in the past. So it's confusing what they did, but it's no big deal.
One question that remains is: what versions will build with gcc 2.8.1? It seems fair to estimate that QEMU 1.x.x versions are a good place to start.
Another route is to try multiple GCC versions, exact versions, and see how that goes. Maybe see what needs patching, and where, and why. And of course, not to assume, for example, that if GCC 3.4 doesn't work, that then no 3.x.x version will work, or any other hasty conclusion like that.
There might be other dependencies to keep an eye out for besides GCC, but it is the only dependency that I saw the old docs focus so much attention to.
Ok, now back to Bochs.