[CMake] 'cmake -E copy_directory' fails

Eric Noulard eric.noulard at gmail.com
Fri Sep 25 15:06:50 EDT 2009


2009/9/25 Kelly (KT) Thompson <kt at transpireinc.com>:
> Hi,
>
> I am having intermittent trouble executing
>
> $ cmake -E copy_directory /full/path/to/large/directory /new/path
>
> Originally, the copy_directory was failing deep in my build system
> (add_custom_command), but the failure is repeatable from the command line
> (exactly as shown above).  The failure message is always the same:
>
> $ Error copying directory from "/full/path/to/large/directory" to
> "/new/path".
>
> Does anyone have any thoughts on how to determine the actual cause of the
> failure.

May be you can try to strace the execution in order to see where it fails?

Or may be re-ccompile a debug version of CMake and run your
failing example inside a debugger.


> I can execute 'cp -r' reliably without error. I am not sure if
> this is a failure in CMake or a system problem.  The directory in question
> has about 7000 files in it with a total size of about 75 MB.  The copy is
> going over an NFS mapped drive.

I've just tried with a directory with 1400+ files containing something
like 900Mo
of data without an error. It was on a local disk though.

> I'm using RHEL4 (Nahant Update 8) 64-bit and cmake version 2.6-patch 4.

Debian Lenny 64bits and cmake version 2.6-patch 4.


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list