[Mesa-dev] Mesa CVS: compilation fails in u_cpu_detect.c

Roland Scheidegger sroland at vmware.com
Thu Aug 8 16:24:18 PDT 2013


Am 09.08.2013 01:05, schrieb Dieter Nützel:
> After git pull 8. Aug 19:18 compilation fails in
> src/gallium/auxiliary/util/u_cpu_detect.c
> 
> gmake[3]: Entering directory `/opt/mesa/src/gallium/auxiliary'
>   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)
> 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'
> gmake[3]: *** [util/u_cpu_detect.lo] Fehler 1
> gmake[3]: Leaving directory `/opt/mesa/src/gallium/auxiliary'
> gmake[2]: *** [all-recursive] Fehler 1
> gmake[2]: Leaving directory `/opt/mesa/src/gallium/auxiliary'
> gmake[1]: *** [all-recursive] Fehler 1
> gmake[1]: Leaving directory `/opt/mesa/src'
> make: *** [all-recursive] Fehler 1
> 2.482u 0.628s 0:05.66 54.7%     0+0k 0+16io 0pf+0w
> 
> ./configure --prefix=/usr --with-dri-drivers= --with-gallium-drivers=r600
> --enable-vdpau --enable-texture-float --enable-r600-llvm-compiler
> 
> This helps:
> 
> --- src/gallium/auxiliary/util/u_cpu_detect.c.orig      2013-08-08
> 19:18:16.113550440 +0200
> +++ src/gallium/auxiliary/util/u_cpu_detect.c   2013-08-09
> 00:08:20.681470540 +0200
> @@ -244,7 +244,7 @@
> 
>     fxarea.mxcsr_mask = 0;
>  #if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
> -   asm volatile ("fxsave %0" :: "m" (fxarea));
> +   __asm __volatile ("fxsave %0" :: "m" (fxarea));
>  #elif (defined(PIPE_CC_MSVC) || defined(PIPE_CC_ICL))
>     _fxsave(&fxarea);
>  #endif
> 
> Regards,
>   Dieter

Fixed thanks!

Roland


More information about the mesa-dev mailing list