igt-gpu-tools-git fails to build on Arch Linux
Seems to be due to the ../lib/iga64_macros.h
, which builds fine with normal instructions in README and when using a patch if switched to just lib/iga64_macros.h
.
Apologies if that's a bad fix, but thought the awareness might help!
Error block:
[39/1908] Generating lib/iga64_generated_codes.c with a custom command
FAILED: lib/iga64_generated_codes.c
/home/trianta/.cache/yay/igt-gpu-tools-git/src/igt-gpu-tools/scripts/generate_iga64_codes -o lib/iga64_generated_codes.c -i ../igt-gpu-tools/lib/iga64_generated_codes.c lib/libigt-gpgpu_fill_c.a lib/libigt-gpgpu_shader_c.a
Generating new lib/iga64_generated_codes.c
Generating iga64_code_gpgpu_fill for platform 2
<command-line>: fatal error: ../lib/iga64_macros.h: No such file or directory
compilation terminated.
DIE: cpp error for iga64_assembly_gpgpu_fill.2
cmd: cpp -P - -o lib/iga64_generated_codes.c.d/iga64_assembly_gpgpu_fill.2.asm -DGEN_VER=2000 -D'ARG(n)=(0 + (n))' -imacros ../lib/iga64_macros.h
<command-line>: fatal error: ../lib/iga64_macros.h: No such file or directory
compilation terminated.
DIE: cpp error for iga64_assembly_gpgpu_fill.2
cmd: cpp -P - -o lib/iga64_generated_codes.c.d/iga64_assembly_gpgpu_fill.2.asm -DGEN_VER=2000 -D'ARG(n)=(0xc0ded000 + (n))' -imacros ../lib/iga64_macros.h
[51/1908] Compiling C object lib/libigt-i915_intel_decode_c.a.p/i915_intel_decode.c.o
../igt-gpu-tools/lib/i915/intel_decode.c: In function ‘decode_3d_1d’:
../igt-gpu-tools/lib/i915/intel_decode.c:2016:50: warning: ‘%03d’ directive writing between 3 and 10 bytes into a region of size 8 [-Wformat-overflow=]
2016 | sprintf(instr_prefix, "PS%03d", instr);
| ^~~~
../igt-gpu-tools/lib/i915/intel_decode.c:2016:47: note: directive argument in the range [0, 1431655764]
2016 | sprintf(instr_prefix, "PS%03d", instr);
| ^~~~~~~~
../igt-gpu-tools/lib/i915/intel_decode.c:2016:25: note: ‘sprintf’ output between 6 and 13 bytes into a destination of size 10
2016 | sprintf(instr_prefix, "PS%03d", instr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[52/1908] Generating lib/i915-perf-equations with a custom command
ninja: build stopped: subcommand failed.