www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Need help with building dmd

reply "Phil Lavoie" <maidenphil hotmail.com> writes:
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
Aug 06 2014
parent reply "Brad Anderson" <eco gnuk.net> writes:
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
Aug 06 2014
parent reply "Phil Lavoie" <maidenphil hotmail.com> writes:
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.
Aug 06 2014
parent reply "Brad Anderson" <eco gnuk.net> writes:
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?
Aug 06 2014
parent reply "Phil Lavoie" <maidenphil hotmail.com> writes:
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
Aug 06 2014
parent reply "Brad Anderson" <eco gnuk.net> writes:
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
Aug 06 2014
parent "Phil Lavoie" <maidenphil hotmail.com> writes:
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
Aug 06 2014