[Intel-gfx] xf86-video-intel (git-13461a1): BROKEN with clang-3.2 due to __cpuid() not available?
Chris Wilson
chris at chris-wilson.co.uk
Tue Feb 26 14:33:39 CET 2013
On Tue, Feb 26, 2013 at 02:20:26PM +0100, Sedat Dilek wrote:
> On Tue, Feb 26, 2013 at 1:58 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > On Tue, Feb 26, 2013 at 01:35:51PM +0100, Sedat Dilek wrote:
> >> With xf86-video-intel-git13461a1 [1] I see this:
> >>
> >> [ build-log ]
> >> ...
> >> CC sna_cpu.lo
> >> 8 warnings generated.
> >> CC sna_damage.lo
> >> CC sna_display.lo
> >> sna_cpu.c:47:2: error: implicit declaration of function '__cpuid' is
> >> invalid in C99 [-Werror,-Wimplicit-function-declaration]
> >> __cpuid(1, eax, ebx, ecx, edx);
> >> ^
> > [snip]
> >
> >> So, clang should be treated differently?
> >
> > It doesn't use cpuid.h unless the compiler claims to be gcc >= 4. It
> > would appear once again that clang is broken.
>
> Can you explain why clang is BROKEN in your eyes?
Because it claims to be gcc 4, yet fails to provide a function/macro
provided by gcc 4.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list