dmd, x64 and Windows

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Feb 23 13:15:24 PST 2011


On 2/23/11, Iain Buclaw <ibuclaw at ubuntu.com> wrote:
> == Quote from Andrej Mitrovic (andrej.mitrovich at gmail.com)'s article
>> I've been trying to compile GDC the last couple of days. I've ran into
>> some issues, but I've put them in GDC tickets and it seems from the
>> last comments that Iain Buclaw has managed to create a cross-compiler
>> setup and working. This is all last-minute info so I don't know if
>> we'll have GDC working on Windows just yet.
>
> D2 Ming32 cross-compiler built, but haven't yet tested the quality of the
> object
> files outputted (will no doubt be using WINE).
>
> Changeset: https://bitbucket.org/goshawk/gdc/changeset/978bb5bc82cf
>
> And briefly documented, as I *will* forget when the morning comes:
> https://bitbucket.org/goshawk/gdc/wiki/MinGWCrossCompile
>

I don't understand this.

It takes at least 15 seconds to open the gcc archive with the few
thousand source files on windows. And this is trying winrar, 7zip and
peazip. Then it takes at least 30 seconds, or more like a minute to
extract it. It takes an entire *hour* to build GCC+GDC, and this is
with precompiled GMP, MPFR and MPC libraries. This is all done on
Msys, of course.

I have Ubuntu running in a Virtualbox (with hardware virtualization).
It took 2 seconds to open the GCC archive, 4 seconds to extract it,
and about 4 minutes to build GMP, MPFR, MPC and then GCC, in that
order.

I can't tell if this is the fault of MinGW or Msys. (or blame windows, hehe).

Anywho, I've succesfully built it on Ubuntu, but since I'm such a
linux naab I'm not sure how I'm supossed to install it. I've tried:
sudo make DESTDIR="/build/Mingw32" install

which apparently installed it in /build/Mingw32, but I can't seem to invoke it:
$ gdc
"The program 'gdc' is currently not installed.  You can install it by typing:
sudo apt-get install gdc"

What do I have to do to be able to run gdc from within any folder?


More information about the Digitalmars-d mailing list