Hi James
>Speaking as someone joining this list because I was failing miserably
>building from the CVS tree, the biggest bang for the buck in my opinion
>would be to archive this list. At the moment it's not compiling for me
My apologies to those who have seen this before, but as James says, this
list is not archived.
This recipe of mine from June might help:
For others who might be interested, here is an updated recipe:
Starting point a nice clean MacOS X 10.1.5 and the April 2002 Developer
tools.
Install bash 2.0.5 available as a binary from the Apple web site MacOS X
Downloads:UNIX Apps and Utilities.
Get onto the Apple opensource CVS. This requires a free registration.
Checkout the following packages. The tags I used are in parentheses:
bootstrap_cmds (bootstrap_cmds-26)
Libstreams (Libstreams-23)
cctools (cctools-427)
gcc3 (gcc3-1181) avoid gcc3-112x tags This is
temporary branch and less stable. (update - Jaguar Tag is 1151)
Build instructions:
cd to the bootstrap_cmds directory
gnumake (this is just to be safe, 'make' would probably be OK)
sudo gnumake install
cd to the Libstreams directory
gnumake
sudo gnumake install
cd to the cctools directory
open Makefile in a text editor
around line 28 remove dyld and otool from the build list: (they needs
stuff in the new Jaguar System.framework)
COMMON_SUBDIRS = libstuff as gprof misc libmacho ld libdyld \
mkshlib profileServer RelNotes man
# COMMON_SUBDIRS = libstuff as gprof misc libmacho ld dyld libdyld \
# mkshlib otool profileServer RelNotes man
sudo gnumake install (make without install fails, later compiles require
packeages earler on the list)
Now you should now be able to build gcc3.1
I start at the directory above the gcc3 directory and run the following as
a script:
#!/bin/sh
cd gcc3
mkdir -p build/obj build/dst build/sym
gnumake install RC_OS=macos RC_ARCHS=ppc TARGETS=ppc \
SRCROOT=`pwd` OBJROOT=`pwd`/build/obj \
DSTROOT=`pwd`/build/dst SYMROOT=`pwd`/build/sym
in my experience this will boostrap the compiler every time
However building the c++ runtimes may still fail.
if so, add BOOTSTRAP= to the make options, which prevents a repeat of the
full bootstrap, and run it again.
It should complete giving you a working compiler in gcc3/build/dst/
install with
sudo ditto gcc3/build/dst/ /
Do:
sudo gcc_select 3
Just in case
Try
cc -v
You should get a version string from your shiny new compiler.
This installation should not damage your old gcc 2.95.2 compiler and you
should be able to use gcc_select to switch between them. As usual there
are no warranties! Don't call me if this trashes your computer.
If using PB remember to add USE_GCC3=YES to the build options. If
compiles grok on error messages from the precompiler, add -no-cpp-precomp
to the CFLAGS. Only do this last if you need to because it is slower.
Thanks are due to Stan Shebs at Apple for much help with this.
Bill Northcott