<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Yes, I&#39;ve applied all kernel-patches from <a href="http://buildbot.llvm.linuxfoundation.org/configs/x86_64/kernel-patches.tar.bz2">http://buildbot.llvm.linuxfoundation.org/configs/x86_64/kernel-patches.tar.bz2</a> with &#39;bzcat ../kernel-patches.tar.bz2 | patch -p1&#39;:<br><br><div style="margin-left:40px">kernel/linux-3.17.4$ grep -i clang Makefile <br>ifeq ($(shell $(HOSTCC) -v 2&gt;&amp;1 | grep -c &quot;clang version&quot;), 1)<br>ifeq ($(shell $(CC) -v 2&gt;&amp;1 | grep -c &quot;clang version&quot;), 1)<br>COMPILER := clang<br>ifeq ($(COMPILER),clang)<br>CLANG_TARGET    := -target $(notdir $(CROSS_COMPILE:%-=%))<br>CLANG_GCC_TC    := -gcc-toolchain $(GCC_TOOLCHAIN)<br>CLANG_IA_FLAG    = -no-integrated-as<br>CLANG_FLAGS    := $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_IA_FLAG)<br>ifeq ($(COMPILER),clang)<br></div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">My relevant environment variables:<br><br><div style="margin-left:40px">LDFLAGS=-Wl,--as-needed -Wl,-s -Wl,-S -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common<br>MAKEFLAGS=-s<br>CPPFLAGS=-m64 -fPIC -pipe -march=native -mtune=native -Ofast -fomit-frame-pointer -fivopts -w -fno-math-errno<br>CXXFLAGS=-m64 -fPIC -pipe -march=native -mtune=native -Ofast -fomit-frame-pointer -fivopts -w -fno-math-errno<br>CPP=clang-3.6 -E<br>PATH=/home/simon/bin:usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:~/bin<br>HOSTCC=clang-3.6<br>LANG=es_ES.UTF-8<br>CONCURRENCY_LEVEL=9<br>CXX=clang++-3.6<br>CFLAGS=-m64 -fPIC -pipe -march=native -mtune=native -Ofast -fomit-frame-pointer -fivopts -w -fno-math-errno<br>CC=clang-3.6<br></div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">The errors are:<br><div style="margin-left:40px">In file included from /home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs_64.c:17:<br>/home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:969:6: warning: variable &#39;do_reloc&#39; is used uninitialized<br>      whenever &#39;if&#39; condition is false [-Wsometimes-uninitialized]<br>        if (!use_real_mode)<br>            ^~~~~~~~~~~~~~<br>/home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:981:14: note: uninitialized use occurs here<br>        walk_relocs(do_reloc);<br>                    ^~~~~~~~<br>/home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:969:2: note: remove the &#39;if&#39; if its condition is always<br>      true<br>        if (!use_real_mode)<br>        ^~~~~~~~~~~~~~~~~~~<br>/home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:966:24: note: initialize the variable &#39;do_reloc&#39; to<br>      silence this warning<br>                        const char *symname);<br>                                            ^<br>                                             = NULL<br>1 warning generated.<br>/home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:18:2: error: unexpected token at start of statement<br>        DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);<br>        ^<br>/home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note: expanded from macro &#39;DEFINE&#39;<br>        asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>                        ^<br>&lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>@-&gt;NR_PAGEFLAGS $25 __NR_PAGEFLAGS<br> ^<br>/home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:19:2: error: unexpected token at start of statement<br>        DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);<br>        ^<br>/home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note: expanded from macro &#39;DEFINE&#39;<br>        asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>                        ^<br>&lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>@-&gt;MAX_NR_ZONES $4 __MAX_NR_ZONES<br> ^<br>/home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:21:2: error: unexpected token at start of statement<br>        DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));<br>        ^<br>/home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note: expanded from macro &#39;DEFINE&#39;<br>        asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>                        ^<br>&lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>@-&gt;NR_CPUS_BITS $8 ilog2(CONFIG_NR_CPUS)<br> ^<br>/home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:23:2: error: unexpected token at start of statement<br>        DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t));<br>        ^<br>/home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note: expanded from macro &#39;DEFINE&#39;<br>        asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>                        ^<br>&lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>@-&gt;SPINLOCK_SIZE $4 sizeof(spinlock_t)<br> ^<br>4 errors generated.<br>make[4]: *** [kernel/bounds.s] Error 1<br>make[3]: *** [prepare0] Error 2<br>make[2]: *** [sub-make] Error 2<br>make[1]: *** [prepare] Error 2<br>make: *** [/home/simon/fuentes/kernel/linux-3.17.4/debian/stamps/stamp-prepare-tree-i7] Error 2<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-26 16:23 GMT+01:00 Vinícius Tinti <span dir="ltr">&lt;<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Nov 26, 2014 at 1:18 PM, Jan-Simon Moeller &lt;<a href="mailto:dl9pf@gmx.de">dl9pf@gmx.de</a>&gt; wrote:<br>
&gt; What version of clang do you use ?<br>
&gt;<br>
&gt; Am Mittwoch, 26. November 2014, 16:18:14 schrieb Juan Simón:<br>
&gt;&gt; Thanks.<br>
&gt;&gt; I have saved the &#39;makefile&#39;, I&#39;ve disabled &quot;AppArmor&quot; and I have compiled<br>
&gt;&gt; again but it fails:<br>
&gt;&gt; In file included from<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs_64.c:17:<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:969:6:<br>
&gt;&gt; warning: variable &#39;do_reloc&#39; is used uninitialized whenever &#39;if&#39; condition<br>
&gt;&gt; is false<br>
&gt;&gt;       [-Wsometimes-uninitialized]<br>
&gt;&gt;         if (!use_real_mode)<br>
&gt;&gt;             ^~~~~~~~~~~~~~<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:981:14:<br>
&gt;&gt; note: uninitialized use occurs here<br>
&gt;&gt;         walk_relocs(do_reloc);<br>
&gt;&gt;                     ^~~~~~~~<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:969:2:<br>
&gt;&gt; note: remove the &#39;if&#39; if its condition is always true<br>
&gt;&gt;         if (!use_real_mode)<br>
&gt;&gt;         ^~~~~~~~~~~~~~~~~~~<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/arch/x86/tools/relocs.c:966:24:<br>
&gt;&gt; note: initialize the variable &#39;do_reloc&#39; to silence this warning<br>
&gt;&gt;                         const char *symname);<br>
&gt;&gt;                                             ^<br>
&gt;&gt;                                              = NULL<br>
&gt;&gt; 1 warning generated.<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:18:2: error:<br>
&gt;&gt; unexpected token at start of statement<br>
&gt;&gt;         DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);<br>
&gt;&gt;         ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note:<br>
&gt;&gt; expanded from macro &#39;DEFINE&#39;<br>
&gt;&gt;         asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>
&gt;&gt;                         ^<br>
&gt;&gt; &lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>
&gt;&gt; @-&gt;NR_PAGEFLAGS $25 __NR_PAGEFLAGS<br>
&gt;&gt;  ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:19:2: error:<br>
&gt;&gt; unexpected token at start of statement<br>
&gt;&gt;         DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);<br>
&gt;&gt;         ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note:<br>
&gt;&gt; expanded from macro &#39;DEFINE&#39;<br>
&gt;&gt;         asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>
&gt;&gt;                         ^<br>
&gt;&gt; &lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>
&gt;&gt; @-&gt;MAX_NR_ZONES $4 __MAX_NR_ZONES<br>
&gt;&gt;  ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:21:2: error:<br>
&gt;&gt; unexpected token at start of statement<br>
&gt;&gt;         DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));<br>
&gt;&gt;         ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note:<br>
&gt;&gt; expanded from macro &#39;DEFINE&#39;<br>
&gt;&gt;         asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>
&gt;&gt;                         ^<br>
&gt;&gt; &lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>
&gt;&gt; @-&gt;NR_CPUS_BITS $8 ilog2(CONFIG_NR_CPUS)<br>
&gt;&gt;  ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/kernel/bounds.c:23:2: error:<br>
&gt;&gt; unexpected token at start of statement<br>
&gt;&gt;         DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t));<br>
&gt;&gt;         ^<br>
&gt;&gt; /home/simon/fuentes/kernel/linux-3.17.4/include/linux/kbuild.h:5:18: note:<br>
&gt;&gt; expanded from macro &#39;DEFINE&#39;<br>
&gt;&gt;         asm volatile(&quot;\n@-&gt;&quot; #sym &quot; %0 &quot; #val : : &quot;i&quot; (val))<br>
&gt;&gt;                         ^<br>
&gt;&gt; &lt;inline asm&gt;:2:2: note: instantiated into assembly here<br>
&gt;&gt; @-&gt;SPINLOCK_SIZE $4 sizeof(spinlock_t)<br>
&gt;&gt;  ^<br>
&gt;&gt; 4 errors generated.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m compiling the 3.17.4 version.<br>
&gt;&gt;<br>
&gt;&gt; 2014-11-26 16:06 GMT+01:00 Jan-Simon Moeller &lt;<a href="mailto:dl9pf@gmx.de">dl9pf@gmx.de</a>&gt;:<br>
&gt;&gt; &gt; See this page:<br>
&gt;&gt; &gt; <a href="http://llvm.linuxfoundation.org/index.php/Broken_kernel_options" target="_blank">http://llvm.linuxfoundation.org/index.php/Broken_kernel_options</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; and i attached a fixed &quot;makefile&quot;. forgot an argument.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Best,<br>
&gt;&gt; &gt; JS<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Am Mittwoch, 26. November 2014, 16:04:00 schrieb Jan-Simon Moeller:<br>
&gt;&gt; &gt; &gt; This is a known issue, disable apparmor.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; The construct used (shash structure layout) - we call it VLAIS (variable<br>
&gt;&gt; &gt; &gt; length array in struct) is not supported and the driver needs to be<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; changed.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; Patches welcome.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; Best,<br>
&gt;&gt; &gt; &gt; JS<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; Am Mittwoch, 26. November 2014, 15:57:54 schrieb Juan Simón:<br>
&gt;&gt; &gt; &gt; &gt; It doesn&#39;t compile:<br>
&gt;&gt; &gt; /home/simon/fuentes/kernel/linux-3.17.4/security/apparmor/crypto.c:35:2:<br>
&gt;&gt; &gt; &gt; &gt; error: implicit declaration of function &#39;SHASH_DESC_ON_STACK&#39;<br>
&gt;&gt; &gt; &gt; &gt; [-Werror=implicit-function-declaration]<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt;   SHASH_DESC_ON_STACK(shash, apparmor_tfm);<br>
&gt;&gt; &gt; &gt; &gt;   ^<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; /home/simon/fuentes/kernel/linux-3.17.4/security/apparmor/crypto.c:35:22:<br>
&gt;&gt; &gt; &gt; &gt; error: &#39;shash&#39; undeclared (first use in this function)<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt;   SHASH_DESC_ON_STACK(shash, apparmor_tfm);<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt;                       ^<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; Is this a known bug? I haven&#39;t found it in bug tracker.<br>
&gt;&gt; &gt; &gt; &gt; I&#39;ve tested it with clang-3.5 and clang-3.6. Same error.<br>
&gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; 2014-11-26 13:12 GMT+01:00 Jan-Simon Moeller &lt;<a href="mailto:dl9pf@gmx.de">dl9pf@gmx.de</a>&gt;:<br>
&gt;&gt; &gt; &gt; &gt; &gt; Am Mittwoch, 26. November 2014, 12:53:17 schrieb Juan Simón:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi,<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; I&#39;ve followed the instructions on main page to compile the kernel<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; with<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; clang on Ubuntu 14.04 64 bits:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    1. Get the latest SVN version of clang (version 3.5 from PPA)<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    2. Get the kernel pacthed from &quot;git clone<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    git://<a href="http://git.linuxfoundation.org/llvmlinux/kernel.git" target="_blank">git.linuxfoundation.org/llvmlinux/kernel.git</a>&quot;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    3. Execute: &quot;export HOSTCC=clang CC=clang&quot;<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; Exporting it in your shell environment might not end up in the build<br>
&gt;&gt; &gt; &gt; &gt; &gt; process<br>
&gt;&gt; &gt; &gt; &gt; &gt; with dpkg rules. Export it in the rules file maybe ?<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; or create a &quot;makefile&quot; (little m !!!) in the toplevel kernel-dir<br>
&gt;&gt; &gt; &gt; &gt; &gt; with<br>
&gt;&gt; &gt; &gt; &gt; &gt; this<br>
&gt;&gt; &gt; &gt; &gt; &gt; content:<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; #<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; CC              := clang<br>
&gt;&gt; &gt; &gt; &gt; &gt; CPP             := $(CC) -E<br>
&gt;&gt; &gt; &gt; &gt; &gt; HOSTCC          := clang<br>
&gt;&gt; &gt; &gt; &gt; &gt; lm = $(MAKE) -f Makefile O=&quot;$(1)&quot; CPP=&quot;$(CPP)&quot; CC=&quot;$(CC)&quot;<br>
&gt;&gt; &gt; &gt; &gt; &gt; HOSTCC=&quot;$(HOSTCC)&quot;<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; %:<br>
&gt;&gt; &gt; &gt; &gt; &gt;         @$(call lm,$(O),$@)<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; all:<br>
&gt;&gt; &gt; &gt; &gt; &gt;         @$(call lm,$(O),$@)<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; #<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    4. From here I compile the kernel at Ubuntu way to obtain DEB<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; packages:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       1. I patched the kernel with the patches in<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc6-vivid/" target="_blank">http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc6-vivid/</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       2. cp /boot/config-`uname -r`<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       debian.master/config/amd64/config.flavour.i7<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       3. fakeroot debian/rules clean<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       4. debian/rules editconfigs<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       5. fakeroot debian/rules clean<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;       6. fakeroot debian/rules binary-headers binary-i7<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; binary-arch-headers<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; I install the generated deb packages without problems.<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; This i7 flavour it has:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; CONFIG_MCORE2=y<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it&#39;s patched with:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; -cflags-$(CONFIG_MCORE2)        += -march=i686 $(call tune,core2)<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; +cflags-$(CONFIG_MCORE2)        += -march=native $(call<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; tune,native)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; My doubts are:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    1. Is this kernel really compiled with clang? The compilation<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    process<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    shows in console a lot of warnings typical of clang but when I<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    execute<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; &quot;cat /proc/version&quot;, after reboot with the new kernel version, it<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; shows:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; &quot;Linux version 3.18.0-031800rc6-i7 (root@X58A-UD5) (gcc version<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 4.8.2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; (Ubuntu 4.8.2-19ubuntu1) )&quot;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    2. What&#39;s the kernel version in<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    git://<a href="http://git.linuxfoundation.org/llvmlinux/kernel.git" target="_blank">git.linuxfoundation.org/llvmlinux/kernel.git</a>? In<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; LLVMLinux<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    main<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    page &lt;<a href="http://llvm.linuxfoundation.org/index.php/Main_Page" target="_blank">http://llvm.linuxfoundation.org/index.php/Main_Page</a>&gt; it<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; says:<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    &quot;Alternatively you can use the LLVMLinux kernel tree (recent<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;    mainline<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; with latest LLVMLinux patches applied)&quot; but when I execute<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; &quot;debian/rules<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; editconfigs&quot; it shows 3.17.0 in top of console and the git page<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; shows<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; &lt;<a href="http://git.linuxfoundation.org/llvmlinux/kernel.git/" target="_blank">http://git.linuxfoundation.org/llvmlinux/kernel.git/</a>&gt; that the<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; last<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; change<br>
&gt;&gt; &gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; &gt; &gt; &gt; was at 15 Oct 2014.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; &gt; LLVMLinux mailing list<br>
&gt;&gt; &gt; &gt; <a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
&gt;&gt; &gt; &gt; <a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; LLVMLinux mailing list<br>
&gt;&gt; &gt; <a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
&gt;&gt; &gt; <a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; LLVMLinux mailing list<br>
&gt; <a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
&gt; <a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br>
<br>
</div></div>Have you applied the disable-clang-integrated-as.patch?<br>
<a href="http://git.linuxfoundation.org/?p=llvmlinux.git;a=blob;f=arch/all/patches/disable-clang-integrated-as.patch;h=4bde9a683525ce5c0aee0f46164d3028a167b445;hb=HEAD" target="_blank">http://git.linuxfoundation.org/?p=llvmlinux.git;a=blob;f=arch/all/patches/disable-clang-integrated-as.patch;h=4bde9a683525ce5c0aee0f46164d3028a167b445;hb=HEAD</a><br>
<br>
This output happens if you try to build the kernel with clang only<br>
(you still need gcc for the assembly part).<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Simplicity is the ultimate sophistication<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a></div></div></blockquote></div><br></div>