Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8132 - [2.4] kernel compilation does not find stdarg.h
Summary: [2.4] kernel compilation does not find stdarg.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major with 2 votes (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 8484 11394 13346 13877 13984 16050 59499 99006 (view as bug list)
Depends on:
Blocks: 59499
  Show dependency tree
 
Reported: 2002-09-19 20:47 UTC by whirm
Modified: 2005-07-21 03:50 UTC (History)
15 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
formatted msg (pretty.txt,5.29 KB, text/plain)
2002-09-19 21:38 UTC, SpanKY
Details
mm-sources config (.config,27.55 KB, text/plain)
2003-03-24 14:25 UTC, Isaac Ben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description whirm 2002-09-19 20:47:38 UTC
when Ido: *** make menuconfig cp .config ../ make mrproper ; make distclean ; make clean cp ../.config ./ make oldconfig <- If i don't do that I can't "make dep" make dep make bzImage ***  it returns:  ----------------- root@hydra linux # make bzImage gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os  -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os   -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os " -C  kernel make[1]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel' make all_targets make[2]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os   -nostdinc  -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o sched.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions En el fichero inclu
Comment 1 whirm 2002-09-19 20:47:38 UTC
when Ido: *** make menuconfig cp .config ../ make mrproper ; make distclean ; make clean cp ../.config ./ make oldconfig <- If i don't do that I can't "make dep" make dep make bzImage ***  it returns:  ----------------- root@hydra linux # make bzImage gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os  -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os   -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os " -C  kernel make[1]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel' make all_targets make[2]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Os   -nostdinc  -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o sched.c cc1: aviso: -malign-functions es obsoleto, use -falign-functions En el fichero incluído de /usr/src/linux-2.4.19-gentoo-r9/include/linux/wait.h:13,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/fs.h:12,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/capability.h:17,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/binfmts.h:6,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/sched.h:10,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/mm.h:4,                  de sched.c:19: /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:10:20: stdarg.h: No existe el fichero o el directorio En el fichero incluído de /usr/src/linux-2.4.19-gentoo-r9/include/linux/wait.h:13,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/fs.h:12,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/capability.h:17,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/binfmts.h:6,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/sched.h:10,                  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/mm.h:4,                  de sched.c:19: /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:73: error de decodificación antes de "va_list" /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:74: aviso: la declaración de la función no es un prototipo /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:77: error de decodificación antes de "va_list" /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:78: aviso: la declaración de la función no es un prototipo /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:82: error de decodificación antes de "va_list" /usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:83: aviso: la declaración de la función no es un prototipo make[2]: *** [sched.o] Error 1 make[2]: Saliendo directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel' make[1]: *** [first_rule] Error 2 make[1]: Saliendo directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel' make: *** [_dir_kernel] Error 2 root@hydra linux # -------------------------------  I use gentoo-sources 2.4.19-r9  and if I do rm -fR /usr/src/linux-2.4.19-gentoo-r9 and reemerge the kernel, and recover the .config file It does the same.  and doing  make config accepting all the default values, again exactly the same.... (I compiled It reveral times, but now....) oh shit!   my system is: dual amd-xp 2100+ tyan tiger mpx 2466n-4m motherboard software  raid0 gentoo 1.4rc1 all updated at the date of 19/09/02   portage 2.0.36 gcc 3.2-r1 ccache 1.9-r1  USE="scanner spell svga tiff truetype pdflib pic png -pcmcia nocardbus fbcon   flash gif gphoto2 gtk gtkhtml java jpeg kde lcms alsa evo dvd encode cdr   directfb aalib fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov   pat pse36 mmx motif ncurses oggvorbis fxsr sse syscall mmxext 3dnowext x86 oss   3dnow acpi arts avi berkdb crypt cups encode gdbm gif gpm gtk imlib java jpeg   kde gnome libg++ libwww mikmod mmx motif mpeg nls oggvorbis opengl pam pdflib   png python qt qtmt quicktime readline sdl slang spell ssl svga tcpd truetype X   xml2 xmms xv zlib" MAKEOPTS="-j4" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}"
Comment 2 SpanKY gentoo-dev 2002-09-19 21:32:27 UTC
will you please start posting your bugs properly ;)
Comment 3 SpanKY gentoo-dev 2002-09-19 21:38:35 UTC
Created attachment 4023 [details]
formatted msg

when I do:
make menuconfig
cp .config ../
make mrproper ; make distclean ; make clean
cp ../.config ./
make oldconfig <- If i don't do that I can't "make dep"
make dep make bzImage

it returns:
root@hydra linux # make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os  -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o
init/version.o init/version.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os   -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o
init/do_mounts.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions make
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os " -C  kernel
make[1]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel'
make all_targets
make[2]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os   -nostdinc  -DKBUILD_BASENAME=sched 
-fno-omit-frame-pointer -c -o sched.o sched.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions En el fichero
inclu
Comment 4 SpanKY gentoo-dev 2002-09-19 21:38:35 UTC
Created attachment 4023 [details]
formatted msg

when I do:
make menuconfig
cp .config ../
make mrproper ; make distclean ; make clean
cp ../.config ./
make oldconfig <- If i don't do that I can't "make dep"
make dep make bzImage

it returns:
root@hydra linux # make bzImage
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os  -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o
init/version.o init/version.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os   -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o
init/do_mounts.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions make
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os " -C  kernel
make[1]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel'
make all_targets
make[2]: Cambiando a directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-gentoo-r9/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -Os   -nostdinc  -DKBUILD_BASENAME=sched 
-fno-omit-frame-pointer -c -o sched.o sched.c
cc1: aviso: -malign-functions es obsoleto, use -falign-functions En el fichero
incluído de
/usr/src/linux-2.4.19-gentoo-r9/include/linux/wait.h:13,
		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/fs.h:12,
		  de
/usr/src/linux-2.4.19-gentoo-r9/include/linux/capability.h:17,
		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/binfmts.h:6,

		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/sched.h:10,
		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/mm.h:4,
		  de sched.c:19:
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:10:20: stdarg.h: No
existe el fichero o el directorio En el fichero incluído de
/usr/src/linux-2.4.19-gentoo-r9/include/linux/wait.h:13,
		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/fs.h:12,
		  de
/usr/src/linux-2.4.19-gentoo-r9/include/linux/capability.h:17,
		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/binfmts.h:6,

		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/sched.h:10,
		  de /usr/src/linux-2.4.19-gentoo-r9/include/linux/mm.h:4,
		  de sched.c:19:
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:73: error de
decodificación antes de "va_list"
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:74: aviso: la
declaración de la función no es un prototipo
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:77: error de
decodificación antes de "va_list"
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:78: aviso: la
declaración de la función no es un prototipo
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:82: error de
decodificación antes de "va_list"
/usr/src/linux-2.4.19-gentoo-r9/include/linux/kernel.h:83: aviso: la
declaración de la función no es un prototipo
make[2]: *** [sched.o] Error 1
make[2]: Saliendo directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Saliendo directorio `/usr/src/linux-2.4.19-gentoo-r9/kernel'
make: *** [_dir_kernel] Error 2
root@hydra linux #
------------------------------- 
I use gentoo-sources 2.4.19-r9	and if I do rm -fR
/usr/src/linux-2.4.19-gentoo-r9 and reemerge the kernel, and recover the
.config file It does the same.	and doing  make config accepting all the
default values, again exactly the same.... (I compiled It reveral times, but
now....)

my system is: dual amd-xp 2100+ tyan tiger mpx 2466n-4m motherboard software 
raid0
gentoo 1.4rc1 all updated at the date of 19/09/02
portage 2.0.36
gcc 3.2-r1
ccache 1.9-r1

USE="scanner spell svga tiff truetype pdflib pic png -pcmcia nocardbus fbcon  
flash gif gphoto2 gtk gtkhtml java jpeg kde lcms alsa evo dvd encode cdr  
directfb aalib fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov  
pat pse36 mmx motif ncurses oggvorbis fxsr sse syscall mmxext 3dnowext x86 oss 
 3dnow acpi arts avi berkdb crypt cups encode gdbm gif gpm gtk imlib java jpeg 
 kde gnome libg++ libwww mikmod mmx motif mpeg nls oggvorbis opengl pam pdflib 
 png python qt qtmt quicktime readline sdl slang spell ssl svga tcpd truetype X
  xml2 xmms xv zlib"
MAKEOPTS="-j4"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
Comment 5 SpanKY gentoo-dev 2002-09-19 21:39:28 UTC
if you dont mind me asking, why are you doing all of this crap just to make the 
kernel ?

just do:
cd /usr/src/linux
make menuconfig
make clean dep bzImage modules modules_install

and you're done
Comment 6 Brandon Low (RETIRED) gentoo-dev 2002-09-19 21:42:06 UTC
I for one am glad the user took all these steps, this ensures a clean source
tree and that his error is genuine...

What I need to work on this bug is a .config so I can reproduce this bug and get
the error in ENGLISH... :)

Thanks!
Comment 7 Brandon Low (RETIRED) gentoo-dev 2002-09-19 21:49:55 UTC
and the no line breaks issue btw is a konqueror+bugzilla problem... use mozilla...
Comment 8 SpanKY gentoo-dev 2002-09-19 21:52:05 UTC
it happens on lynx too ;)

i missed the fact that the src tree was installed via an ebuild ... i do all my 
stuff by hand and have never encountered this kind of thing ;)
Comment 9 whirm 2002-09-20 03:58:12 UTC
ok, I will add the .config, but if i do an default .config file (make config   and enter at all the questions) it does the same....     Oh! another bug! I can't attack from konqueror! I will emerge mozilla, sorry but I will send it to vapier@gentoo.org... what a pain...     
Comment 10 Brandon Low (RETIRED) gentoo-dev 2002-09-20 10:40:33 UTC
Ok, here is the thing... yesterday I was working on a new kernel and BOOM I got
a related error in stdarg.h, I am therefore inclined to wonder if something else
broke somewhere outside of the kernel realm... Ima digging into it right now.
Comment 11 Brandon Low (RETIRED) gentoo-dev 2002-09-20 12:18:08 UTC
dabOOooOo
ok, ORC noises aside, I just compiled your .config with gentoo-r9 sources with
no problem...
Comment 12 Brandon Low (RETIRED) gentoo-dev 2002-09-20 12:43:05 UTC
theory, which I'm testing with my own issue here: did you emerge a new
linux-headers without remerging glibc?  This COULD MAYBE POSSIBLY be the
problem, I'm seeing if it fixes my particular issue of this sort.
Comment 13 whirm 2002-09-21 08:48:30 UTC
I didn't emerge glibc nor linux-headers, but now I reemerged it, (not updated,because they where already the last version) and nothing... It does the same.... some other theory? ^_^ 
Comment 14 whirm 2002-09-21 08:58:46 UTC
SOLVED!!!!!!!!!! (almost)  I use:  LANG="spanish" LC_ALL="es_ES@euro"    If I do:  unset LANG unset LC_ALL  and I do make bzImage It compiles perfectly!!!  ok now we know whi it happens, but no idea of how to solve it!! :) 
Comment 15 Brandon Low (RETIRED) gentoo-dev 2002-09-22 02:35:27 UTC
WAIT how are you running -r9 on that thing... my roomie can't get it to work cuz
IDE is borken...
Comment 16 whirm 2002-09-22 05:35:44 UTC
what is a roomie? I'm Spanish, so  some words... ^_^  I didn't got any problem compiling my kernel because of the ide drivers, nor using it...  perhaps is something related to the .config ... give a try to my .config file and see.  who will fix that bug? now that we know wat is it? 
Comment 17 Brandon Low (RETIRED) gentoo-dev 2002-09-22 11:05:51 UTC
Nick any thoughts about this?  I really don't know enough about glibc
internationalization...

Roomie... Una persona que comparte mi dormitorio... si, esta bien.  Mi
Espan~ol-- solo tengo tres an~os del Espan~ol en la escuela secundaria... ;)
Comment 18 SpanKY gentoo-dev 2002-09-27 18:23:36 UTC
*** Bug 8484 has been marked as a duplicate of this bug. ***
Comment 19 SpanKY gentoo-dev 2002-12-31 13:25:56 UTC
*** Bug 11394 has been marked as a duplicate of this bug. ***
Comment 20 tuxisuau 2003-01-03 09:53:20 UTC
I have this problem. 
 
But here, unsetting the variables doesn't help at all. 
Comment 21 SpanKY gentoo-dev 2003-01-08 09:36:06 UTC
*** Bug 13346 has been marked as a duplicate of this bug. ***
Comment 22 Jon Portnoy (RETIRED) gentoo-dev 2003-01-11 21:39:22 UTC
My experience was this:
(all vanilla kernels from kernel.org)
kernel 2.4.20 + gcc 3.2.1 = can't find stdarg.h
kernel 2.4.20 + gcc 2.95.3 = no problems
kernel 2.4.19 + gcc 3.2.1 = no problems

...but that's a little odd because both 2.4.19 and 2.4.20 look for it as just
<stdarg.h>
Comment 23 Jon Portnoy (RETIRED) gentoo-dev 2003-01-12 14:53:46 UTC
I think I tracked this down. Works for me, at least.

2.4.20 uses this method for finding include dirs:
kbuild_2_4_nostdinc    := -nostdinc -iwithprefix include

2.4.19 uses this method:
kbuild_2_4_nostdinc    := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne
's/install: \(.*\)/-I \1include/gp')

After changing 2.4.20's Makefile to use the same method as 2.4.20, it works fine
for me. 
Comment 24 Brandon Low (RETIRED) gentoo-dev 2003-01-14 00:33:33 UTC
*** Bug 13877 has been marked as a duplicate of this bug. ***
Comment 25 narendra sankar 2003-01-15 11:58:23 UTC
Hi everyone 
Just ran into this problem building the 2.5.5x series. (specifically 2.5.58). I am using 
gcc 3.2.1-r6. The kbuild in the 2.5.5x series uses the -iwithprefix include method 
to get the includes as in the 2.4.20 example below. I added a -v flag to the CFLAGS to see 
why this fails. It seems that gcc 3.2.1-r6 (don't know about the other versions) as installed 
in gentoo, is searching in the wrong place for the include files (specifically stdarg.h) when it is 
run with the -nostdinc flag. From the gcc documentation, -iwithprefix INCPATH, uses the prefix 
specified with -iprefix PREFIX to append it to the INCPATH variable to find the include path to 
search 
for the include files. In the kernel build, as far as I can determine, the -iprefix PREFIX is set 
internally in gcc and the -iwithprefix include is specified in the kernel Makefile. Gcc internally 
seems to be assigning the following path to the PREFIX --- 
-iprefix /usr/bin/../../lib/gcc-lib/i686-pc-linux-gnu/3.2.1/ 
 
As can be seen from the above path, the include files are now searched in 
/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/ and obviously this path does not exist and the kernel 
build bombs. 
 
The correct prefix should have been -iprefix /usr/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2.1/ 
 
I created a temporary link in /lib to test this out and the kernel builds correctly.  
 
I believe that there is a bug in the gcc build and install in gentoo. I do not believe this is a kernel 
build bug. However I will leave it to others to prove or disprove. 
Comment 26 narendra sankar 2003-01-15 12:48:03 UTC
Hi everyone 
I just tried out a clean build of the original gcc 3.2.1 sources from gcc.gnu.org with the same  
configure as from the ebuild. Here the kernel build correctly with no problems. (I removed 
the link that I had before from /lib) So this points to 
either the ebuild for gcc 3.2.1-r6 being broken or the new gcc-config stuff being broken. 
I am going to file a bug against gcc. It looks like the gentoo ebuild generates the wrong path for 
the include files in the gcc install. 
Comment 27 Brandon Low (RETIRED) gentoo-dev 2003-01-15 14:27:54 UTC
Hey, great work there... you discovered exactly the same things that I did last
night, glad I'm not insane or anything ;-)  I have additionally confirmed that
this bug is in the gcc-config gcc wrapper, because if you call the gcc binary in
the arch-specific location directly it has the correct prefix.  I'm re-assigning
this bug to Azarah as it is officially in his domain, not mine now.  

Azarah: for some reason downgrading back to the old gcc-config does NOT solve
this problem either.  Seems like the wrappers are still there.  Not sure what to
do about this.  Apparently users on gcc-config-1.2.7 who never upgrade beyond
that are not affected tho.
Comment 28 Eric Andresen 2003-01-15 16:07:59 UTC
If you wish to downgrade to 1.2.7, emerge 1.27, then manaully remove
/usr/bin/gcc, g++, c++ cpp, cc, and i686-*
Comment 29 Brad Cowan (RETIRED) gentoo-dev 2003-01-15 16:10:26 UTC
I can confirm..this is a major problem with 1.2.9, I think u can just revert
back and remove the old wrappers though
Comment 30 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-15 16:23:07 UTC
*** Bug 13984 has been marked as a duplicate of this bug. ***
Comment 31 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-15 16:28:05 UTC
Problem is that gcc was called with argv[0] set to /usr/bin/gcc.  This is fixed
in gcc-config-1.3.0.  Please test and let me know.
Comment 32 Brandon Low (RETIRED) gentoo-dev 2003-01-15 16:30:48 UTC
Great, thanks Azarah!  I'm testing now.
Comment 33 Brandon Low (RETIRED) gentoo-dev 2003-01-15 16:35:07 UTC
Corrected output:  Works perfect, Az.

lost linux # gcc -v -nostdinc -iwithprefix include temp.c -o temp
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs
Configured with: /var/tmp/portage/gcc-3.2.1-r6/work/gcc-3.2.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix
--enable-long-long --disable-checking --enable-cstdio=stdio
--enable-clocale=generic --enable-__cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext
Thread model: posix
gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/cc1 -lang-c -nostdinc -v -D__GNUC__=3
-D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102 -D__ELF__
-Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__
-D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386
-Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__
-iwithprefix include temp.c -quiet -dumpbase temp.c -version -o /tmp/ccoGonPU.s
GNU CPP version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207) (cpplib) (i386
Linux/ELF)
GNU C version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207) (i686-pc-linux-gnu)
        compiled by GNU C version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207).
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include
End of search list.
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/as
-V -Qy -o /tmp/ccOUyUMG.o /tmp/ccoGonPU.s
GNU assembler version 2.13.90.0.16 (i686-pc-linux-gnu) using BFD version
2.13.90.0.16 20021126
 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/collect2 --eh-frame-hdr -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 -o temp
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../crt1.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../crti.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/crtbegin.o
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/lib
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../.. /tmp/ccOUyUMG.o -lgcc
-lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/crtend.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../crtn.o
Comment 34 Brandon Low (RETIRED) gentoo-dev 2003-01-15 16:36:19 UTC
Weird.  recompiled 1.2.9 and it stayed unbork... can you splain that?
Comment 35 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-15 16:37:50 UTC
Yep, the changes are to wrapper.c  (yeah, shouuld prob version it), so I noly
bumped the ebuild version to get people that are using to update it ...
Comment 36 Devios McShady 2003-01-26 21:34:50 UTC
I have the same problem:
/usr/src/linux-2.4.20/include/linux/kernel.h:10:20: stdarg.h: No such file or
directory

when compiling 2.4.20

*  sys-devel/gcc
      Latest version available: 3.2.1-r6
      Latest version installed: 3.2.1-r6
      Size of downloaded files: 21,271 kB
      Homepage:    http://www.gnu.org/software/gcc/gcc.html
      Description: Modern C/C++ compiler written by the GNU people

*  sys-devel/gcc-config
      Latest version available: 1.2.7
      Latest version installed: 1.2.7
      Size of downloaded files: 0 kB
      Homepage:    http://www.gentoo.org/
      Description: Utility to change the gcc compiler being used.
Comment 37 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-26 22:20:10 UTC
You need gcc-config-1.3.1 ...
Comment 38 Devios McShady 2003-01-27 07:07:53 UTC
A workaround that allowed me to successfully compile my kernel was to edit a
line in /usr/src/linux/Makefile.conf to now read:

kbuild_2_4_nostdinc  := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne
's/install: \(.*\)/-I \1include/gp')

After that, I was able to compile successfully.  Does this mean gcc-config is
broken?

Comment 39 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-28 14:56:31 UTC
You need gcc-config-1.3.1 ...
Comment 40 SpanKY gentoo-dev 2003-02-19 23:50:09 UTC
*** Bug 16050 has been marked as a duplicate of this bug. ***
Comment 41 Isaac Ben 2003-03-24 14:25:43 UTC
Created attachment 9766 [details]
mm-sources config

make bzImage
  CHK	  include/linux/version.h
(echo \#define UTS_RELEASE \"2.5.65-mm3\"; echo \#define LINUX_VERSION_CODE
`expr 2 \\* 65536 + 5 \\* 256 + 65`; echo '#define KERNEL_VERSION(a,b,c) (((a)
<< 16) + ((b) << 8) + (c))'; ) < Makefile > include/linux/version.h.tmp; if [
-r include/linux/version.h ] && cmp -s include/linux/version.h
include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else echo
'  UPD	   include/linux/version.h'; mv -f include/linux/version.h.tmp
include/linux/version.h; fi
make -f scripts/Makefile.build obj=scripts
  gcc -Wp,-MD,scripts/.fixdep.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer	-o scripts/fixdep scripts/fixdep.c
  gcc -Wp,-MD,scripts/.split-include.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer	-o scripts/split-include scripts/split-include.c
  gcc -Wp,-MD,scripts/.conmakehash.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer	-o scripts/conmakehash scripts/conmakehash.c
  gcc -Wp,-MD,scripts/.docproc.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer	-o scripts/docproc scripts/docproc.c
  gcc -Wp,-MD,scripts/.kallsyms.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer	-o scripts/kallsyms scripts/kallsyms.c
  gcc -Wp,-MD,scripts/.empty.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default
-fomit-frame-pointer -nostdinc -iwithprefix include    -DKBUILD_BASENAME=empty
-DKBUILD_MODNAME=empty -c -o scripts/empty.o scripts/empty.c
  gcc -Wp,-MD,scripts/.mk_elfconfig.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer	-o scripts/mk_elfconfig scripts/mk_elfconfig.c
  scripts/mk_elfconfig i386 < scripts/empty.o > scripts/elfconfig.h
  gcc -Wp,-MD,scripts/.file2alias.o.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer   -c -o scripts/file2alias.o scripts/file2alias.c
  gcc -Wp,-MD,scripts/.modpost.o.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer   -c -o scripts/modpost.o scripts/modpost.c
  gcc  -o scripts/modpost scripts/modpost.o scripts/file2alias.o
make -f scripts/Makefile.build obj=scripts/kconfig scripts/kconfig/conf
  cat scripts/kconfig/zconf.tab.h_shipped > scripts/kconfig/zconf.tab.h
  gcc -Wp,-MD,scripts/kconfig/.conf.o.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer   -c -o scripts/kconfig/conf.o scripts/kconfig/conf.c
  gcc -Wp,-MD,scripts/kconfig/.mconf.o.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer   -c -o scripts/kconfig/mconf.o scripts/kconfig/mconf.c
  cat scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.c
  cat scripts/kconfig/lex.zconf.c_shipped > scripts/kconfig/lex.zconf.c
  gcc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer  -Iscripts/kconfig -fPIC -c -o scripts/kconfig/zconf.tab.o
scripts/kconfig/zconf.tab.c
  gcc  -shared -o scripts/kconfig/libkconfig.so scripts/kconfig/zconf.tab.o
  gcc  -o scripts/kconfig/conf scripts/kconfig/conf.o
scripts/kconfig/libkconfig.so
./scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
  SPLIT   include/linux/autoconf.h -> include/config/*
  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=pentium4 -Iinclude/asm-i386/mach-default
-fomit-frame-pointer -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
Comment 42 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-14 07:39:03 UTC
This should be fixed.
Comment 43 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 15:45:05 UTC
closing as fixed
Comment 44 Wolfgang Herder 2004-06-15 07:56:51 UTC
Appearing again when trying to compile gentoo-sources-2.4.19-r14 or -15 on a current system running 2.4.25-gentoo-r4 and LANG=de_DE@euro

With LANG=en_US it works fine (ok, still some problems, but they don't have to do with finding stdarg.h)
Comment 45 Wolfgang Herder 2004-06-24 15:02:10 UTC
and still in gentoo-sources-2.4.19-r17
Comment 46 Daniel Drake (RETIRED) gentoo-dev 2004-12-22 15:42:16 UTC
*** Bug 59499 has been marked as a duplicate of this bug. ***
Comment 47 Daniel Drake (RETIRED) gentoo-dev 2004-12-22 15:42:44 UTC
reopening
Comment 48 Daniel Drake (RETIRED) gentoo-dev 2004-12-22 16:25:52 UTC
Just noticed that the last report on this was about 2.4.19. If it still exists on the latest kernels, please reopen.
Comment 49 SpanKY gentoo-dev 2005-07-20 18:36:52 UTC
*** Bug 99006 has been marked as a duplicate of this bug. ***