Summary: | [compile error] ../../../../../src/mesa/libdricore/../main/api_arrayelt.c:45:27: fatal error: main/dispatch.h: No such file or directory | ||
---|---|---|---|
Product: | Mesa | Reporter: | Fabio Pedretti <pedretti.fabio> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | high | CC: | sarvatt, svenjoac, vmerlet |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Fabio Pedretti
2012-06-02 00:20:14 UTC
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. How we collect and use information is described in our Privacy Policy.