On Sat, Jun 16, 2007 at 06:16:03PM -0700, michael.a wrote: > > Any advice on compiling gcc? That is the chicken and egg problem. If I > install a binary version of GCC, then use it to build and install a custom > GCC (which I want to become the system wide GCC) ...then how is this > commonly done? --of course I would like the non custom GCC to do any future > rebuilds, so that is to say, I don't want the custom GCC installing over the > initial "bootstrap" GCC (if this makes any sense at this point:)
I believe that what you want to do at this stage is use the GCC version that comes with your distribution to compile and install your custom patched GCC that you configure with some unique "--prefix" directory (in your home, for example) and hack the configure or Makefile files of the project you want to compile with it to use the compiler in that directory. The --disable-bootstrap configure option may also be handy until you get the compiler right. I think that reading through http://gcc.gnu.org/install/ and especially http://gcc.gnu.org/install/configure.html may save you a lot of questions and experiments, it certainly helped to set me up not so long time ago. HTH Martin