DSSS install of gdc-gcc-4.1 fails on OS X

Anders F Björklund afb at algonet.se
Sat Sep 22 12:31:03 PDT 2007


Steven Grimm wrote:

> I had tried specifying an alternate prefix from the installer, but gdc 
> didn't work; when I tried to compile anything, I'd get
> 
> object.d: module object cannot read file 'object.d'
> 
> I just tried again, ran gdc under ktrace (OS X's strace equivalent, more 
> or less) and tracked down the problem: the installer needs to create an 
> additional directory when you're not installing in /usr.
> 
> $ mkdir -p <install base>/lib/gcc/i686-apple-darwin8/4.0.1
> 
> fixed the problem for me. The root cause is that gdc uses 
> <prefix>/lib/gcc/i686-apple-darwin8/4.0.1/../../../../include/d/4.0.1 as 
> the default include directory; if the directory structure under /lib 
> doesn't exist, it can't find its include files. If you install in /usr, 
> that directory already exists, so everything works.

Right you are, those directories already existed here (from another 
installation) when I tried it. It'll be added to the 0.25 postflight...

--anders


More information about the D.gnu mailing list