Thread overview
Need help with building dmd
Aug 07, 2014
Phil Lavoie
Aug 07, 2014
Brad Anderson
Aug 07, 2014
Phil Lavoie
Aug 07, 2014
Brad Anderson
Aug 07, 2014
Phil Lavoie
Aug 07, 2014
Brad Anderson
Aug 07, 2014
Phil Lavoie
August 07, 2014
I'm trying to build dmd from source but "make" can't open the makefile.

I checked out the source and everything and the make version I use is the one that comes with the distribution:
Digital Mars Make Version 5.06

So I'm in the source folder (...\dmd2\src\dmd\src), I can clearly see that there is the file win32.mak present and I run:
make release -fwin32

Here is the output:
Error: can't read makefile 'win32'

I'm building on Windows btw.

Thanks,
Phil
August 07, 2014
On Thursday, 7 August 2014 at 01:15:36 UTC, Phil Lavoie wrote:
> [...]
> make release -fwin32
>
> Here is the output:
> Error: can't read makefile 'win32'
>
> I'm building on Windows btw.
>
> Thanks,
> Phil

Close. You need the extension, I believe.

make -f win32.mak release
August 07, 2014
On Thursday, 7 August 2014 at 01:18:52 UTC, Brad Anderson wrote:
> On Thursday, 7 August 2014 at 01:15:36 UTC, Phil Lavoie wrote:
>> [...]
>> make release -fwin32
>>
>> Here is the output:
>> Error: can't read makefile 'win32'
>>
>> I'm building on Windows btw.
>>
>> Thanks,
>> Phil
>
> Close. You need the extension, I believe.
>
> make -f win32.mak release

Nope, still not working, but thx.
August 07, 2014
On Thursday, 7 August 2014 at 01:27:55 UTC, Phil Lavoie wrote:
> Nope, still not working, but thx.

Hmm, are you in the src directory?
August 07, 2014
On Thursday, 7 August 2014 at 01:37:46 UTC, Brad Anderson wrote:
> On Thursday, 7 August 2014 at 01:27:55 UTC, Phil Lavoie wrote:
>> Nope, still not working, but thx.
>
> Hmm, are you in the src directory?

Yes and ls *.mak shows three makefiles:
osmodel.mak
posix.mak
win32.mak
August 07, 2014
On Thursday, 7 August 2014 at 01:50:50 UTC, Phil Lavoie wrote:
> On Thursday, 7 August 2014 at 01:37:46 UTC, Brad Anderson wrote:
>> On Thursday, 7 August 2014 at 01:27:55 UTC, Phil Lavoie wrote:
>>> Nope, still not working, but thx.
>>
>> Hmm, are you in the src directory?
>
> Yes and ls *.mak shows three makefiles:
> osmodel.mak
> posix.mak
> win32.mak

ls? If you're not, I recommend using the cmd.exe terminal.
optlink has had problems with using other terminals.

You may want to look at this guide if you haven't already:

http://wiki.dlang.org/Building_DMD
August 07, 2014
On Thursday, 7 August 2014 at 02:13:38 UTC, Brad Anderson wrote:
> On Thursday, 7 August 2014 at 01:50:50 UTC, Phil Lavoie wrote:
>> On Thursday, 7 August 2014 at 01:37:46 UTC, Brad Anderson wrote:
>>> On Thursday, 7 August 2014 at 01:27:55 UTC, Phil Lavoie wrote:
>>>> Nope, still not working, but thx.
>>>
>>> Hmm, are you in the src directory?
>>
>> Yes and ls *.mak shows three makefiles:
>> osmodel.mak
>> posix.mak
>> win32.mak
>
> ls? If you're not, I recommend using the cmd.exe terminal.
> optlink has had problems with using other terminals.
>
> You may want to look at this guide if you haven't already:
>
> http://wiki.dlang.org/Building_DMD

Yeah I read that thx.

Well, it seems like it was indeed the powershell that was troubling it. Just tried it with cmd and it seems to work.

Thx Brad,

Phil