[23.3.0] Parallel build failure - fatal error: vtn_generator_ids.h: No such file or directory
System information
- OS: Ubuntu 22.04.3 LTS
- GPU: N/A
- Kernel version: Linux 6.2.0-1018-azure x86_64 GNU/Linux
- Mesa version: 23.3.0
- Xserver version (if applicable): (
sudo X -version
) - Desktop manager and compositor:
Describe the issue
I am trying to update to mesa 23.3.0
in Homebrew (https://github.com/Homebrew/homebrew-core/pull/156864) and the Linux CI ended up failing to build with:
../src/compiler/spirv/vtn_private.h:34:10: fatal error: vtn_generator_ids.h: No such file or directory
The failure happened in multiple runs but not all. I haven't reproduced it locally in Docker container so cannot test main
branch.
It looks like a parallel build issue given the header generation happens after the error. CI logs: https://github.com/Homebrew/homebrew-core/actions/runs/7155180424/job/19483540400#step:4:722
Shortened snippet showing out-of-order header generation and missing header error:
[350/2739] gcc-11 -Isrc/compiler/spirv/spirv2nir.p ... -c ../src/compiler/spirv/spirv2nir.c
FAILED: src/compiler/spirv/spirv2nir.p/spirv2nir.c.o
gcc-11 -Isrc/compiler/spirv/spirv2nir.p ... -c ../src/compiler/spirv/spirv2nir.c
In file included from ../src/compiler/spirv/spirv2nir.c:34:
../src/compiler/spirv/vtn_private.h:34:10: fatal error: vtn_generator_ids.h: No such file or directory
34 | #include "vtn_generator_ids.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
...
[355/2739] /home/linuxbrew/.linuxbrew/opt/python@3.12/libexec/bin/python3 ../src/compiler/spirv/vtn_generator_ids_h.py ../src/compiler/spirv/spir-v.xml src/compiler/spirv/vtn_generator_ids.h
ninja: build stopped: subcommand failed.
Regression
Current mesa
version in Homebrew is 22.3.6 and we didn't see this at least up to that version.
May be related to refactoring in 23.2 (e.g. 59a72570) but not too sure as Homebrew wasn't able to run any in-between versions due to macOS build breakages.