View previous topic :: View next topic |
Author |
Message |
monkeyBox Tux's lil' helper
Joined: 14 Feb 2003 Posts: 111 Location: Dallas, TX
|
Posted: Tue Feb 18, 2003 7:51 pm Post subject: Compiling kernel -- can't find stdarg.h?? |
|
|
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 |
|
|
monkeyBox Tux's lil' helper
Joined: 14 Feb 2003 Posts: 111 Location: Dallas, TX
|
Posted: Tue Feb 18, 2003 8:06 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
qrto n00b
Joined: 18 Feb 2003 Posts: 5
|
Posted: Tue Feb 18, 2003 8:16 pm Post subject: |
|
|
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 |
|
|
|