February 15, 2009
Walter Bright wrote:
> Now includes Mac OSX version!
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.040.zip
> 
> 
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.025.zip
> 
> Expect bugs. Thread local storage isn't working on OSX, neither are sockets and memory mapped files (for unknown reasons).
> 
> Thanks to Sean Kelly for a lot of help on the runtime library with this.

For those how don't know what thread local storage is used for, is this both D1 and D2 and what features can I expect not working because of thread local storage.
February 15, 2009
Anders F Björklund wrote:
> Walter Bright wrote:
> 
>>> No luck, same problem. Might want to add "requires Mac OS X 10.5"
>>> or something for now ? Upgraded wxD CVS to support DMD on Mac too.
>>
>> Yeah, that looks like the best strategy for the moment. It seems odd that there is such confusion about something that should be documented and straightforward.
> 
> Must have been unlucky, or doing things "outside the dotted lines",
> or both... Because usually it does just work with the MDT and SDK.

I don't know how my new Mac mini, with an utterly default install, could possibly be outside the dotted lines. "man gcc" lists about a thousand switches, none of which are -mmacosx-version-min=10.4


> I think cross-compilation is rather transparent on Mac OS X, on the
> other platforms it usually involves a full chroot or virtual machine ?

On Windows I can still compile for DOS <g>.
February 15, 2009
Jacob Carlborg wrote:
> Walter Bright wrote:
>> Now includes Mac OSX version!
>>
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.040.zip
>>
>>
>> http://www.digitalmars.com/d/2.0/changelog.html
>> http://ftp.digitalmars.com/dmd.2.025.zip
>>
>> Expect bugs. Thread local storage isn't working on OSX, neither are sockets and memory mapped files (for unknown reasons).
>>
>> Thanks to Sean Kelly for a lot of help on the runtime library with this.
> 
> For those how don't know what thread local storage is used for, is this both D1 and D2 and what features can I expect not working because of thread local storage.

TLS is only in D2, and I don't think any library code uses it. Basically, you can't declare "__thread" variables on OSX.  You *can* use the TLS in core.thread though (the ThreadLocal class, or Thread.get/setLocal).


Sean
February 16, 2009
"Walter Bright" <newshound1@digitalmars.com> wrote in message news:gn78ho$hmp$1@digitalmars.com...
> Now includes Mac OSX version!
>
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.040.zip
>
>
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.025.zip
>
> Expect bugs. Thread local storage isn't working on OSX, neither are sockets and memory mapped files (for unknown reasons).
>
> Thanks to Sean Kelly for a lot of help on the runtime library with this.

dmd.2.025.zip has a file called "lib" (no extension) in the dmd folder. Sounds like a copy something \dmd\lib ? Its size is similar to gcstub.obj, is that it?

L. 

February 16, 2009
Ok, try downloading dmd1 again.
February 16, 2009
Lionello Lunesu wrote:
> dmd.2.025.zip has a file called "lib" (no extension) in the dmd folder. Sounds like a copy something \dmd\lib ? Its size is similar to gcstub.obj, is that it?

eh, just delete it!
February 16, 2009
On Sat, 14 Feb 2009 12:11:38 -0800, Walter Bright wrote:

> Now includes Mac OSX version!
> 
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.040.zip
> 
> 
> http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.025.zip
> 
> Expect bugs. Thread local storage isn't working on OSX, neither are sockets and memory mapped files (for unknown reasons).
> 
> Thanks to Sean Kelly for a lot of help on the runtime library with this.

WRT the new layout of lib/bin.  I know that you specify how to fix the permissions of the executables on the linux download page, but is it possible to get the files as a tarball so they do not have to be set?  Or to set the permissions in the zipfile (not sure about that one).  It seems weird that a distribution for linux has to have its permissions set manually.  I know it's been this way forever, but it does get annoying to have to twiddle with an installation every time I install it.  It probably isn't too much to host 2 different archives of the same file, one in tgz format and one in zip.

BTW, the new layout is good for cygwin users, because previous to this on windows, I had to remove the linux executables.  Cygwin would try to execute those first before finding the .exe versions.

-Steve
February 16, 2009
Walter Bright wrote:
> Now includes Mac OSX version!
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.040.zip
> 
> 
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.025.zip
> 
> Expect bugs. Thread local storage isn't working on OSX, neither are sockets and memory mapped files (for unknown reasons).
> 
> Thanks to Sean Kelly for a lot of help on the runtime library with this.

Well done!
When can we expect 64bit version of DMD?
February 16, 2009
Hello Dejan,

> Well done!
> When can we expect 64bit version of DMD?

OSX is still 32bit x86 so don't get your hopes up.


February 16, 2009
Dejan Lekic wrote:
> When can we expect 64bit version of DMD?

Nobody's ever satisfied <g>.

It has to be done sooner or later. Probably sooner.