LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-18-2003, 02:39 PM   #1
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
Exclamation 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
 
Old 12-18-2003, 03:22 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
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?
 
Old 12-18-2003, 03:38 PM   #3
Randy
LQ Newbie
 
Registered: Jun 2001
Distribution: Redhat
Posts: 18

Rep: Reputation: 0
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.
 
Old 12-18-2003, 04:41 PM   #4
buboleck
Member
 
Registered: Oct 2003
Location: Bulgaria
Distribution: Gentoo, Slackware-Current (custom 2.6.x kernel)
Posts: 54

Rep: Reputation: 15
yep same to me... everything was fine... i'm fighting the modules now...
 
Old 12-18-2003, 09:29 PM   #5
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Original Poster
Rep: Reputation: 30
I tried running `make` and I get the same response.

Is something not configured correctly?
 
Old 12-18-2003, 10:25 PM   #6
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
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.
 
Old 12-21-2003, 04:45 AM   #7
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Original Poster
Rep: Reputation: 30
thanks...it looks like my version of cc was too new...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does it mean "parse error" using EMAC Annie0716 Programming 2 08-07-2004 08:41 AM
error message when pressing "Next" "BIOS Problems" , help ! HeRCuLeSX Fedora 3 07-21-2004 02:37 PM
error in "make zImage" during 2.6.4 kernel compliation JimBass Linux - Newbie 10 04-01-2004 11:47 PM
stdio.h parse error before "__gnuc_va_list" Warnken Red Hat 1 02-10-2004 11:24 AM
Newbie: "Parse Error" when adding wireless usb network adapter tommer Red Hat 7 10-16-2003 04:48 PM


All times are GMT -5. The time now is 03:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration