Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling kernel -- can't find stdarg.h??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
monkeyBox
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2003
Posts: 111
Location: Dallas, TX

PostPosted: Tue Feb 18, 2003 7:51 pm    Post subject: Compiling kernel -- can't find stdarg.h?? Reply with quote

When I do "make bzImage" I get a compiler error like "kernel.h: stdarg.h: no such file or directory"

well, I went into kernel.h and changed

#include <stdarg.h>


to

#include "/my/path/to/stdarg.h"


...and the compile went on, however, I'm getting errors in other files that include stdarg.h and I'd hate to have to go through and change every instance of that.

My question is, why the heck would this be happening in the first place? this test prog seemed to compile ok:

#include <stdarg.h>
int main()
{
return 0;
}



so I guess my glibc is working as it should.. so is there something wierd with my kernel source?

(if you want to see the full compiler output check out my post on arstechnica here: http://arstechnica.infopop.net/OpenTopic/page?a=tpc&s=50009562&f=96509133&m=1350912255.)
Back to top
View user's profile Send private message
monkeyBox
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2003
Posts: 111
Location: Dallas, TX

PostPosted: Tue Feb 18, 2003 8:06 pm    Post subject: Reply with quote

well, I guess I found a quick hack...
I did:

ln -s `locate stdarg.h` /usr/src/linux/include/linux/stdarg.h



and that works.. I'm still not sure why stdarg.h wasn't in there in the first place :P
Back to top
View user's profile Send private message
qrto
n00b
n00b


Joined: 18 Feb 2003
Posts: 5

PostPosted: Tue Feb 18, 2003 8:16 pm    Post subject: Reply with quote

stdarg.h is a part of gcc so its native location is usually /usr/lib/gcc-lib/i686-pc-linux-gnu/gcc-version/include, make sure that you have LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/gcc_version" in your /etc/env.d in XXgcc file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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