DMD via MacPorts has a problem

Jacob Carlborg doob at me.com
Tue Mar 4 09:23:51 PST 2014


On 2014-03-04 15:29, Russel Winder wrote:

> Sponditious.
>
> They work for me fine on a MBP with OSX Mavericks.
>
> However on a white MB with OSX Lion (*) the install of DMD fails. The
> problem appears to be that Clang cannot link the object files since the
> object files are not built for x86 architecture – despite the processor
> being 64-bit, the boot prom is 32-bit and so OSX is 32-bit and reports
> the processor to be 32-bit, unlike the processor which knows it's 64-bit
> and reports so. As far as I can tell (log files are huge due to the huge
> numbers of warnings about expressions) all the clang++ lines have
> -DDM_TARGET_CPU_X86, so I am somewhat surprised. Of course I am really a
> Linux person being forced to set up OSX boxes for testing…

I have no idea how Macport compiles DMD but I have no problem in 
compiling DMD manually, either with a 64bit or 32bit kernel.

If the computer supports it, you can force OS X to boot either a 32bit 
or 64bit kernel [1].

> (*) Apple refuse to allow any upgrade of this hardware to OSX Mountain
> Lion or OSX Mavericks, so I am stuck with OSX Lion.

I'm pretty sure there are ways around that.

[1] http://support.apple.com/kb/ht3773

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list