[cfe-dev] Compiling Linux kernel with Clang

Sean Silva silvas at purdue.edu
Mon Sep 17 21:09:10 PDT 2012


http://llvm.linuxfoundation.org/index.php/Main_Page
http://llvm.org/bugs/show_bug.cgi?id=4068

--Sean Silva

On Mon, Sep 17, 2012 at 11:16 PM, Anatol Pomozov
<anatol.pomozov at gmail.com> wrote:
> Hi,
>
> I am trying to compile linux kernel HEAD with clang HEAD and I have
> compilation errors that you can see below. But I've heard that someone
> works on clang+kernel integration. Could anyone point me to project
> page where I can find more information about its status, patches for
> linux kernel etc...
>
>
> =====ERROR=====
> In file included from kernel/bounds.c:9:
> In file included from include/linux/page-flags.h:9:
> In file included from include/linux/bug.h:4:
> In file included from linux/arch/x86/include/asm/bug.h:38:
> In file included from include/asm-generic/bug.h:13:
> In file included from include/linux/kernel.h:19:
> In file included from include/linux/bitops.h:22:
> linux/arch/x86/include/asm/bitops.h:423:23: error: unsupported inline
> asm: input with type 'long' matching output with type 'int'
>             : "rm" (x), "0" (tmp));
>                              ^~~
> linux/arch/x86/include/asm/bitops.h:465:23: error: unsupported inline
> asm: input with type 'long' matching output with type 'int'
>             : "rm" (x), "0" (tmp));
>                              ^~~
> 1 warning and 2 errors generated.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list