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

Bug#304993: when compiling kernel-source 2.6.11 - stdarg.h: No such file or directory



On Sun, Apr 17, 2005 at 02:31:53PM +1000, Arthur Gruzauskas wrote:
> Package: kernel-source
> Version: 2.6.11-1
> 
> On compiling kernel-source-2.6.11-1 with or without 
> kernel-patch-debian-2.6.11-3, using current make-kpkg, as i have 
> since kernel 2.4 days, i get the following error.
> 
> arch/i386/kernel/process.c:14:20: stdarg.h: No such file or directory
> make[2]: *** [arch/i386/kernel/process.o] Error 1
> make[1]: *** [arch/i386/kernel] Error 2
> make[1]: Leaving directory `/usr/src/kernel-source-2.6.11'
> make: *** [stamp-build] Error 2
> 
> kernel-source 2.6.10-x still builds fine.
> 
> a bit of intermittent trawling (2 weeks worth...) found the following 
> fix which worked for me.
> 
> export GCC_EXEC_PREFIX=/usr/lib/gcc-lib/i486-linux/3.3.5/
> 
> Is it a kernel or gcc problem (or me) ? Clearly it is a bit of a 
> kludge as it will change with gcc versions.
> 
> This is my first bug report, i hope it is clear enough. i am happy to 
> supply more info if needed. I tried looking to see if it was a 
> duplicate bug, but i dont think it is, although the process was a bit 
> opaque to me. Thank you for being debian.

Hi,

I think that your gcc install is a bit screwy, and that this
has nothing to do with the kernel. Could you try compiling the attached
programme (no trojans as you can see).

gcc -Wall -E del.c -o del

Assuming that works could you please see where stdarg.h is coming
from by running

gcc -Wall -E del.c


For the record I get:

prompt> gcc -Wall -E del.c
# 1 "del.c"
# 1 "<built-in>"
# 1 "<\245\263\245\336\245\363\245\311\245\351\245\244\245\363>"
# 1 "del.c"
# 1 "/usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h" 1 3 4
# 43 "/usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 105 "/usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h" 3 4
typedef __gnuc_va_list va_list;
# 2 "del.c" 2

int
main(int argc, char **argv)
{
        return 0;
}


And /usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h comes from gcc-3.3

prompt> dpkg -S /usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h
gcc-3.3: /usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h

-- 
Horms
#include <stdarg.h>

int
main(int argc, char **argv)
{
	return 0;
}

Reply to: