Thread overview
CP command used in the phobos windows makefile
May 27, 2011
Andrej Mitrovic
May 27, 2011
Dmitry Olshansky
May 27, 2011
Andrej Mitrovic
May 27, 2011
Johannes Totz
May 28, 2011
Matthias Pleh
May 28, 2011
Andrej Mitrovic
May 28, 2011
Andrej Mitrovic
May 27, 2011
Guys, where did you get the unix cp port from? I don't have it installed, so I can't use "make install -fwin32.mak". I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with:

cp.exe: cannot create regular file `\dmd2\windows\lib':
No such file or directory

Replacing cp with 'copy' doesn't work either, since copy uses a different syntax.

I'm not seeing a CP binary in any of the DigitalMars tools.
May 27, 2011
On 27.05.2011 16:06, Andrej Mitrovic wrote:
> Guys, where did you get the unix cp port from? I don't have it installed, so I can't use "make install -fwin32.mak". I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with:
>
Personally I never tried "make install" for phobos. Once phobos tests go green I just copy phobos.lib in src/phobos  to windows\lib directory and rebuild my projects.
(since phobos.lib includes druntime I don't think there is anything else you should do)

> cp.exe: cannot create regular file `\dmd2\windows\lib':
> No such file or directory
>
> Replacing cp with 'copy' doesn't work either, since copy uses a different syntax.
>
> I'm not seeing a CP binary in any of the DigitalMars tools.
Yup, overall win32 makefile seems horribly f**ed up.

-- 
Dmitry Olshansky

May 27, 2011
You know it'd be great if I could synchronize git with a build system. I mean if I'm switching between branches I'd like to automatically switch to a pre-compiled .lib file so I don't waste time recompiling a branch which was already compiled.
May 27, 2011
On 27/05/2011 13:06, Andrej Mitrovic wrote:
> Guys, where did you get the unix cp port from? I don't have it installed, so I can't use "make install -fwin32.mak". I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with:
> 
> cp.exe: cannot create regular file `\dmd2\windows\lib': No such file or directory
> 
> Replacing cp with 'copy' doesn't work either, since copy uses a different syntax.
> 
> I'm not seeing a CP binary in any of the DigitalMars tools.

msys used to have one, haven't used it in a while.
May 28, 2011
Am 27.05.2011 14:06, schrieb Andrej Mitrovic:
> Guys, where did you get the unix cp port from? I don't have it installed, so I can't use "make install -fwin32.mak". I've also tried using the one that comes with UnxTools from http://sourceforge.net/projects/unxutils/ , but that one fails with:
>
> cp.exe: cannot create regular file `\dmd2\windows\lib':
> No such file or directory
>
> Replacing cp with 'copy' doesn't work either, since copy uses a different syntax.
>
> I'm not seeing a CP binary in any of the DigitalMars tools.


try this: (runs as a native win32 binary!!)
- http://www.file-upload.net/download-3463821/cp.zip.html


PS:
It's taken form the GnuWin project on sourceforge:
http://gnuwin32.sourceforge.net/

I couldn't find  a single download for cp, but since
I have installed the whole project I've extracted the necessary files and made an upload :)


°Matthias
May 28, 2011
On 5/28/11, Matthias Pleh <jens@konrad.net> wrote:
> PS:
> It's taken form the GnuWin project on sourceforge:
> http://gnuwin32.sourceforge.net/

That is weird, this is the first place I've looked for the CP command and it wasn't there. Thanks, I'll give that a try!
May 28, 2011
Well that doesn't work:

D:\DMD\dmd2\src\phobos>make install -fwin32.mak
cp phobos.lib \dmd2\windows\lib
C:\GnuWin32\bin\cp.exe: cannot create regular file
`\\dmd2\\windows\\lib': No such file or directory

Having DIR defined as:
DIR=\dmd2

as a directory doesn't make sense either. I have a feeling make install is either never used or whoever packs windows binaries (Walter?) calls it via cygwin or some other shell. Or there's a CP binary that I don't know about.

I'll just roll out a build script in D for myself so I can have some way of quickly building and switching between branches. I'll make it multithreaded to speed things up as well.