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:

  1. Uninstall previous Xcode installation by
    $ sudo perl /Developer/Tools/uninstall-devtools.pl
  2. Restart the computer
  3. Download and install Xcode 2.3
  4. Download and install gcc-3.3 Ada compiler from MacAda
  5. Download and install gcc-4.2 Ada compiler
  6. Unzip and untar the gcc-4.2 package with
    $ tar -zxvf fsf-ppc-gcc-4.2.0-20060429.tgz

    or

    $ tar -zxvf fsf-i686-ada-4.2-20060409.tgz

    depending if you are using PowerPC or Intel Mac.

  7. Move the directory ada-4.2 to /usr/local
  8. 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