When I try and compile any kernel > vanilla-sources-2.6.10 or > gentoo-source-2.6.10-*, I get the following error: vanquish linux # make && make modules_install CHK include/linux/version.h HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost HOSTCC scripts/kallsyms HOSTCC scripts/conmakehash CC arch/i386/kernel/asm-offsets.s In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/kernel.h:10:20: stdarg.h: No such file or directory In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/kernel.h:84: error: syntax error before "va_list" include/linux/kernel.h:87: error: syntax error before "va_list" include/linux/kernel.h:90: error: syntax error before "va_list" include/linux/kernel.h:94: error: syntax error before "va_list" include/linux/kernel.h:104: error: syntax error before "va_list" make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make: *** [arch/i386/kernel/asm-offsets.s] Error 2 Seems it can't locate my stdarg.h include file.... Here is my emerge info: vanquish linux # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10 i686) ================================================================= System uname: 2.6.10 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.6.12 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]dev-lang/python: 2.2.3-r5, 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium4 -mmmx -msse2 -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/lib/jboss /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=pentium4 -mmmx -msse2 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://planetmirror.com/pub/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo" LANG="en_US" LC_ALL="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://monaro/gentoo-portage" USE="x86 X aalib acpi alsa apache2 avi berkdb bidi bitmap-fonts bonobo cdr crypt cups curl dga divx4linux dts edl eds emboss encode esd evo faac faad fam fbcon flac foomaticdb fortran gd gdbm ggi gif gimpprint gnome gnutls gphoto2 gpm gstreamer gtk gtk+ gtk2 gtkhtml guile hal hald howl icu imagemagick imap imlib ipv6 java javascript jikes jpeg junit kerberos krb4 ldap libcaca libg++ libwww live lzo mad mikmod mmx motif mozilla mp3 mpeg mythtv nas ncurses network nls nptl ogg oggvorbis opengl openntpd oss pam pdflib perl pic png postgres ppds python quicktime readline real rtc samba scanner sdk sdl slang slp softmmu sox spell sse sse2 ssl svg svga tcltk tcpd tga theora threads tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis wxwindows xine xml xml2 xmms xosd xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS Here is my gcc-config environment: vanquish linux # gcc-config -E export PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin" I have tried the following solutions: 1. emerge gcc and emerge glibc 2. emerge -e system (build everything upto kernel-headers because it tries to build kernel and fails.) 3. fix_libtool_files.sh 3.3 and fix_libtool_files.sh 3.2 4. make clean before make 5. make mrproper before make 6. disabling distcc & sandbox 7. I wrote a hello world program in C and gcc compiled it sucessfully with the <stdarg.h> header file includes NOTE: All other non kernel packages can compile perfectly. Reproducible: Always Steps to Reproduce: 1.make && make modules_install 2. 3. Actual Results: Compile Fails Expected Results: Compile Succeed
Please attach the output of `make V=1`.
stdarg.h is a gcc generated include file. Does this help: gcc-config 1 source /etc/env.d
ok here is make V=1 command output: vanquish linux # make V=1 if test ! /usr/src/linux-2.6.11.11 -ef /usr/src/linux-2.6.11.11; then \ /bin/sh /usr/src/linux-2.6.11.11/scripts/mkmakefile \ /usr/src/linux-2.6.11.11 /usr/src/linux-2.6.11.11 2 6 \ > /usr/src/linux-2.6.11.11/Makefile; \ echo ' GEN /usr/src/linux-2.6.11.11/Makefile'; \ fi CHK include/linux/version.h rm -rf .tmp_versions mkdir -p .tmp_versions make -f scripts/Makefile.build obj=scripts/basic make -f scripts/Makefile.build obj=scripts make -f scripts/Makefile.build obj=scripts/mod make -f scripts/Makefile.build obj=arch/i386/kernel arch/i386/kernel/asm-offsets.s gcc -Wp,-MD,arch/i386/kernel/.asm-offsets.s.d -nostdinc -isystem ./include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=asm_offsets -DKBUILD_MODNAME=asm_offsets -S -o arch/i386/kernel/asm-offsets.s arch/i386/kernel/asm-offsets.c In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/kernel.h:10:20: stdarg.h: No such file or directory In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/kernel.h:84: error: syntax error before "va_list" include/linux/kernel.h:87: error: syntax error before "va_list" include/linux/kernel.h:90: error: syntax error before "va_list" include/linux/kernel.h:94: error: syntax error before "va_list" include/linux/kernel.h:104: error: syntax error before "va_list" make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make: *** [arch/i386/kernel/asm-offsets.s] Error 2
ok, might be better after a make clean here is make V=1 after a make clean: vanquish linux # make V=1 if test ! /usr/src/linux-2.6.11.11 -ef /usr/src/linux-2.6.11.11; then \ /bin/sh /usr/src/linux-2.6.11.11/scripts/mkmakefile \ /usr/src/linux-2.6.11.11 /usr/src/linux-2.6.11.11 2 6 \ > /usr/src/linux-2.6.11.11/Makefile; \ echo ' GEN /usr/src/linux-2.6.11.11/Makefile'; \ fi CHK include/linux/version.h rm -rf .tmp_versions mkdir -p .tmp_versions make -f scripts/Makefile.build obj=scripts/basic gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep scripts/basic/fixdep.c gcc -Wp,-MD,scripts/basic/.split-include.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/split-include scripts/basic/split-include.c gcc -Wp,-MD,scripts/basic/.docproc.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/docproc scripts/basic/docproc.c make -f scripts/Makefile.build obj=scripts make -f scripts/Makefile.build obj=scripts/mod gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ./include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty -c -o scripts/mod/empty.o scripts/mod/empty.c gcc -Wp,-MD,scripts/mod/.mk_elfconfig.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mod/mk_elfconfig scripts/mod/mk_elfconfig.c scripts/mod/mk_elfconfig i386 < scripts/mod/empty.o > scripts/mod/elfconfig.h gcc -Wp,-MD,scripts/mod/.file2alias.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o scripts/mod/file2alias.o scripts/mod/file2alias.c gcc -Wp,-MD,scripts/mod/.modpost.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o scripts/mod/modpost.o scripts/mod/modpost.c gcc -Wp,-MD,scripts/mod/.sumversion.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o scripts/mod/sumversion.o scripts/mod/sumversion.c gcc -o scripts/mod/modpost scripts/mod/modpost.o scripts/mod/file2alias.o scripts/mod/sumversion.o gcc -Wp,-MD,scripts/.kallsyms.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/kallsyms scripts/kallsyms.c gcc -Wp,-MD,scripts/.conmakehash.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/conmakehash scripts/conmakehash.c make -f scripts/Makefile.build obj=arch/i386/kernel arch/i386/kernel/asm-offsets.s gcc -Wp,-MD,arch/i386/kernel/.asm-offsets.s.d -nostdinc -isystem ./include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=asm_offsets -DKBUILD_MODNAME=asm_offsets -S -o arch/i386/kernel/asm-offsets.s arch/i386/kernel/asm-offsets.c In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/kernel.h:10:20: stdarg.h: No such file or directory In file included from include/asm/system.h:5, from include/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/kernel.h:84: error: syntax error before "va_list" include/linux/kernel.h:87: error: syntax error before "va_list" include/linux/kernel.h:90: error: syntax error before "va_list" include/linux/kernel.h:94: error: syntax error before "va_list" include/linux/kernel.h:104: error: syntax error before "va_list" make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make: *** [arch/i386/kernel/asm-offsets.s] Error 2
I tried: gcc-config 1 source /etc/env.d The gcc-config 1 command worked but the source /etc/env.d did not... I'm assuming you meant source /etc/profile. I tried it but I get the same error.
Please "emerge gentoolkit" and then post the output of the following: # equery files gcc | grep stdarg # gcc-config --get-lib-path # ls -l $(gcc-config --get-lib-path)/include
output for # equery files gcc | grep stdarg: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/cstdarg /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/stdarg.h /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/install-tools/include/stdarg.h output for # gcc-config --get-lib-path: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130 output for # gcc-config --get-lib-path: # ls -l $(gcc-config --get-lib-path)/include total 193 -rw-r--r-- 1 root root 19657 Jul 14 11:08 cxxabi.h -rw-r--r-- 1 root root 34616 Jul 14 11:08 emmintrin.h -rw-r--r-- 1 root root 5372 Jul 14 11:08 float.h -rw-r--r-- 1 root root 5493 Jul 14 11:08 g2c.h drwxr-xr-x 6 root root 1440 Jul 14 11:08 g++-v3 -rw-r--r-- 1 root root 1440 Jul 14 11:08 iso646.h -rw-r--r-- 1 root root 3470 Jul 14 11:08 limits.h -rw-r--r-- 1 root root 22293 Jul 14 11:08 mmintrin.h -rw-r--r-- 1 root root 3598 Jul 14 11:08 pmmintrin.h -rw-r--r-- 1 root root 750 Jul 14 11:08 README -rw-r--r-- 1 root root 4325 Jul 14 11:08 stdarg.h -rw-r--r-- 1 root root 1612 Jul 14 11:08 stdbool.h -rw-r--r-- 1 root root 12695 Jul 14 11:08 stddef.h -rw-r--r-- 1 root root 330 Jul 14 11:08 syslimits.h -rw-r--r-- 1 root root 8797 Jul 14 11:08 unwind.h -rw-r--r-- 1 root root 139 Jul 14 11:08 varargs.h -rw-r--r-- 1 root root 31009 Jul 14 11:08 xmmintrin.h
Looks like a toolchain bug, please reassign if not
no, just a really old bug *** This bug has been marked as a duplicate of 8132 ***