[CMake] fatal error with Cmake 3.2.2 running on NFS system, resolved if --debug-trycompile is given

Mark Lakata mlakata at pacificbiosciences.com
Tue May 26 14:23:59 EDT 2015


If I run cmake 3.2.2 normally, I get errors like this:

  CMake Error: Remove failed on file: /home/UNIXHOME/mlakata/p4/acq/Sequel/basewriter/build/x86_64/Debug/CMakeFiles/CMakeTmp/.nfs000000000786c4ec0000398c: System Error: No such file or directory

If it was just a warning, I would ignore it, but it is a fatal error that causes cmake to not finish generating the Makefiles.

If I run 'cmake --debug-trycompile ...' , the errors go away.  Or, if I rerun 'cmake .' the problem does not occur again (I assume due to cached results).

It appears that the try_compile stage is trying to delete temporary files but failing at it due to a timing issue.

I'm running on CentOS7. I haven't seen this problem before when I was running cmake 2.8.11. I used the 'cmake-3.2.2-Linux-x86_64.tar.gz' download and copied it to /opt as my test installation.

-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150526/776be78a/attachment.html>


More information about the CMake mailing list