Peter N Lewis wrote:
Which GCC version should I compile to compile the latest GPC snapshot (the only downloadable file at the time being)?
3.2.x, 3.3.x or 3.4.3 should all work well. If you need to download one anyway, I suggest 3.4.3. (This is the source GCC you need for building GPC. The installed GCC compiler versions shouldn't matter much, just use the one you have installed.)
I posted instructions for getting gpc to compile from scratch on Mac OS X 10.4 recently (I'll repeat them below). The process should be similar for any unix system, although you may not need the patches and tweaks described in my docs).
Compiling GPC from scratch
1 - Install bison version 2.0 2 - Install flex version 2.5.27 3 - Install sed version 4.1.4 4 - Install help2man version 1.35.1
These might not be necessary on a GNU based system (such as Linux). Probably the programs are installed already, otherwise it may be easier to install them from the distribution.
8 - Patch gcc for Mac OS X
This is of course, unnecessary on other systems, but harmless.
10 - Install gp
The patch given here might be harmful on Unix systems. I'll investigate it. ATM, better don't use this patch on Unix.
11 - Setup some links
This should not be necessary on Unix if configured with prefix /usr/local (default) or /usr. Configured with another prefix (such as $HOME/usr), you can do something like this, or set your PATH variable. (I prefer the latter, which is a one time setting, instead of making links after each installation -- you might want to install other stuff this way later.)
Frank