Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638465

Re: sparse on scripts/kconfig/*.c

From Randy Dunlap <rdunlap@infradead.org>
Newsgroups linux.kernel
Subject Re: sparse on scripts/kconfig/*.c
Date 2017-05-10 02:30 +0200
Message-ID <tFnFU-MR-5@gated-at.bofh.it> (permalink)
References <tFguJ-4li-3@gated-at.bofh.it> <tFjLX-6Gn-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/09/17 13:17, Christoph Hellwig wrote:
> On Tue, May 09, 2017 at 09:47:41AM -0700, Randy Dunlap wrote:
>> Hi,
>>
>> I've been attempting to run sparse on the kconfig/ C files -- without success.
>>
>> The kbuild files don't try to support CHECK in scripts/kconfig/ AFAICT,
>> and just running sparse on the C files has issues with not being able to
>> find header files.
>>
>> Has anyone done this?  Any clues about how to do it?
> 
> As a wild guess from using sparse on various userspace projects:
> 
> have you tried simply setting HOSTCC to cgcc?

I don't quite see what that has to do with running sparse ($CHECK, not $HOSTCC).

Anyway, I tried it and got the same message:

nconf.h:19:11: error: unable to open 'menu.h'


thanks.
-- 
~Randy

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

sparse on scripts/kconfig/*.c Randy Dunlap <rdunlap@infradead.org> - 2017-05-09 18:50 +0200
  Re: sparse on scripts/kconfig/*.c Christoph Hellwig <hch@infradead.org> - 2017-05-09 22:20 +0200
    Re: sparse on scripts/kconfig/*.c Randy Dunlap <rdunlap@infradead.org> - 2017-05-10 02:30 +0200
      Re: sparse on scripts/kconfig/*.c Christoph Hellwig <hch@infradead.org> - 2017-05-10 09:30 +0200
        Re: sparse on scripts/kconfig/*.c Randy Dunlap <rdunlap@infradead.org> - 2017-05-10 18:50 +0200
  Re: sparse on scripts/kconfig/*.c Dan Carpenter <dan.carpenter@oracle.com> - 2017-05-10 12:20 +0200
    Re: sparse on scripts/kconfig/*.c Dan Carpenter <dan.carpenter@oracle.com> - 2017-05-10 23:00 +0200

csiph-web