[CMake] Why is obj.dir/depend.make.tmp not renamed to obj.dir/depend.make?

frodak frodak17 at gmail.com
Wed Nov 7 15:24:43 EST 2018


Did cmake finish to completion when generating the Makefiles?

On Wed, Nov 7, 2018 at 11:46 AM Steffen Dettmer <steffen.dettmer at gmail.com>
wrote:

> Hi,
>
> One (of really many) build trees contains a file "depend.make.tmp" and
> ignores dependencies leading to broken (incremental) builds. There
> also is a "depend.make" file in the same directory saying "Empty
> dependencies file. This may be replaced when dependencies are built.",
> so I assume the tmp file should be rename to it. The timestamp of the
> tmp file is newer. I like to understand the cause and how to solve it.
> I did not find any makefile rule that should do the rename.
>
> The problem became visible in form of a SIGSEGV of a test application.
> Analysing this down to the "depend.make.tmp" issue took quite a bit of
> time, so I like to understand the root cause and learn how to avoid
> it. Since only one build tree seems to be affected it seems to be a
> very rare issue, maybe a race condition or such.
>
> Any suggestions how I could analyse further?
>
> Steffen
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181107/1caca397/attachment.html>


More information about the CMake mailing list