gpc in Mac OSX Lion
Adriaan van Os
gpc at microbizz.nl
Tue Oct 25 09:30:48 CEST 2011
Leo Brewin wrote:
> Hi troops,
> Has anybody successfully compiled GPC under MacOSX Lion? I've tried doing so using Adriaan's sources (gpc346u4-sources.dmg) but I encountered the following errors (as listed below).
> Any help would be greatly appreciated.
I have an alpha version for 10.7 here <http://microbizz.nl/gpc436u1-20110712.dmg>. Current problems
still to be solved
- line numbers of error messages are 0, which is not handy
- packed arrays of boolean are broken for PowerPC code
Instructions on how to build
1. Move the unpacked gpc436u1-20110712 directory to the booting hard-disk at a location where there
are no spaces in the full pathname
2. Double-click the build-gpc.command file
3. Building can take a long time, please standby to type your Administrator password several times
in the build process.
A range of packages is needed to build the compiler. These will be downloaded automatically by the
script into the packages subfolder (unless the packages are already in that folder). Upon
completion, the compiler and compiler docs will be installed in the /Developer/Pascal directory of
the booting hard-disk.
However, there is some added complexity for 10.7 and Xcode 4 if you need to build the PowerPC cross
1. Xcode 4 doesn't install the Mac OS X 10.5 SDK. Please copy (or symlink) the MacOSX10.5.sdk
folder from a previous Xcode installation to /Developer/SDKs/
2. Xcode 4 doesn't install the assemblers for 32/64-bit PowerPC. If, in the Terminal application,
you type the command "open /usr/libexec/gcc/darwin" the Finder will open the
/usr/libexec/gcc/darwin folder. You will see there the subfolders "i386" and "x86_64". The
subfolders "ppc" and "ppc64" from this <http://microbizz.nl/powerpc-assembler.zip> zip file, have
to be added there.
3. Mac OS X 10.7 doen't install Rosetta, so you can't run PowerPC code. You need to transfer the
output of the PowerPC cross compiler to another machine and test there.
Adriaan van Os
More information about the Gpc