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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Steffen Dettmer
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
Reply | Threaded
Open this post in threaded view
|

Re: Why is obj.dir/depend.make.tmp not renamed to obj.dir/depend.make?

frodak
Did cmake finish to completion when generating the Makefiles?

On Wed, Nov 7, 2018 at 11:46 AM Steffen Dettmer <[hidden email]> 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

--

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