<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear Mesa users and developpers,<br>
    <br>
    could you provide me advices on the usefull option to build Mesa
    17.0.4 for an AMD FirePro W7000 GPU ? <br>
    <br>
    I need to install paraview 5.4 and the RHEL6 version of Mesa is tool
    old. I've tryed an update from elrepo but it breaks an important
    proprietary application. I've tryed to install AMD provided
    software&drivers but the yum command crashes the server and did
    not success. I've compiled Mesa 17.0.4 and its prerequisites (see
    below), installed it in the Paraview tree, but some rendering fails
    with paraview (glyphs). I've checked with strace it was loading the
    right library. <br>
    I use paraview 5.4 on an other workstation (with nvidia software) or
    cluster node (with osmesa) and glyphs work fine so it looks like a
    rendering problem with my mesa setup for this GPU.<br>
    <br>
    Thanks for your advices<br>
    <br>
    Patrick<br>
    <br>
    My Mesa <font size="+1"><tt>17.0.4 build procedure:</tt></font><br>
    <br>
    <font size="+1"><tt>module load OpenMPI-173-GCC485</tt><tt><br>
      </tt><tt>module load python279</tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfJ llvm-4.0.0.src.tar.xz</tt><tt><br>
      </tt><tt>cd llvm-4.0.0.src</tt><tt><br>
      </tt><tt>mkdir build</tt><tt><br>
      </tt><tt>cd build</tt><tt><br>
      </tt><tt>CC=/opt/openmpi173-GCC485/bin/mpicc \</tt><tt><br>
      </tt><tt>CXX=/opt/openmpi173-GCC485/bin/mpic++ \</tt><tt><br>
      </tt><tt>FC=/opt/openmpi173-GCC485/bin/mpif90 \</tt><tt><br>
      </tt><tt>cmake -DCMAKE_BUILD_TYPE=Release \</tt><tt><br>
      </tt><tt> -DCMAKE_INSTALL_PREFIX=/opt/paraview-5.4.0 \</tt><tt><br>
      </tt><tt> -DLLVM_BUILD_LLVM_DYLIB=ON \</tt><tt><br>
      </tt><tt> -DLLVM_INSTALL_UTILS=ON \</tt><tt><br>
      </tt><tt> -DLLVM_ENABLE_RTTI=ON \</tt><tt><br>
      </tt><tt> -DLLVM_INSTALL_UTILS=ON \</tt><tt><br>
      </tt><tt> ..</tt><tt><br>
      </tt><tt>make -j 2</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ../..</tt><tt><br>
      </tt><tt>rm -rf llvm-4.0.0.src</tt><tt><br>
      </tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz libdrm-2.4.70.tar.gz  ou libdrm-2.4.80.tar.gz ?</tt><tt><br>
      </tt><tt>cd libdrm-2.4.70</tt><tt><br>
      </tt><tt>./configure --prefix=/opt/paraview-5.4.0 </tt><tt><br>
      </tt><tt>make</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf libdrm-2.4.70</tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz xcb-proto-1.12.tar.gz</tt><tt><br>
      </tt><tt>cd xcb-proto-1.12</tt><tt><br>
      </tt><tt>./configure --prefix=/opt/paraview-5.4.0</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf xcb-proto-1.12</tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz pthread-stubs-0.3.tar.gz</tt><tt><br>
      </tt><tt>cd pthread-stubs-0.3</tt><tt><br>
      </tt><tt>./autogen.sh</tt><tt><br>
      </tt><tt>./configure --prefix=/opt/paraview-5.4.0</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf pthread-stubs-0.3</tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz libXau-1.0.8.tar.gz</tt><tt><br>
      </tt><tt>cd libXau-1.0.8</tt><tt><br>
      </tt><tt>./configure --prefix=/opt/paraview-5.4.0</tt><tt><br>
      </tt><tt>make</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf libXau-1.0.8</tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz libxcb-1.12.tar.gz</tt><tt><br>
      </tt><tt>cd libxcb-1.12</tt><tt><br>
      </tt><tt>PKG_CONFIG_PATH=/opt/paraview-5.4.0/lib/pkgconfig \</tt><tt><br>
      </tt><tt>./configure --prefix=/opt/paraview-5.4.0</tt><tt><br>
      </tt><tt>make</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf libxcb-1.12</tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz libxshmfence-1.2.tar.gz</tt><tt><br>
      </tt><tt>cd libxshmfence-1.2</tt><tt><br>
      </tt><tt>PKG_CONFIG_PATH=/opt/paraview-5.4.0/lib/pkgconfig \</tt><tt><br>
      </tt><tt>./configure --prefix=/opt/paraview-5.4.0</tt><tt><br>
      </tt><tt>make</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf libxshmfence-1.2</tt><tt><br>
      </tt><tt><br>
      </tt><tt><br>
      </tt><tt>tar xvfz mesa-17.0.4.tar.gz</tt><tt><br>
      </tt><tt>cd mesa-17.0.4</tt><tt><br>
      </tt><tt>export
        LD_LIBRARY_PATH=/opt/paraview-5.4.0/lib:$LD_LIBRARY_PATH</tt><tt><br>
      </tt><tt>export PATH=/opt/paraview-5.4.0/bin:$PATH</tt><tt><br>
      </tt><tt>./configure \</tt><tt><br>
      </tt><tt>PKG_CONFIG_PATH=/opt/paraview-5.4.0/lib/pkgconfig \</tt><tt><br>
      </tt><tt>LIBUDEV_CFLAGS=-I/usr/include \</tt><tt><br>
      </tt><tt>LIBUDEV_LIBS=/usr/lib64/libudev.so \</tt><tt><br>
      </tt><tt>--prefix=/opt/paraview-5.4.0 \</tt><tt><br>
      </tt><tt>--enable-texture-float \</tt><tt><br>
      </tt><tt>--with-llvm-prefix=/opt/paraview-5.4.0 </tt><tt><br>
      </tt><tt>make -j 4</tt><tt><br>
      </tt><tt>make install</tt><tt><br>
      </tt><tt>cd ..</tt><tt><br>
      </tt><tt>rm -rf mesa-17.0.4</tt><tt><br>
      </tt></font><br>
    <pre class="moz-signature" cols="80">-- 
===================================================================
|  Equipe M.O.S.T.         |                                      |
|  Patrick BEGOU           | <a class="moz-txt-link-freetext" href="mailto:Patrick.Begou@grenoble-inp.fr">mailto:Patrick.Begou@grenoble-inp.fr</a> |
|  LEGI                    |                                      |
|  BP 53 X                 | Tel 04 76 82 51 35                   |
|  38041 GRENOBLE CEDEX    | Fax 04 76 82 52 71                   |
===================================================================
</pre>
  </body>
</html>