Since recent mesa git changes I am getting this compile error:
../../../../../src/mesa/libdricore/../main/api_arrayelt.c:45:27: fatal error: main/dispatch.h: No such file or directory
make: *** [api_arrayelt.lo] Error 1
make: Leaving directory `/build/buildd/mesa-8.1~git1206020839.775ba1~gd~p/build/dri/src/mesa/libdricore'
Full log here:
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:
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:
(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
Is having both a problem? Or just using $(builddir) [not top]?
I don't think this is still relevant. Please reopen if it is.
on Feb 22, 2017 at 10:45:22.
(provided by the Example extension).