compilation fails with: glproc.hpp: No such file or directory
glproc.hpp
exists in subprojects/apitrace/dispatch
, so I suspect something funky is going on with meson and it setting -I
I can cd to the meson build dir and re-run the compilation command it fails on, and it succeeds.
❯ meson compile -C _build
ninja: entering directory '/home/clayton/src/frameretrace/_build'
[1/363] Linking static target src/gldispatch/libdispatch.a
[2/363] Compiling C++ object subprojects/apitrace/retrace/eglretrace.p/glws_egl_xlib.cpp.o
[3/363] Compiling C++ object subprojects/apitrace/retrace/eglretrace.p/glws_xlib.cpp.o
[4/363] Compiling C++ object subprojects/apitrace/retrace/libretrace_common.a.p/json.cpp.o
[5/363] Generating subprojects/apitrace/wrappers/egltrace.cpp with a custom command (wrapped by meson to capture output)
[6/363] Generating subprojects/apitrace/wrappers/glxtrace.cpp with a custom command (wrapped by meson to capture output)
[7/363] Compiling C++ object subprojects/apitrace/wrappers/libtrace_wrapper.a.p/memtrace.cpp.o
[8/363] Compiling C++ object subprojects/apitrace/wrappers/libtrace_wrapper.a.p/assert.cpp.o
[9/363] Generating subprojects/apitrace/dispatch/glproc with a custom command
[10/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_ostream_zlib.cpp.o
[11/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_ostream_snappy.cpp.o
[12/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_option.cpp.o
[13/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_profiler.cpp.o
[14/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_writer_model.cpp.o
[15/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_writer_local.cpp.o
[16/363] Compiling C++ object subprojects/apitrace/lib/trace/libtrace.a.p/trace_writer.cpp.o
ninja: job failed: ccache c++ -Isubprojects/apitrace/retrace/eglretrace.p -Isubprojects/apitrace/retrace -I../subprojects/apitrace/retrace -Isubprojects/apitrace/lib/highlight -I../subprojects/apitrace/lib/highlight -Isubprojects/apitrace/helpers -I../subprojects/apitrace/helpers -Isubprojects/apitrace/dispatch -I../subprojects/apitrace/dispatch -Isubprojects/apitrace/lib/image -I../subprojects/apitrace/lib/image -Isubprojects/apitrace/lib/trace -I../subprojects/apitrace/lib/trace -Isubprojects/apitrace/lib/os -I../subprojects/apitrace/lib/os -I../subprojects/apitrace/compat -Isubprojects/khronos -I../subprojects/khronos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g '-DAPITRACE_PYTHON_EXECUTABLE="python"' '-DAPITRACE_PROGRAMS_INSTALL_DIR="bin"' '-DAPITRACE_SCRIPTS_INSTALL_DIR="./scripts"' '-DAPITRACE_WRAPPERS_INSTALL_DIR="lib/apitrace/wrappers"' -DHAVE_X11 -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -Wno-sign-compare -fno-strict-aliasing -Wno-non-virtual-dtor -D_GNU_SOURCE -pthread -DRETRACE -MD -MQ subprojects/apitrace/retrace/eglretrace.p/glws_xlib.cpp.o -MF subprojects/apitrace/retrace/eglretrace.p/glws_xlib.cpp.o.d -o subprojects/apitrace/retrace/eglretrace.p/glws_xlib.cpp.o -c ../subprojects/apitrace/retrace/glws_xlib.cpp
../subprojects/apitrace/retrace/glws_xlib.cpp:32:10: fatal error: glproc.hpp: No such file or directory
32 | #include "glproc.hpp"
| ^~~~~~~~~~~~
compilation terminated.
ninja: job failed: ccache c++ -Isubprojects/apitrace/retrace/eglretrace.p -Isubprojects/apitrace/retrace -I../subprojects/apitrace/retrace -Isubprojects/apitrace/lib/highlight -I../subprojects/apitrace/lib/highlight -Isubprojects/apitrace/helpers -I../subprojects/apitrace/helpers -Isubprojects/apitrace/dispatch -I../subprojects/apitrace/dispatch -Isubprojects/apitrace/lib/image -I../subprojects/apitrace/lib/image -Isubprojects/apitrace/lib/trace -I../subprojects/apitrace/lib/trace -Isubprojects/apitrace/lib/os -I../subprojects/apitrace/lib/os -I../subprojects/apitrace/compat -Isubprojects/khronos -I../subprojects/khronos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -g '-DAPITRACE_PYTHON_EXECUTABLE="python"' '-DAPITRACE_PROGRAMS_INSTALL_DIR="bin"' '-DAPITRACE_SCRIPTS_INSTALL_DIR="./scripts"' '-DAPITRACE_WRAPPERS_INSTALL_DIR="lib/apitrace/wrappers"' -DHAVE_X11 -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -Wno-sign-compare -fno-strict-aliasing -Wno-non-virtual-dtor -D_GNU_SOURCE -pthread -DRETRACE -MD -MQ subprojects/apitrace/retrace/eglretrace.p/glws_egl_xlib.cpp.o -MF subprojects/apitrace/retrace/eglretrace.p/glws_egl_xlib.cpp.o.d -o subprojects/apitrace/retrace/eglretrace.p/glws_egl_xlib.cpp.o -c ../subprojects/apitrace/retrace/glws_egl_xlib.cpp
../subprojects/apitrace/retrace/glws_egl_xlib.cpp:34:10: fatal error: glproc.hpp: No such file or directory
34 | #include "glproc.hpp"
| ^~~~~~~~~~~~
compilation terminated.