swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOSX port effort.


From: W . Northcott
Subject: Re: MacOSX port effort.
Date: Fri, 21 Jun 2002 09:04:24 +1000

After a couple of months tied up in teaching, I am finally back on this.

I can now compile gcc3.1 in Apple style on OSX 10.1.5, so that it is 
completely compatible with ProjectBuilder and hopefully very close to the 
compiler that will be released with Jaguar (10.2) later this year.  This 
compiler does not fail on nested functions.

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.

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.

Enjoy
Bill Northcott


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]