Xcode 2.3 and gcc-4.2 (Ada)
July 13th, 2006 at 0:33 · Filed Under Ada, Call Me a Geek, Computing, HOWTO, Mac OS X, Software Development
I have finally decided to update to Xcode 2.3 and gcc-4.2. There is not much information about how to install except from the MacAda mailing list. So, I decided to post the How-To here.
Here are the procedures:
- Uninstall previous Xcode installation by
$ sudo perl /Developer/Tools/uninstall-devtools.pl - Restart the computer
- Download and install Xcode 2.3
- Download and install gcc-3.3 Ada compiler from MacAda
- Download and install gcc-4.2 Ada compiler
- Unzip and untar the gcc-4.2 package with
$ tar -zxvf fsf-ppc-gcc-4.2.0-20060429.tgzor
$ tar -zxvf fsf-i686-ada-4.2-20060409.tgzdepending if you are using PowerPC or Intel Mac.
- Move the directory ada-4.2 to /usr/local
- Download and install Ada Plugin for Xcode and follow the instructions.
I tested Xcode by compiling some projects and it is great. But I still cannot manage to build Ada dynamic library with it. It looks like some problems with the flags. Here’s the error and warning messages I got:
warning -L: directory name (/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/default) does not exist
unknown flag: -Wl, -single_module
Comments
Leave a Reply


Listen to my podcast