Summary: | compile fails for any kernel > vanilla-sources-2.6.10 or > gentoo-source-2.6.10-* | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Grant Martin <grantmartin> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | CC: | kernel, stian |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://forums.gentoo.org/viewtopic-t-357902.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Grant Martin
2005-07-14 06:52:31 UTC
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 |