Thread overview
First time D user, trying to make D compiler run under Mac OS X
Dec 25, 2006
igor
Dec 26, 2006
Luís Marques
Dec 29, 2006
igor
December 25, 2006
I'm sorry if this is a wrong place for this question. I've just downloaded a version of GDC package for Mac OS X and trying to compile a very simple file.

This is the error I'm getting:

$ gdmd test.d
/usr/bin/ld: can't open: crt3.o (No such file or directory, errno = 2)
collect2: ld returned 1 exit status

Any hints? If this is a wring place to ask this question, could you please point me to the right direction?

Thanks!
December 26, 2006
igor wrote:
> I'm sorry if this is a wrong place for this question. I've just downloaded a
> version of GDC package for Mac OS X and trying to compile a very simple file.
> 
> This is the error I'm getting:
> 
> $ gdmd test.d
> /usr/bin/ld: can't open: crt3.o (No such file or directory, errno = 2)
> collect2: ld returned 1 exit status
> 
> Any hints? If this is a wring place to ask this question, could you please
> point me to the right direction?
> 
> Thanks!

Hello Igor,

Try perhaps the groups D.gnu and digitalmars.D.learn.

Good luck!

--
Luís Marques
December 27, 2006
igor wrote:

> I'm sorry if this is a wrong place for this question. I've just downloaded a
> version of GDC package for Mac OS X and trying to compile a very simple file.

If you downloaded the "gdcmac" package, we need some more background info. Like your version of Mac OS X and Xcode and which PKG you got...
If it was Mac OS X 10.4, Xcode 2.4.1 and gdc-0.20-mac-10.4.pkg it's OK. But if you downloaded the Mac OS X 10.4 package to your 10.3, try again.

> Any hints? If this is a wring place to ask this question, could you please
> point me to the right direction?

This newsgroup, d.D.learn, D.gnu or dgcc/gdcmac issue trackers at SF:
dgcc	http://sourceforge.net/tracker/?group_id=154306
gdcmac	http://sourceforge.net/tracker/?group_id=135857
Thank you for wanting to help improve the GDC installation experience.

--anders
December 29, 2006
== Quote from Anders F Björklund (afb@algonet.se)'s article
> If you downloaded the "gdcmac" package, we need some more background info. Like your version of Mac OS X and Xcode and which PKG you got... If it was Mac OS X 10.4, Xcode 2.4.1 and gdc-0.20-mac-10.4.pkg it's OK.

Anders, thanks a lot, your remark helped. I had Mac OS X 10.4, but the older Xcode, 2.2.1. It's not clear from the documentation that the latest XCode is required, but it seems to be the case. I joined Apple Developer Conneciton program, downloaded the latest Xcode 2.4.1 and - voila - it works now!

Thanks,

Igor
December 29, 2006
igor wrote:

> Anders, thanks a lot, your remark helped. I had Mac OS X 10.4, but the older
> Xcode, 2.2.1. It's not clear from the documentation that the latest XCode is
> required, but it seems to be the case. I joined Apple Developer Conneciton
> program, downloaded the latest Xcode 2.4.1 and - voila - it works now!

The earlier (0.19) builds for X86/PPC used Xcode 2.2+,
the latest (0.20) build for Universal uses Xcode 2.4+.

Tried to communicate this on the website and installer,
but we probably need to add a pre-install Xcode check ?

"Your Xcode Tools seem to be too old, please upgrade."
--anders

PS.
The Tiger Xcode integration is still missing, but hope
to have it up on the web site before the final release.
http://gdcmac.sourceforge.net/xcode.html (for the IDE)