[llvmlinux] scan-build/ccc-analyzer broken?

Jason A. Donenfeld Jason at zx2c4.com
Mon Nov 2 00:42:15 UTC 2015


Hi Behan,

Any update on this?

Thanks,
Jason

On Thu, Oct 8, 2015 at 10:53 AM, Behan Webster
<behanw at converseincode.com> wrote:
> Known issue. Sadly scan-build makes assumptions about scanning user space code, so it messes with compiler options. I have a horrible hack which I wrote to get it working for plumbers conference. I still need to fix scan-build. :(
>
> I'm traveling now, so I'll post it when I can.
>
> Behan
>
> Sent from my Mobile Computer which is also a phone
>
>> On Oct 8, 2015, at 4:45 AM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
>>
>> Hi folks,
>>
>> Running "make kernel-scan-build" results in some nasty errors --
>> missing includes like stdarg.h or asm/linkage.h, invalid typedefs with
>> __kernel_size_t, etc. It seems like it's not finding the right include
>> directory. I've seen various mailing list posts from a long time ago
>> advocating the use of -isystem, but this doesn't work.
>>
>> What's the status with scan-build? Is there a way to get it working?
>>
>> My goal is to scan a out-of-tree module I'm developing, before
>> submitting it upstream for in-tree inclusion.
>>
>> Thanks,
>> Jason
>> _______________________________________________
>> LLVMLinux mailing list
>> LLVMLinux at lists.linuxfoundation.org
>> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux


More information about the LLVMLinux mailing list