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

From: Sam Ravnborg
Date: Wed May 18 2005 - 13:24:24 EST


On Tue, May 17, 2005 at 05:39:26PM -0500, Timur Tabi wrote:
> Timur Tabi wrote:
>
> >make -C /lib/modules/2.6.8-24-smp/source
> >SUBDIRS=/root/AMSO1100/software/host/linux/sys/devccil C=1 V=2
>
> When I replace V=2 with V=1 (don't know how that happened), I get this
> output:
>
> sparse -D__i386__=1
> -Wp,-MD,/root/AMSO1100/software/host/linux/sys/devccil/.devnet.o.d
> -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall

Newer kbuild's do not use the -nostdinc -iwithprefix include trick.
Instead they use -nostdinc -isystem `gcc --print-file-name=include`

Wich is a more reliable way to find stdarg.h. Newer sparse understands
this too.

Please post make V=1 output with a newer kernel.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/