<div dir="ltr"><div>I almost forgot about this issue!  Your libGL is the result of conflicting options for competing Xlib GLX implementations.  I actually fixed this in upstream and configure options for glx are a bit more sane now in the upcoming 12.0 release.  Basically try some different configure options followed by a bit of surgery after the installation (note that these are the configure options we use with Mesa):<br><br><span style="font-family:monospace,monospace">./configure \<br>  --enable-opengl --disable-gles1 --disable-gles2           \<br>  --disable-va --disable-gbm --disable-xvmc --disable-vdpau \<br>  --enable-shared-glapi                                     \<br>  --disable-texture-float                                   \<br>  --disable-dri --with-dri-drivers=                         \<br>  --enable-gallium-llvm --disable-llvm-shared-libs          \<br>  --with-gallium-drivers=swrast                             \<br>  --disable-egl --disable-gbm --with-egl-platforms=         \<br>  --disable-gallium-osmesa --enable-glx --enable-xlib-glx   \<br></span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">  --with-llvm-prefix=${BASELIBS_PREFIX}/llvm-3.8</span>            \</span><br><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">  --prefix=${BASELIBS_PREFIX}/mesa-11.2-glx<br><br></span></span></div><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">make -jwhatever install<br><br></span></span><div>What you'll end up with in the install directory is a bit of a mess though.  If you look in there, you'll see both libGL.so.1.5.0 and libGL.so.1.6.0 with associated symlinks mixed for both.  Delete the libGL.so.1 symlink and the libGL.so.1.6.0 library and then re-create the symlink for libGL.so.1 -> libGL.so.1.5.0.  The resulting install tree after all this should give you a working libGL.so that correctly sees llvmpipe.  All this is fixed in upstream now, see:<br><br><a href="https://bugs.freedesktop.org/show_bug.cgi?id=94086">https://bugs.freedesktop.org/show_bug.cgi?id=94086</a><br></div><div>and<br><a href="https://cgit.freedesktop.org/mesa/mesa/commit/?id=a92910ae37878b441ecb1c488f0a40d80a48f6fe">https://cgit.freedesktop.org/mesa/mesa/commit/?id=a92910ae37878b441ecb1c488f0a40d80a48f6fe</a><br><br></div><div>12.0 you can just give --enable-glx and the correct backend will be chosen but for the current release you still have to get your hands a bit dirty.<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Chuck<br></div></div></div>
<br><div class="gmail_quote">On Wed, Jun 29, 2016 at 12:41 PM, Edson Contreras Cárdenas <span dir="ltr"><<a href="mailto:edrecon@gmail.com" target="_blank">edrecon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Chuck, thanks for your quick response. I'm sending you the output of configure and glxinfo. And yes, it is similiar.<br><br><span style="font-family:monospace,monospace">BASELIBS_PREFIX="/remote/sharedLibs"<br></span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">PKG_CONFIG_PATH=${BASELIBS_PREFIX}/libxcb/lib/pkgconfig:${BASELIBS_PREFIX}/libdrm/lib/pkgconfig:${BASELIBS_PREFIX}/libxshmfence/lib/pkgconfig:${BASELIBS_PREFIX}/libva/lib/pkgconfig</span><br><br>[edsonc@mesa-tests]:/remote/sharedLibsSrc/mesa11.2-build>../mesa-11.2.2/configure \<br>    --prefix=${BASELIBS_PREFIX}/mesa-11.2-glx \<br>    --with-llvm-prefix=${BASELIBS_PREFIX}/llvm-3.8 \<span class=""><br>    --with-gnu-ld \<br>    --enable-gallium-llvm=yes \<br>    --enable-sysfs \<br>    --enable-xlib-glx \<br>    --enable-glx \<br>    --enable-texture-float \<br>    --disable-dri \<br>    --disable-dri3 \<br>    --disable-egl \<br></span>    --disable-llvm-shared-libs \<br>    --with-gallium-drivers="swrast"<br><br></span></div><span style="font-family:arial,helvetica,sans-serif">Output is:</span><span style="font-family:monospace,monospace"><br><br>        prefix:          /remote/sharedLibs/mesa-11.2-glx<span class=""><br>        exec_prefix:     ${prefix}<br>        libdir:          ${exec_prefix}/lib<br>        includedir:      ${prefix}/include<br><br>        OpenGL:          yes (ES1: yes ES2: yes)<br><br>        OSMesa:          no<br><br>        GLX:             Xlib-based<br><br>        EGL:             no<br><br>        llvm:            yes<br></span>        llvm-config:     /remote/sharedLibs/llvm-3.8/bin/llvm-config<span class=""><br>        llvm-version:    3.8.0<br><br>        Gallium drivers: swrast<br>        Gallium st:      mesa<br><br>        Shader cache:    yes<br></span>        With SHA1 from:  libgcrypt<span class=""><br><br>        Shared libs:     yes<br>        Static libs:     no<br>        Shared-glapi:    yes<br><br>        CFLAGS:          -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp<br>        CXXFLAGS:        -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp<br></span>        Macros:          -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DHAVE_SHA1 -DHAVE_SYSFS -DUSE_XSHM -DMESA_EGL_NO_X11_HEADERS -DHAVE_LLVM=0x0308 -DMESA_LLVM_VERSION_PATCH=0<br><br>        LLVM_CFLAGS:     -I/remote/sharedLibs/llvm-3.8/include  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>        LLVM_CXXFLAGS:   -I/remote/sharedLibs/llvm-3.8/include    -W -Wno-unused-parameter -Wwrite-strings  -Wno-missing-field-initializers  -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -std=c++11   -fno-rtti  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>        LLVM_CPPFLAGS:   -I/remote/sharedLibs/llvm-3.8/include  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>        LLVM_LDFLAGS:    -L/remote/sharedLibs/llvm-3.8/lib <br><span class=""><br>        PYTHON2:         python2<br><br>        Run 'make' to build Mesa<br><br></span></span></div><span style="font-family:arial,helvetica,sans-serif">Then</span>, after a 'gmake -j20' and a 'gmake install' the output of the glxinfo is:<br><br></div><span style="font-family:monospace,monospace">[edsonc@mesa-tests]:~>setenv LD_LIBRARY_PATH /remote/sharedLibs/mesa-11.2.2-glx/lib:$LD_LIBRARY_PATH<br></span><br><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">[edsonc@mesa-tests]:~></span>ldd /usr/bin/glxinfo<br>    linux-vdso.so.1 =>  (0x00007fffc5bff000)<br>    libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00002ad1e0157000)<br>    libGL.so.1 => /remote/sharedLibs/mesa-11.2.2-glx/lib/libGL.so.1 (0x00002ad1e03d7000)<br>    libm.so.6 => /lib64/libm.so.6 (0x00002ad1e0a4f000)<br>    libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002ad1e0cd3000)<br>    libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002ad1e1011000)<br>    libc.so.6 => /lib64/libc.so.6 (0x00002ad1e1223000)<br>    libstdc++.so.6 => /remote/baseLibs/libstdc++.so.6 (0x00002ad1e15b7000)<br>    libgcc_s.so.1 => /remote/baseLibs/libgcc_s.so.1 (0x00002ad1e1932000)<br>    libgcrypt.so.11 => /lib64/libgcrypt.so.11 (0x00002ad1e1b48000)<br>    libglapi.so.0 => /remote/sharedLibs/mesa-11.2-glx/lib/libglapi.so.0 (0x00002ad1e1dbe000)<br>    libxcb.so.1 => /remote/sharedLibs/libxcb/lib/libxcb.so.1 (0x00002ad1e2024000)<br>    libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002ad1e2249000)<br>    libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002ad1e244d000)<br>    libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ad1e2652000)<br>    libdl.so.2 => /lib64/libdl.so.2 (0x00002ad1e286f000)<br>    /lib64/ld-linux-x86-64.so.2 (0x00002ad1dff35000)<br>    libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00002ad1e2a74000)<br><br>[edsonc@mesa-tests]:~>glxinfo | grep -i "opengl"<br></span><div><div><span style="font-family:monospace,monospace">OpenGL vendor string: Brian Paul<br>OpenGL renderer string: Mesa X11<br>OpenGL version string: 2.1 Mesa 11.2.2 (git-)<br>OpenGL shading language version string: 1.20<br>OpenGL extensions:<br><br></span></div><div><span style="font-family:monospace,monospace">And that's it :-).<br><br></span></div><div><span style="font-family:monospace,monospace">[Note: It's great having support from kitware, because my intention is to have vtk-7.0 running with OpenGL2. Currently I've managed to build it in a RHEL7.1 image only because there I build mesa using scons and the libudev is high enough. For the time being I have 2 binaries: 1 with OpenGL1 in RHEL6.6 and other with OpenGL2 in RHEL7.1. The idea is just to have one with OpenGL2]<br><br></span></div><div><span style="font-family:monospace,monospace">Thanks!<br><br></span></div><div><span style="font-family:monospace,monospace">Regards,<br></span></div><div><span style="font-family:monospace,monospace">Edson <br></span></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-06-29 11:50 GMT-04:00 Chuck Atkins <span dir="ltr"><<a href="mailto:chuck.atkins@kitware.com" target="_blank">chuck.atkins@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>What's the output of your configure look like?  Using almost the same configuration on CentOS 6.7 with GCC 5.2 from the SCL, except all system dev-packages instead my own versions (sans llvm of course) I get the following output:<br><br><span style="font-family:monospace,monospace">[chuck@wopr mesa-11.2.2]$ ./configure --with-llvm-prefix=${HOME}/Code/LLVM/llvm-3.8.0.inst --with-gnu-ld --enable-gallium-llvm=yes --enable-sysfs --enable-xlib-glx --enable-glx --enable-texture-float --disable-dri --disable-dri3 --disable-egl --disable-llvm-shared-libs --with-gallium-drivers=swrast<br>...<br>config.status: executing libtool commands<br><br>        prefix:          /usr/local<br>        exec_prefix:     ${prefix}<br>        libdir:          ${exec_prefix}/lib<br>        includedir:      ${prefix}/include<br><br>        OpenGL:          yes (ES1: yes ES2: yes)<br><br>        OSMesa:          no<br><br>        GLX:             Xlib-based<br><br>        EGL:             no<br><br>        llvm:            yes<br>        llvm-config:     /home/chuck/Code/LLVM/llvm-3.8.0.inst/bin/llvm-config<br>        llvm-version:    3.8.0<br><br>        Gallium drivers: swrast<br>        Gallium st:      mesa<br><br>        Shader cache:    yes<br>        With SHA1 from:  libcrypto<br><br>        Shared libs:     yes<br>        Static libs:     no<br>        Shared-glapi:    yes<br><br>        CFLAGS:          -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp<br>        CXXFLAGS:        -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp<br>        Macros:          -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_SHA1 -DHAVE_SYSFS -DUSE_XSHM -DMESA_EGL_NO_X11_HEADERS -DHAVE_LLVM=0x0308 -DMESA_LLVM_VERSION_PATCH=0<br><br>        LLVM_CFLAGS:     -I/home/chuck/Code/LLVM/llvm-3.8.0.inst/include  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>        LLVM_CXXFLAGS:   -I/home/chuck/Code/LLVM/llvm-3.8.0.inst/include    -W -Wno-unused-parameter -Wwrite-strings  -Wno-missing-field-initializers  -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -std=c++11       -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>        LLVM_CPPFLAGS:   -I/home/chuck/Code/LLVM/llvm-3.8.0.inst/include  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS<br>        LLVM_LDFLAGS:    -L/home/chuck/Code/LLVM/llvm-3.8.0.inst/lib <br><br>        PYTHON2:         python2<br><br>        Run 'make' to build Mesa<br><br>[chuck@wopr mesa-11.2.2]$</span><br><br></div>Your resulting configure output should be similar.<br></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr">- Chuck<br></div></div></div>
<br><div class="gmail_quote"><div><div>On Wed, Jun 29, 2016 at 8:01 AM, Edson Contreras Cárdenas <span dir="ltr"><<a href="mailto:edrecon@gmail.com" target="_blank">edrecon@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><p dir="ltr">Hello everyone,</p>
<p dir="ltr">Sorry for bothering you all, but I cannot get the gallium llvmpipe driver working, and I need some help.</p>
<p dir="ltr">My environment is:<br>
RHEL6.6<br>
gcc-5.2 (system)<br>
libudev < 151 (system, I cannot upgrade kernel)</p>
<p dir="ltr">llvm-3.8 (from source)<br>
libva-1.7.1 (from source)<br>
libxshmfence-latest (from source)<br>
libxcb-latest (from source)<br>
libdrm-latest (from source)</p>
<p dir="ltr">I have all my libs installed in a non-standard path:</p>
<p dir="ltr">MYLIBS_PREFIX=/remote/sharedLibs</p>
<p dir="ltr">And my configure script looks like:</p>
<p dir="ltr">../mesa-11.2.2/configure \<br>
  PKG_CONFIG_PATH=${MYLIBS_PREFIX}/libxcb/lib/pkgconfig:${MYLIBS_PREFIX}/libdrm/lib/pkgconfig:${MYLIBS_PREFIX}/libxshmfence/lib/pkgconfig:${MYLIBS_PREFIX}/libva/lib/pkgconfig \<br>
  —prefix=${MYLIBS_PREFIX}/mesa-11.2-llvmpipe \<br>
  —with-llvm-prefix=${MYLIBS_PREFIX}/llvm-3.8 \<br>
  —with-gnu-ld \<br>
  —enable-gallium-llvm=yes \<br>
  —enable-sysfs \<br>
  —enable-xlib-glx \<br>
  —enable-glx \<br>
  —enable-texture-float \<br>
  —disable-dri \<br>
  —disable-dri3 \<br>
  —disable-egl \<br>
  —disable-llvm-shared-libs \<br>
  —with-gallium-drivers=swrast</p>
<p dir="ltr">The thing is that I have a valid libGL.so after building, 
but doesn't have support for OpenGL 3.2. In addition to that, if I run 
"glxinfo | grep OpenGL" it does not mention Gallium llvmpipe driver 
anywhere (however it does mention mesa 11.2) and glxgears runs smoothly.</p>
<p dir="ltr">Finally, if I try 'scons', it fails due to lack of udev >= 151.</p>
<p dir="ltr">Could you please help me to provide to scons the flag 
--enable-sysfs, or, help me to configure 'configure flags' in order to 
have llvmpipe driver running?</p>
Thank you very much in advance.<br clear="all"><br></div>Regards,<br></div>Edson<br></div>
<br></div></div>_______________________________________________<br>
mesa-users mailing list<br>
<a href="mailto:mesa-users@lists.freedesktop.org" target="_blank">mesa-users@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-users" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Atte.<br>
Edson René Contreras Cárdenas<br>
Ingeniero Civil Electrónico<br></div>
TCAD R&D Software Engineer II<br></div>Synopsys Chile<br></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>