[Mesa-dev] [Bug 94394] Compile Mesa , specific compilation , /usr/bin/ld: cannot find -ldrm

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 4 20:03:04 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94394

            Bug ID: 94394
           Summary: Compile Mesa , specific compilation , /usr/bin/ld:
                    cannot find -ldrm
           Product: Mesa
           Version: 11.2
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: swojskichlopak at wp.pl
        QA Contact: mesa-dev at lists.freedesktop.org

Hi! On 64 bit system I have only 64 bit packages,
    but I have Steam, part wine in 32bit and needs 32 bit driver,
    Problem is with Mesa, my linux distribution
    not provide Mesa 32bit package for 64 bit system,
    I tried add 32 bit repository, but it want all 32 bit dependencies.

AMD ATI driver (example)
$ locate fglrx_dri.so
/usr/lib/dri/fglrx_dri.so
/usr/lib64/dri/fglrx_dri.so


Nvidia driver (example)
$ locate libnvidia-glcore.so.352.63
/usr/lib/nvidia-current/libnvidia-glcore.so.352.63
/usr/lib64/nvidia-current/libnvidia-glcore.so.352.63

Mesa (example)
$ locate swrast_dri.so
/usr/lib64/dri/kms_swrast_dri.so
/usr/lib64/dri/swrast_dri.so

I created "wish" Steam 64 bit, but what do with games 32bit,
and 32bit apps from wine ?

So I need 32 bit drivers,
 - How compile Mesa ? 
 - I need install all 32 bit dependencies before compile on 64 bit system ?

Default compilation working without errors,
 but I have only 64 bit drivers.

I tried compile for 32 bit like this

#=========================================
./configure CC="gcc -m32" CXX="g++ -m32" --build=x86_64-pc-linux-gnu
--host=i686-pc-linux-gnu --disable-static

http://wklejto.pl/249041
#=========================================

make
#============================
$ make
Making all in src
make[1]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src'
Making all in .
make[2]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src'
make[2]: Nie ma nic do zrobienia w 'all-am'.
make[2]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src'
Making all in gtest
make[2]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/gtest'
make[2]: Nie ma nic do zrobienia w 'all'.
make[2]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/gtest'
Making all in util
make[2]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/util'
make  all-recursive
make[3]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/util'
Making all in .
make[4]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/util'
make[4]: Nie ma nic do zrobienia w 'all-am'.
make[4]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/util'
Making all in tests/hash_table
make[4]: Entering directory
'/home/gg/Downloads/Down1/mesa-11.1.2/src/util/tests/hash_table'
make[4]: Nie ma nic do zrobienia w 'all'.
make[4]: Leaving directory
'/home/gg/Downloads/Down1/mesa-11.1.2/src/util/tests/hash_table'
make[3]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/util'
make[2]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/util'
Making all in mapi/glapi/gen
make[2]: Entering directory
'/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi/glapi/gen'
make  all-am
make[3]: Entering directory
'/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi/glapi/gen'
make[3]: Nie ma nic do zrobienia w 'all-am'.
make[3]: Leaving directory
'/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi/glapi/gen'
make[2]: Leaving directory
'/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi/glapi/gen'
Making all in mapi
make[2]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi'
make  all-recursive
make[3]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi'
make[4]: Entering directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi'
  CCLD     es1api/libGLESv1_CM.la
/usr/bin/ld: skipping incompatible /usr/lib64/libdrm.so when searching for
-ldrm
/usr/bin/ld: cannot find -ldrm
collect2: error: ld returned 1 exit status
Makefile:1187: commands for your object 'es1api/libGLESv1_CM.la' failed
make[4]: *** [es1api/libGLESv1_CM.la] Error 1
make[4]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi'
Makefile:1637: commands for your object 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi'
Makefile:1102: commands for your object 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src/mapi'
Makefile:685: commands for your object 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/gg/Downloads/Down1/mesa-11.1.2/src'
Makefile:630: commands for your object 'all-recursive' failed
make: *** [all-recursive] Error 1
#============================

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160304/e6355b36/attachment-0001.html>


More information about the mesa-dev mailing list