Jump to content

Kernel Compile Error In Mandrake 9.2


Recommended Posts

I'm attempting to compile the new 2.6.0-1mdk kernel in Mandrake 9.2. I've executed the commands:

 

make mrproper

make xconfig (where I used the default config file for the 2.6.0-1mdk found in /boot)

make clean

make bzImage

 

However after running 'make bzImage', I get the following error:

 

[root@localhost linux-2.6.0-1mdk]# make bzImage

HOSTCC scripts/fixdep

HOSTCC scripts/genksyms/genksyms.o

SHIPPED scripts/genksyms/lex.c

SHIPPED scripts/genksyms/parse.h

SHIPPED scripts/genksyms/keywords.c

HOSTCC scripts/genksyms/lex.o

SHIPPED scripts/genksyms/parse.c

HOSTCC scripts/genksyms/parse.o

HOSTLD scripts/genksyms/genksyms

HOSTCC scripts/split-include

HOSTCC scripts/conmakehash

HOSTCC scripts/docproc

HOSTCC scripts/kallsyms

CC scripts/empty.o

HOSTCC scripts/mk_elfconfig

MKELF scripts/elfconfig.h

HOSTCC scripts/file2alias.o

HOSTCC scripts/modpost.o

HOSTLD scripts/modpost

HOSTCC scripts/pnmtologo

HOSTCC scripts/bin2c

SPLIT include/linux/autoconf.h -> include/config/*

CC arch/i386/kernel/asm-offsets.s

In file included from include/asm/system.h:5,

from include/asm/processor.h:18,

from include/linux/prefetch.h:13,

from include/linux/list.h:7,

from include/linux/signal.h:4,

from arch/i386/kernel/asm-offsets.c:7:

include/linux/kernel.h:10:20: stdarg.h: No such file or directory

In file included from include/asm/system.h:5,

from include/asm/processor.h:18,

from include/linux/prefetch.h:13,

from include/linux/list.h:7,

from include/linux/signal.h:4,

from arch/i386/kernel/asm-offsets.c:7:

include/linux/kernel.h:71: error: syntax error before "va_list"

include/linux/kernel.h:71: warning: function declaration isn't a prototype

include/linux/kernel.h:74: error: syntax error before "va_list"

include/linux/kernel.h:74: warning: function declaration isn't a prototype

include/linux/kernel.h:78: error: syntax error before "va_list"

include/linux/kernel.h:78: warning: function declaration isn't a prototype

make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1

make: *** [arch/i386/kernel/asm-offsets.s] Error 2

[root@localhost linux-2.6.0-1mdk]#

 

Anybody have an idea of what I'm doing wrong? gcc version is:

 

[root@localhost linux-2.6.0-1mdk]# gcc --version

gcc (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

Copyright © 2003 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Link to comment
Share on other sites

[root@localhost linux-2.6.0-1mdk]# rpm -qa | grep gcc

gcc-cpp-3.3.1-2mdk

gcc2.96-2.96-0.83mdk

libgcc1-3.3.1-2mdk

gcc-3.3.1-2mdk

gcc2.96-cpp-2.96-0.83mdk

gcc-c++-3.3.1-2mdk

gcc-java-3.3.1-2mdk

 

I also tried the rupmf stdarg.h but it has 6 choices. I tried installing gcc2.96 but that didn't help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...