<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [bisected commit 883987] crosscompiling fails with util/u_cpu_detect.c:247:4: error: 'asm' undeclared (first use in this function)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=67921">67921</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>[bisected commit 883987] crosscompiling fails with util/u_cpu_detect.c:247:4: error: 'asm' undeclared (first use in this function)
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alexandre.f.demers@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Commit 883987503fc79691398eb024f37480ff083805a3 breaks crosscompilation when
building with the following:
baseExec="./autogen.sh --prefix=/usr \
        --enable-debug \
        --enable-osmesa \
        --enable-gbm \
        --enable-xvmc \
        --enable-vdpau \
        --enable-gles1 \
        --enable-gles2 \
        --enable-openvg \
        --enable-xorg \
        --enable-xa \
        --enable-egl \
        --enable-gallium-egl \
        --enable-glx-tls \
        --enable-texture-float \
        --enable-wgl \
        --with-gallium-drivers=r600,swrast,svga \
        --with-dri-drivers= \
        --with-egl-platforms=x11,drm,wayland"
    export CFLAGS='-m32'
    export CXXFLAGS='-m32'
    export LLVM_CONFIG='/usr/bin/llvm-config32'
    export PKG_CONFIG_PATH="/usr/lib/i386-linux-gnu/pkgconfig"
    Exec32="$baseExec --enable-32-bit --build=x86_64-pc-linux-gnu
--host=i686-pc-linux-gnu --libdir=/usr/lib/i386-linux-gnu
--includedir=/usr/include/i386-linux-gnu"
    $Exec32

---
It fails with:
  CC       util/u_cpu_detect.lo
util/u_cpu_detect.c: In function 'sse2_has_daz':
util/u_cpu_detect.c:247:4: error: 'asm' undeclared (first use in this function)
    asm volatile ("fxsave %0" :: "m" (fxarea));
    ^
util/u_cpu_detect.c:247:4: note: each undeclared identifier is reported only
once for each function it appears in
util/u_cpu_detect.c:247:8: error: expected ';' before 'volatile'
    asm volatile ("fxsave %0" :: "m" (fxarea));
        ^
make[3]: *** [util/u_cpu_detect.lo] Error 1

---
However, compiling normally for my 64bit architecture works fine.


Bad commit 883987503fc79691398eb024f37480ff083805a3
util: try much harder to set DAZ flag
Author
Roland Scheidegger<<a href="mailto:sroland@vmware.com">sroland@vmware.com</a>>
Author date
8/5/13 9:30 PM</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>