<div dir="ltr">Hi everyone,<div><br></div><div>I&#39;ve been able to successfully compile the linux kernel with clang-3.5. In order to run some analysis, I&#39;ve been trying to generate the respective -bc files. Reading older mailing archive, I&#39;ve seen that it is not possible to do that just adding the -emit-llvm -c to the compilation flags. Due to this, I&#39;ve written a wrapper code that invokes the original clang-3.5 and later invokes clang-3.5 again with the emit-llvm -c flags for each file. I&#39;m calling make with the flags CC=clang-3.5 HOSTCC=clang-3.5, properly.</div><div><br></div><div>If my wrapper is called, I get an error, as if the command was generated for compilation with gcc (a few unrecognized flags). If I rename the wrapper to make sure that clang is called instead of it, the compilation occurs perfectly.</div><div><br></div><div>I&#39;m attacking a file with the output of a &#39;make CC=clang-3.5 HOSTCC=clang-3.5 V=1&#39;.</div><div><br></div><div>Thanks a lot and any hint regarding this would be very useful.</div><div><br></div><div>João.</div></div>