Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel only compiles while in X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
telex4
l33t
l33t


Joined: 21 Sep 2002
Posts: 704
Location: Reading, UK

PostPosted: Sun Apr 27, 2003 8:37 am    Post subject: Kernel only compiles while in X Reply with quote

I'm compiling gaming-sources (kernel 2.4.20), and I have a strange problem. I configured the sources by copying across my old config and using "make oldconfig", and make dep didn't exit with any errors. But when I do "make bzImage" in the shell (i.e. shell only, no X), I get the following errors:

Code:

In file included from /usr/src/linux-2.4.20-gaming-r2/include/linux/wait.h:13,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/mm.h:4,
                 from sched.c:19:
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from /usr/src/linux-2.4.20-gaming-r2/include/linux/wait.h:13,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.20-gaming-r2/include/linux/mm.h:4,
                 from sched.c:19:
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:74: parse error before "va_list"
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:74: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:77: parse error before "va_list"
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:77: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:81: parse error before "va_list"
/usr/src/linux-2.4.20-gaming-r2/include/linux/kernel.h:81: warning: function declaration isn't a prototype
sched.c:443:1: warning: "/*" within comment
make[2]: *** [sched.o] Error 1
make[1]: *** [first_rule] Error 2
make: *** [_dir_kernel] Error 2


When I then load up X and try again, I get no such errors, and it compiles on without a hitch.

What on earth is going on here?!
Back to top
View user's profile Send private message
tunah
n00b
n00b


Joined: 28 Mar 2003
Posts: 23

PostPosted: Mon Apr 28, 2003 5:43 am    Post subject: Reply with quote

Hmm... that is extremely odd.
My only guess is that it is something in /etc/profile (which is loaded by a real vt but not by an xterm etc). Perhaps it defines (or sources something that defines) an environment variable to do with the strictness of errors or something?
At any rate, that's really odd :-/
_________________
I compiled my kernel 24 times in 24 hours, and all I got was this stupid sig.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum