View previous topic :: View next topic |
Author |
Message |
monkeyBox Tux's lil' helper
Joined: 14 Feb 2003 Posts: 111 Location: Dallas, TX
|
Posted: Thu Mar 27, 2003 8:35 am Post subject: development-sources... can't find stdarg.h ?? |
|
|
When doing the make bzImage on the development sources I get the following:
Code: |
make -f scripts/Makefile.build obj=scripts
Starting the build. KBUILD_BUILTIN=1 KBUILD_MODULES=
make -f scripts/Makefile.build obj=init
gcc -Wp,-MD,init/.main.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include -DKBUILD_BASENAME=main -DKBUILD_MODNAME=main -c -o init/main.o init/main.c
In file included from include/linux/cache.h:4,
from include/asm/processor.h:18,
from include/asm/thread_info.h:13,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from include/linux/proc_fs.h:5,
from init/main.c:15:
include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from include/linux/cache.h:4,
from include/asm/processor.h:18,
from include/asm/thread_info.h:13,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from include/linux/proc_fs.h:5,
from init/main.c:15:
include/linux/kernel.h:73: parse error before "va_list"
include/linux/kernel.h:73: warning: function declaration isn't a prototype
include/linux/kernel.h:76: parse error before "va_list"
include/linux/kernel.h:76: warning: function declaration isn't a prototype
include/linux/kernel.h:80: parse error before "va_list"
include/linux/kernel.h:80: warning: function declaration isn't a prototype
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
|
the relevant part being that it it can't find stdarg.h.. That's such a standard file, why isn't that working??
locate stdarg.h brings up these locations (the 2.4.2 is my vanilla-kernel):
Code: |
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/stdarg.h
/usr/src/linux-2.4.20/include/linux/stdarg.h
/usr/src/linux-2.4.20/include/stdarg.h
|
any suggestions?? |
|
Back to top |
|
|
monkeyBox Tux's lil' helper
Joined: 14 Feb 2003 Posts: 111 Location: Dallas, TX
|
Posted: Thu Apr 03, 2003 1:08 am Post subject: |
|
|
Ok I just figured this one out in case anyone else runs into this problem.
Edit the Makefile in the source tree,
Look for CPPFLAGS and add this att the end of the line:
-I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include
so it should look like this:
Code: |
CPPFLAGS := -D__KERNEL__ -Iinclude -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include
|
|
|
Back to top |
|
|
rtn Guru
Joined: 15 Nov 2002 Posts: 427
|
Posted: Thu Apr 03, 2003 4:16 pm Post subject: |
|
|
Wouldn't an `env-update && source /etc/profile` fix that as well?
--rtn |
|
Back to top |
|
|
mithrandiro n00b
Joined: 13 Apr 2003 Posts: 1
|
Posted: Sun Apr 13, 2003 12:05 pm Post subject: |
|
|
Quote: | Wouldn't an `env-update && source /etc/profile` fix that as well |
It doesnt work on my system. so I did monkeyBox's method. |
|
Back to top |
|
|
|
|
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
|
|