Re: Just one more thing...

2009-02-26 Thread John Stoneham
Walter Bright Wrote:

 Anders F Björklund wrote:
  I gather this only works with Mac OS X 10.5 Leopard ?
  
  $ dmd/osx/bin/dmd hello.d
  Bus error
  
  Could it be rebuilt with the MacOSX10.4u.sdk, perhaps ?
 
 Is 10.5 really binary incompatible with 10.4 ? And not even a nice 
 message when it isn't?

This is exactly the problem. I can confirm that it does not work on 10.4.11. 
However, it is EXTREMELY easy to get dmd to work on Tiger AND Leopard, but 
Walter will have to rebuild it linking to /Developer/SDKs/MacOSX10.4u.sdk (just 
a simple command-line switch when building it). This has to be done when 
building libphobos too, or we'll get an Undefined Symbol error when trying to 
build our own programs against it. Doing this will make it run on Tiger and 
Leopard, without having to have two builds for each system.

Walter, could you please do this for the 2.026 build, so we Tiger users can 
have D too?


Re: Just one more thing...

2009-02-26 Thread Walter Bright

John Stoneham wrote:

Walter, could you please do this for the 2.026 build, so we Tiger users can 
have D too?


It's already done for the compiler (just redownload it), and Sean is 
working on the library. It isn't as simple as you describe, because 10.4 
has a weaker implementation of pthreads.


Re: Just one more thing...

2009-02-26 Thread John Stoneham
Walter Bright Wrote:

 John Stoneham wrote:
  Walter, could you please do this for the 2.026 build, so we Tiger users can 
  have D too?
 
 It's already done for the compiler (just redownload it), and Sean is 
 working on the library. It isn't as simple as you describe, because 10.4 
 has a weaker implementation of pthreads.

I didn't realize the pthread issue would rear it's ugly head just by linking 
the 10,4u SDK. :) I did download it again as you suggested, and yes the 
compiler itself now runs without throwing any errors, but as you point out the 
library isn't compiled for 10.4 yet so I do get the undefined symbol error 
during the linking of a simple hello.d (specifically, it's 
_pthread_mutexattr_destroy$UNIX2003).

I'm really looking forward to using D on OS X. As Tank said in the Matirx, it's 
a very exiting time!


Re: Just one more thing...

2009-02-26 Thread Walter Bright

John Stoneham wrote:

I didn't realize the pthread issue would rear it's ugly head just by
linking the 10,4u SDK. :) I did download it again as you suggested,
and yes the compiler itself now runs without throwing any errors, but
as you point out the library isn't compiled for 10.4 yet so I do get
the undefined symbol error during the linking of a simple hello.d
(specifically, it's _pthread_mutexattr_destroy$UNIX2003).

I'm really looking forward to using D on OS X. As Tank said in the
Matirx, it's a very exiting time!



Can you upgrade to 10.5 ?


Re: Just one more thing...

2009-02-26 Thread Jarrett Billingsley
On Thu, Feb 26, 2009 at 8:39 PM, Walter Bright
newshou...@digitalmars.com wrote:

 Can you upgrade to 10.5 ?

That costs money.