June 02, 2011
Hi,

I'm trying to compile some distribution of D2 on OSX 64-bit (for integrating it with pyd, and as my Python is 64-bit, I kindof need D to be as well).

The official DMD source code doesn't seem to have makefile rules for 64-bit (and if I change to -m64, I get some assertion errors which may be a bit over my ability to fix), and the provided binaries are only for 32-bit OSX.

Thus I'm trying to compile gdc, which apparently finished successfully,
and I can compile with it, however I cannot link, as ld reports that
some symbols that libgphobos2.a refers to are undefined (
https://bitbucket.org/goshawk/gdc/issue/210/missing-symbols-of-libgphobos2a
).

What I noticed by looking at ```nm libgphobos2.a``` is that most of the undefined symbols (the ones which refer to ```TypeInfo_<something>.__init```) start with one _, however in the same library symbols with the same name but starting with two underscores instead, are defined ( some output samples of nm provided at link above ).

I've looked everywhere on the Internet and cannot find a useful reference, and the gdc people don't seem to be very responsive, so I decided to take this up with the D team directly. Any idea how to start treating this problem, or alternatively how to compile DMD on 64-bit OSX?

Thanks,
Dan




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3968 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110602/2721747c/attachment.bin>