Bug 45920 - Exception: Attempt to use unavailable module DRM:
Summary: Exception: Attempt to use unavailable module DRM:
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-11 01:23 UTC by Vinson Lee
Modified: 2013-01-22 01:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2012-02-11 01:23:47 UTC
mesa: d5a6c172547d8964f4d4bb79637651decaf9deee (master)

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.3 LTS
Release:	10.04
Codename:	lucid

$ scons -h
scons: Reading SConscript files ...
scons: Found LLVM version 2.7
Checking for X11 (x11 xext xdamage xfixes)... yes
Checking for XCB (x11-xcb xcb-glx)... yes
Checking for XF86VIDMODE (xxf86vm)... yes
Checking for DRM (libdrm >= 2.4.24)... no
Checking for DRM_INTEL (libdrm_intel >= 2.4.30)... no
Checking for DRM_RADEON (libdrm_radeon >= 2.4.31)... no
Checking for XORG (xorg-server >= 1.6.0)... yes
Checking for KMS (libkms >= 2.4.24)... no
Checking for UDEV (libudev > 150)... yes
Exception: Attempt to use unavailable module DRM:
  File "/home/vlee/mesa/SConstruct", line 144:
    duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 616:
    return apply(method, args, kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 553:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 262:
    exec _file_ in call_stack[-1].globals
  File "/home/vlee/mesa/src/SConscript", line 26:
    SConscript('glx/SConscript')
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 616:
    return apply(method, args, kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 553:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 262:
    exec _file_ in call_stack[-1].globals
  File "/home/vlee/mesa/src/glx/SConscript", line 28:
    env.PkgUseModules('DRM')
  File "/usr/lib/scons/SCons/Environment.py", line 221:
    return apply(self.method, nargs, kwargs)
  File "/home/vlee/mesa/scons/custom.py", line 217:
    raise Exception('Attempt to use unavailable module %s' % name)

2470e918cc29e5d057a28551ce9c15e7d83fab7e is the first bad commit
commit 2470e918cc29e5d057a28551ce9c15e7d83fab7e
Author: José Fonseca <jfonseca@vmware.com>
Date:   Tue Feb 7 11:17:35 2012 +0000

    scons: Require same pkg-config versions as configure.
Comment 1 Vinson Lee 2012-02-25 14:36:41 UTC
Ping.
Comment 2 Chad Versace 2012-02-27 09:23:46 UTC
I have two questions:

1. Does installing the latest drm from git://anongit.freedesktop.org/mesa/drm.git fix the issue? The latest tagged version is 2.4.31.

2. Did you intend to build the Intel and Radeon drivers? If not, then the their drm dependencies should not be required by Scons.
Comment 3 Vinson Lee 2012-03-03 12:47:14 UTC
(In reply to comment #2)
> I have two questions:
> 
> 1. Does installing the latest drm from
> git://anongit.freedesktop.org/mesa/drm.git fix the issue? The latest tagged
> version is 2.4.31.

I did not try, but the SCons build is okay with Ubuntu 11.10 and Ubuntu 12.04.

Ubuntu 11.10 - libdrm 2.4.26
Ubuntu 12.04 - libdrm 2.4.30

> 
> 2. Did you intend to build the Intel and Radeon drivers? If not, then the their
> drm dependencies should not be required by Scons.

No.
Comment 4 Vinson Lee 2013-01-22 01:51:37 UTC
mesa: 3a91e7955ace2885cfb23089852018a8037ca134 (master)

SCons build is okay now on Ubuntu 10.04.4 LTS.


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.