Bug 87657 - dri_interface.h:51:17: error: drm.h: No such file or directory
Summary: dri_interface.h:51:17: error: drm.h: No such file or directory
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: mesa-dev
QA Contact:
Keywords: bisected, regression
Depends on:
Reported: 2014-12-23 23:57 UTC by Vinson Lee
Modified: 2014-12-25 15:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

EGL fix v2 (1.07 KB, text/plain)
2014-12-24 04:31 UTC, Alexander von Gluck

Description Vinson Lee 2014-12-23 23:57:21 UTC
mesa: 402c80837258d0fd2eb5c25f2b2096ae692cda48 (master 10.5.0-devel)

Build error on Ubuntu 10.04.

$ scons llvm=0
  Compiling src/egl/drivers/dri2/egl_dri2.c ...
In file included from src/egl/drivers/dri2/egl_dri2.c:43:
include/GL/internal/dri_interface.h:51:17: error: drm.h: No such file or directory

400b833592d9aad7b2c4627a897380642d52189f is the first bad commit
commit 400b833592d9aad7b2c4627a897380642d52189f
Author: Alexander von Gluck IV <kallisti5@unixzen.com>
Date:   Mon Dec 22 10:10:13 2014 -0500

    egl: Add Haiku code and support
    * This is the cleaned up work of the Haiku GCI student
      Adrián Arroyo Calle adrian.arroyocalle@gmail.com
    * Several patches were consolidated to prevent
      unnecessary touching of non-related code

:040000 040000 9671e824b72a606d39d6531ae4bc70af7fb54839 09260382434931b1e02e554dbd4f0bc195458170 M	include
:040000 040000 ca81602bbc8b7cbf231eead74f769d001ba9446c 019fd0d0af7bf6df97ed3111d886545fe40c0895 M	src
bisect run success
Comment 1 Alexander von Gluck 2014-12-24 00:33:03 UTC
I'm looking into this one in addition to #87654.

SCons build was / is testing fine on Arch Linux.
Comment 2 Alexander von Gluck 2014-12-24 04:31:01 UTC
Created attachment 111258 [details]
EGL fix v2

I finally think I see what happened.  The GCI student attempted to get the final libEGL.so from src/egl/ vs src/gallium/targets/static-egl.

Once I reverted that small change (leaving the rest of the dri2 egl driver changes in tact) things seem to be working with a basic egl/demo1.c test.

Please confirm on Ubuntu 10.04.  I'll have an Ubuntu 10.04 VM up tomorrow morning US time if no-one tests the patch before then.
Comment 3 Alexander von Gluck 2014-12-25 15:36:20 UTC
This was tested working under 10.04 using the fixes contained in 890ef622d63cb1caa3f84dd04dc2442324e2b0f2.

Let me know if any additional problems are seen.


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.