On 2022-01-28 08:29, Neil Mayhew wrote:
It looks like geocoding_data.cc is truncated and my working hypothesis is that it's still in the process of being generated, which in turn is due to race condition in the parallel build. This could explain why it built successfully on some architectures and not others.

I'm able to reproduce the build failure in a non-Debian build on my local machine with -j16. I can confirm that this is due to a race condition in the build. The generated source file is created three times in parallel by different make threads, and one of those threads tries to compile it while another thread is in the middle of rewriting it.

Based on some info in the cmake documentation[1] I think this is a bug in the way the build is defined:

> Do not list the output in more than one independent target that may build in parallel or the two instances of the rule may conflict

[1]: https://cmake.org/cmake/help/latest/command/add_custom_command.html

I'll work with upstream to get this fixed. In the meantime, I'm confident that using parallel=1 in the Debian build is the right solution for the package.

Thanks very much for working to get this release packaged.

Reply via email to