Installing D on MacOS X Leopard box

Michel Fortin michel.fortin at
Tue May 25 07:57:08 PDT 2010

On 2010-05-25 10:30:44 -0400, Duke Normandin <dukeofperl at> said:

> I simply followed the installation instructions on:
> I also installed the XCode plugin for D. Could _that_ have hosed my
> install?

Unlikely. The two errors you wrote about:

>> dnormandin@ ~/programming/dmd2/osx/bin
>> 07:53 am>>  ./dmd ../../code/firstApp.d
>> ld warning: in /usr/local/gnat/lib/libgcc_s.10.5.dylib, missing
>> required architecture i386 in file
>> ld warning: in
>> /usr/local/gnat/lib/gcc/x86_64-apple-darwin9.6.0/4.3.4/libgcc.a, file
>> is not of required architecture

Noticed that both refer to files in /usr/local/gnat? "GNAT", isn't this 
a GCC-based ADA compiler? My guess is that some of you environment 
variables have the "/usr/local/gnat" path before the standard system 
path, and "gnat" seems to include single-architecture (x86_64) copies 
of the GCC libraries. If that's the case, GCC running in 64 bit will 
work using these libraries, but since DMD is 32 bit it won't.

Michel Fortin
michel.fortin at

More information about the Digitalmars-d mailing list