<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - 12.0.0-rc3: mesa_dri_drivers.so linking fails with: relocation R_X86_64_32S against `V4F_COUNT' can not be used when making a shared object"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96550">96550</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>12.0.0-rc3: mesa_dri_drivers.so linking fails with: relocation R_X86_64_32S against `V4F_COUNT' can not be used when making a shared object
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>warpme@o2.pl
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm trying to build 12.0.0-rc3 in cross-compile environment.
Build fails at mesa_dri_drivers.so linking with following error:

libtool: link: x86_64-minimyth-linux-gnu-g++  -fPIC -DPIC -shared -nostdlib
/home/piotro/minimyth-dev/images/main/usr/lib/crti.o
/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/crtbeginS.o
 -Wl,--whole-archive ../../.libs/libmesa.a common/.libs/libmegadriver_stub.a
common/.libs/libdricommon.a common/.libs/libxmlconfig.a
i915/.libs/libi915_dri.a i965/.libs/libi965_dri.a r200/.libs/libr200_dri.a
radeon/.libs/libradeon_dri.a swrast/.libs/libswrast_dri.a
-Wl,--no-whole-archive  -lgcrypt -ldrm_intel -ldrm_radeon -ldrm -lexpat
-lpthread -ldl
-L/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0
-L/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/../../../../x86_64-minimyth-linux-gnu/lib
-L/home/piotro/minimyth-dev/images/main/lib
-L/home/piotro/minimyth-dev/images/main/usr/lib -lstdc++ -lm -lc -lgcc_s
/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/crtendS.o
/home/piotro/minimyth-dev/images/main/usr/lib/crtn.o  -flto -march=x86-64
-mtune=generic -O3 -mfpmath=sse -flto -m64 -Wl,-Bsymbolic -Wl,--gc-sections
-Wl,--as-needed -flto -march=x86-64 -mtune=generic -O3 -mfpmath=sse -flto -m64 
 -Wl,-soname -Wl,mesa_dri_drivers.so -o .libs/mesa_dri_drivers.so

/home/piotro/minimyth-dev/images/build/usr/lib/gcc/x86_64-minimyth-linux-gnu/5.3.0/../../../../x86_64-minimyth-linux-gnu/bin/ld:
../../.libs/libmesa.a(xform4.o): relocation R_X86_64_32S against `V4F_COUNT'
can not be used when making a shared object; recompile with -fPIC
../../.libs/libmesa.a(xform4.o): error adding symbols: Bad value
collect2: error: ld returned 1 exit status


11.2.2 builds perfectly in the same environment.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>