Since recent mesa git changes I am getting this compile error: CC api_arrayelt.lo ../../../../../src/mesa/libdricore/../main/api_arrayelt.c:45:27: fatal error: main/dispatch.h: No such file or directory compilation terminated. make[4]: *** [api_arrayelt.lo] Error 1 make[4]: Leaving directory `/build/buildd/mesa-8.1~git1206020839.775ba1~gd~p/build/dri/src/mesa/libdricore' Full log here: https://launchpadlibrarian.net/106661991/buildlog_ubuntu-precise-i386.mesa_8.1~git1206020839.775ba1~gd~p_FAILEDTOBUILD.txt.gz
It seems dependencies for parallel build in makefiles may not be set correctly, one can see that dispatch.h gets generated only a bit after build of libdricore needing it fails.
I tried doing a non parallel build but I get the same error: https://launchpadlibrarian.net/106916928/buildlog_ubuntu-precise-i386.mesa_8.1~git1206051530.555e00~gd~p_FAILEDTOBUILD.txt.gz
The problem looks like include path brokenness. Generated source is put in the build tree, but it's looked for in the source tree. I managed to get a build done by copying the following from build to source: src/glsl/builtin_function.cpp src/mapi/glapi/glapitable.h src/mesa/main/api_exec_es1_dispatc.h src/mesa/main/api_exec_es1_dispatch.h src/mesa/main/api_exec_es1_remap_helper.h src/mesa/main/api_exec_es2_dispatch.h src/mesa/main/api_exec_es2_remap_helper.h src/mesa/main/dispatch.h src/mesa/main/enums.c src/mesa/main/remap_helper.h src/mesa/x86-64/matypes.h src/mesa/x86/matypes.h
(In reply to comment #3) > The problem looks like include path brokenness. Generated source is put in the > build tree, but it's looked for in the source tree. Correct; this is an out-of-tree build issue. Sadly, the naive solution of changing those references to be relative to $(top_builddir) rather than $(srcdir) runs into problems in src/mesa/Makefile; possibly the best way to fix this is to continue the automakification to src/mesa.
(In reply to comment #4) > Sadly, the naive solution of changing those references to be relative to > $(top_builddir) rather than $(srcdir) runs into problems in src/mesa/Makefile; > possibly the best way to fix this is to continue the automakification to > src/mesa. Is having both a problem? Or just using $(builddir) [not top]?
I don't think this is still relevant. Please reopen if it is.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.