Thread overview
Compiling on Mac OS X
Apr 22, 2004
Drew McCormack
Apr 22, 2004
David Friedman
Apr 22, 2004
eluusive
Apr 22, 2004
s31552
Apr 22, 2004
Lws
April 22, 2004
I am trying to get a working D compiler up and running on Mac OS X, but I'm not there yet. I downloaded the source for gcc 3.4, followed the build instructions, and did end up with a gdc compiler.

It seems I have to install phobos separately. Is that right?

I downloaded the dmd.zip file, and have the phobos source, but I don't really know how to compile it. I just went into the linux version, changed the makefile to use gdc instead of dmd, and fired away. Compilation failed badly though.

Rather than wasting a lot of time figuring out how to include phobos, can someone give me a few quick pointers? Am I going about it the right way?

Even better would be if someone has Mac OS X binaries available somewhere.

Cheers,
Drew McCormack
April 22, 2004
The gdc package contains the customized Phobos source in the subdirectory 'phobos'.  The instructions to build it are on the website and in the INSTALL file.  Basically, it's just another configure/make/make install cycle.

Drew McCormack wrote:
> I am trying to get a working D compiler up and running on Mac OS X, but I'm not there yet. I downloaded the source for gcc 3.4, followed the build instructions, and did end up with a gdc compiler. 
> 
> It seems I have to install phobos separately. Is that right?
> 
> I downloaded the dmd.zip file, and have the phobos source, but I don't really know how to compile it. I just went into the linux version, changed the makefile to use gdc instead of dmd, and fired away. Compilation failed badly though.
> 
> Rather than wasting a lot of time figuring out how to include phobos, can someone give me a few quick pointers? Am I going about it the right way?
> 
> Even better would be if someone has Mac OS X binaries available somewhere.
> 
> Cheers,
> Drew McCormack

April 22, 2004
Although compiling phobos on MacOS X currently results in a ICE ( internal compiler error). Don't bother trying till David releases his gdc 1e patch that fixes it.  He promised he'd give us it today! *Jumps in anticipation*

In article <c68paj$2ktb$1@digitaldaemon.com>, David Friedman says...
>
>The gdc package contains the customized Phobos source in the subdirectory 'phobos'.  The instructions to build it are on the website and in the INSTALL file.  Basically, it's just another configure/make/make install cycle.
>
>Drew McCormack wrote:
>> I am trying to get a working D compiler up and running on Mac OS X, but I'm not there yet. I downloaded the source for gcc 3.4, followed the build instructions, and did end up with a gdc compiler.
>> 
>> It seems I have to install phobos separately. Is that right?
>> 
>> I downloaded the dmd.zip file, and have the phobos source, but I don't really know how to compile it. I just went into the linux version, changed the makefile to use gdc instead of dmd, and fired away. Compilation failed badly though.
>> 
>> Rather than wasting a lot of time figuring out how to include phobos, can someone give me a few quick pointers? Am I going about it the right way?
>> 
>> Even better would be if someone has Mac OS X binaries available somewhere.
>> 
>> Cheers,
>> Drew McCormack
>


April 22, 2004
Hi,

> Although compiling phobos on MacOS X currently results in a ICE ( internal compiler error). Don't bother trying till David releases his gdc 1e patch that fixes it.  He promised he'd give us it today! *Jumps in anticipation*

I was able to compile phobos with gdc-r1e. In my case, I failed to compile phobos when I tried to compile with the gcc installed with previous version's gdc. But I succeed to compile phobos when I tried to compile with the MacOSX's gcc (/usr/bin/gcc).

------------------
 shinichiro.h
  s31552@mail.ecc.u-tokyo.ac.jp
  http://user.ecc.u-tokyo.ac.jp/~s31552/wp/
April 22, 2004
On 2004-04-22 16:06:08 -0700, s31552@mail.ecc.u-tokyo.ac.jp said:

> Hi,
> 
>> Although compiling phobos on MacOS X currently results in a ICE ( internal
>> compiler error). Don't bother trying till David releases his gdc 1e patch that
>> fixes it.  He promised he'd give us it today! *Jumps in anticipation*
> 
> I was able to compile phobos with gdc-r1e. In my case, I failed to
> compile phobos when I tried to compile with the gcc installed with
> previous version's gdc. But I succeed to compile phobos when I tried
> to compile with the MacOSX's gcc (/usr/bin/gcc).
> 
> ------------------
>  shinichiro.h
>   s31552@mail.ecc.u-tokyo.ac.jp
>   http://user.ecc.u-tokyo.ac.jp/~s31552/wp/

You're running MacOS X?  Could you tell us exactly how you accomplished this if you are.