Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Compile Error on Mac OS X

Moderators: kris

Posted: 08/31/07 14:12:49

I've been trying to compile tango on my PPC Mac Mini. I'm using the MacPorts? version of gdc 0.23. I've tried compiling manually and with dsss, but always get the following error:

gdc -o dgccmain2.o -g -frelease -O2 -fversion=GC_Use_Alloc_MMap -fversion=GC_Use_Stack_Fixed -fversion=GC_Use_Data_Dyld -nostdinc -pipe -I../../.. -fversion=Posix   \
-c dgccmain2.d
dgccmain2.d:234: Error: no property 'file' for type 'object.Exception'
dgccmain2.d:237: Error: no property 'file' for type 'object.Exception'
dgccmain2.d:237: Error: no property 'line' for type 'object.Exception'
dgccmain2.d:242: Error: no property 'toUtf8' for type 'object.Exception'
dgccmain2.d:244: Error: no property 'next' for type 'object.Exception'
dgccmain2.d:244: Error: cannot implicitly convert expression (1) of type int to object.Exception
Error: cannot cast int to object.Exception
make[2]: *** [dgccmain2.o] Error 1
make[1]: *** [all] Error 2
make: *** [lib] Error 2
Command bash returned with code 256, aborting.

Does anyone know how to fix this?

Author Message

Posted: 01/29/08 23:43:54

I get the exact same errors using the gdcmac compiler version 0.24 and I can't think of anything else to try. I would love to have this error fixed.

Posted: 01/29/08 23:53:15

Strange. I realized that I had the MacPorts? version of gdc installed, and I was using that apparently. I uninstalled that version, which swiched back to the gdcmac version, and it worked!

Posted: 01/30/08 08:44:26

Ah, yes, I think I've heard it said that the macports version of GDC tends to act weird, or just be plain broken.