Re: sparse error: unable to open 'stdarg.h'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is missing the gcc default include path.

Check your pre-processor.h in sparse to see that match your gcc
include path or not.

If not, remove pre-processor.h and recompile sparse should solve
the problem.

Chris

On Tue, May 17, 2005 at 04:46:04PM -0500, Timur Tabi wrote:
> I'm trying to run sparse on my external module, but sparse complains about 
> not being able to find stdarg.h.  I know this bug was supposed to have been 
> fixed back in January, but I'm using the latest code, so I can't explain 
> what's wrong.  I've tried this on a couple different 2.6 kernels.
> 
> Here's the output I get:
> 
> make -C /lib/modules/2.6.8-24-smp/source 
> SUBDIRS=/root/AMSO1100/software/host/linux/sys/devccil  C=1 V=2
> make[2]: Entering directory `/usr/src/linux-2.6.8-24'
>   CHECK   /root/AMSO1100/software/host/linux/sys/devccil/devnet.c
> include/linux/kernel.h:10:11: error: unable to open 'stdarg.h'
> make[3]: *** [/root/AMSO1100/software/host/linux/sys/devccil/devnet.o] 
> Error 1
> make[2]: *** [_module_/root/AMSO1100/software/host/linux/sys/devccil] Error 
> 2
> make[2]: Leaving directory `/usr/src/linux-2.6.8-24'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/AMSO1100/software/host/linux/sys/devccil'
> make: *** [build] Error 2
> 
> -- 
> Timur Tabi
> Staff Software Engineer
> [email protected]
> 
> One thing a Southern boy will never say is,
> "I don't think duct tape will fix it."
>      -- Ed Smylie, NASA engineer for Apollo 13
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux