Re: kernel compile error in wheezy
On Sat, 16 Jul 2011 14:19:17 -0400 (EDT), Frank Miles wrote:
>
> I just tried compiling the kernel for My 'wheezy' system (2.6.39) [amd64].
> As I've done many times - using
> make-kpkg --revision N kernel_image
> But with the recent linux-source update - shortly after starting I get:
>
> CC arch/x86/kernel/asm-offsets.s
> In file included from /usr/src/linux-source-2.6.39/arch/x86/include/asm/percpu.h:44:0,
> from /usr/src/linux-source-2.6.39/arch/x86/include/asm/current.h:5,
> from /usr/src/linux-source-2.6.39/arch/x86/include/asm/processor.h:15,
> from /usr/src/linux-source-2.6.39/arch/x86/include/asm/atomic.h:6,
> from ./include/linux/crypto.h:20,
> from arch/x86/kernel/asm-offsets.c:8:
> ./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or directory
> compilation terminated.
> make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1
> make[2]: *** [prepare0] Error 2
>
> There don't seem to be any current bugs like this. A previous 2.6.39
> compiler was uneventful.
>
> Any ideas would be appreciated!
Using the procedures found at
http://users.wowway.com/~zlinuxman/Kernel.htm
I cannot reproduce your error. I am using package linux-source-2.6.39,
version 2.6.39-3. I have tried two machine architectures: s390 and i386,
but not amd64.
On my i386 system, there are four files ending in stdarg.h.
They are as follows:
/usr/lib/bcc/include/stdarg.h
/usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.5/include/stdarg.h
/usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6/include/stdarg.h
/usr/include/c++/4.6/tr1/stdarg.h
These files belong to the elks-libc, gcc-4.5, gcc-4.6,
and libstdc++6-4.6-dev packages, respectively. Since libstdc++6-4.6-dev
is for c++, and obviously either gcc-4.5 or gcc-4.6, or both, must
be already installed (or you wouldn't be able to compile anything),
I'm guessing that elks-libc is what is needed. Is that package installed
on your system? elks-libc is a recommendation (and not a dependency)
of bcc; so you may not have it installed on your system if you are in
the habit of installing only dependencies and skipping recommendations.
But it looks like it may be a requirement for compiling the kernel.
--
.''`. Stephen Powell
: :' :
`. `'`
`-
Reply to: