LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel 2.6.0 compliation problems: "parse error before 'va_list'" (https://www.linuxquestions.org/questions/linux-general-1/kernel-2-6-0-compliation-problems-parse-error-before-va_list-127012/)

sohmc 12-18-2003 02:39 PM

kernel 2.6.0 compliation problems: "parse error before 'va_list'"
 
Hello guys

I'm having problems compiling the new kernel. here is what I'm getting:

# make bzImage
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: parse error before "va_list"
include/linux/kernel.h:71: warning: function declaration isn't a prototype
include/linux/kernel.h:74: error: parse error before "va_list"
include/linux/kernel.h:74: warning: function declaration isn't a prototype
include/linux/kernel.h:78: error: parse 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


I have gcc 3.3.2, redhat 7.3

any suggestions? I can't seem to find a straight answer on google.

Thanks

h/w 12-18-2003 03:22 PM

not an answer to your question, but in the 2.6 kernels, doesnt the first make go and make the bzImage? i have compiled the test versions, and only had to do a make, after configuration. so isnt the image in your arch/i386?

Randy 12-18-2003 03:38 PM

I got the same thing. I tried to do a 'make dep' and I got a stdout message saying that this had been pahased out and that I just should run 'make'. That built the bzImage file for me.

buboleck 12-18-2003 04:41 PM

yep same to me... everything was fine... i'm fighting the modules now... :(

sohmc 12-18-2003 09:29 PM

I tried running `make` and I get the same response.

Is something not configured correctly?

ghostwalker 12-18-2003 10:25 PM

For building the 2.6 kernel

Take and read the following:

http://ftp.kernel.org/pub/linux/kern...loween-2.5.txt

You need to get the module-init-tools.

Use lspci -v to help select your hardware. This will be helpful for configuring the 2.6 kernel.

make mrproper
make menuconfig
make
make modules_install
make install

Then modify you lilo.conf or grub.txt

make install installs vmlinuz into the boot directory along with System.map
It creates a symbolic link to you old vmlinuz -> vmlinuz.old and System.old

All you need to do is add entry for the old vmlinuz. I use lilo.conf

This is mine....

image=/boot/vmlinuz
label=Linux2.6
read-only

** This would be you redhat config. **
image=/boot/vmlinuz.old
vga=791
append="hdc=scsi hdd=scsi apm=power-off nomce"
label=Linux2.4
read-only

If you are using lilo, issue lilo -v or modify you menu.lst for grub.

Hope this helps. The more people use 2.6 the better.

sohmc 12-21-2003 04:45 AM

thanks...it looks like my version of cc was too new...


All times are GMT -5. The time now is 02:48 AM.