i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -isystem /usr/lib/gcc/i68 6-pc-linux-gnu/4.3.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasin g -fno-common -Werror-implicit-function-declaration -Os -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary =2 -march=athlon -mtune=generic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -m no-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJO R=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/. -I/var/tmp/portage/app-misc/l irc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/. -I/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/../.. -I/var/tmp/portage/app-mis c/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D" KBUILD_BASENAME=KBUILD_STR(lirc_dev)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_d ev/.tmp_lirc_dev.o /var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c In file included from include/linux/gfp.h:4, from include/linux/slab.h:12, from include/linux/percpu.h:5, from include/asm/local.h:4, from include/linux/module.h:19, from /var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c:36: include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory include/linux/mmzone.h:197:5: warning: "MAX_NR_ZONES" is not defined In file included from include/linux/gfp.h:4, from include/linux/slab.h:12, from include/linux/percpu.h:5, from include/asm/local.h:4, from include/linux/module.h:19, from /var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.c:36: include/linux/mmzone.h:218: error: 'MAX_NR_ZONES' undeclared here (not in a function) make[5]: *** [/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev/lirc_dev.o] Error 1 make[4]: *** [_module_/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev] Error 2 make[4]: Leaving directory `/usr/src/linux-2.6.26-gentoo' make[3]: *** [lirc_dev.o] Error 2 make[3]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers/lirc_dev' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3/drivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.3-r2/work/lirc-0.8.3' make: *** [all] Error 2
Created attachment 162627 [details] emerge --info
Created attachment 162629 [details] build.log
I just ran into the same problem. The "bounds.h" header is created by the kernel. Maybe you've done a "make clean" or "make distclean" in your kernel sources before? So go to "/usr/src/linux" and do a "make prepare". This will generate the missed "bounds.h" for you. After that, emerge "lirc" again. Worked fine for me...
(In reply to comment #3) > I just ran into the same problem. The "bounds.h" header is created by the > kernel. Maybe you've done a "make clean" or "make distclean" in your kernel > sources before? > > So go to "/usr/src/linux" and do a "make prepare". This will generate the > missed "bounds.h" for you. After that, emerge "lirc" again. Worked fine for > me... > status?
(In reply to comment #3) > So go to "/usr/src/linux" and do a "make prepare". This will generate the > missed "bounds.h" for you. After that, emerge "lirc" again. Worked fine for > me... Just ran into this myself. I did indeed "make clean" my kernel, and a "make prepare" was enough for lirc to compile again.
uranus linux-2.6.31-gentoo-r6 # time genkernel --kernel-config="/config-2.6.26-2-xen-amd64.debian-01" --disklabel --dmraid all * Gentoo Linux Genkernel; Version 3.4.10.906 * Running with options: --kernel-config=/config-2.6.26-2-xen-amd64.debian-01 --disklabel --dmraid all grep: /usr/src/linux/.config: No such file or directory * Linux Kernel 2.6.31-gentoo-r6 for x86_64... * kernel: >> Running mrproper... * config: Using config from /config-2.6.26-2-xen-amd64.debian-01 * Previous config backed up to .config.bak * >> Running oldconfig... * kernel: >> Cleaning... * >> Compiling 2.6.31-gentoo-r6-hmmm-01 bzImage... * ERROR: Failed to compile the "bzImage" target... * -- Grepping log... -- SHIPPED scripts/genksyms/parse.h SHIPPED scripts/genksyms/keywords.c SHIPPED scripts/genksyms/parse.c HOSTCC scripts/genksyms/lex.o scripts/genksyms/lex.c: In function âyylex1â: scripts/genksyms/lex.l:97: warning: ignoring return value of âfwriteâ, declared with attribute warn_unused_result -- MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/genksyms/parse.o HOSTCC scripts/mod/modpost.o scripts/mod/modpost.c: In function âget_markersâ: scripts/mod/modpost.c:1562: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result scripts/mod/modpost.c: In function âadd_markerâ: scripts/mod/modpost.c:1982: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result HOSTLD scripts/genksyms/genksyms HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/kallsyms CLEAN /usr/src/linux-2.6.31-gentoo-r6 scripts/kallsyms.c: In function âread_symbolâ: scripts/kallsyms.c:112: warning: ignoring return value of âfgetsâ, declared with attribute warn_unused_result -- HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost CC init/main.o HOSTCC usr/gen_init_cpio usr/gen_init_cpio.c: In function âcpio_mkfileâ: usr/gen_init_cpio.c:357: warning: ignoring return value of âfwriteâ, declared with attribute warn_unused_result In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from init/main.c:13: include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory include/linux/mmzone.h:251:5: warning: "MAX_NR_ZONES" is not defined In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from init/main.c:13: include/linux/mmzone.h:288: error: âMAX_NR_ZONESâ undeclared here (not in a function) In file included from include/linux/security.h:31, from init/main.c:35: include/linux/mm.h:444:63: warning: "NR_PAGEFLAGS" is not defined include/linux/mm.h:492:62: warning: "NR_PAGEFLAGS" is not defined GEN usr/initramfs_data.cpio AS usr/initramfs_data.o make[1]: *** [init/main.o] Error 1 make: *** [init] Error 2 make: *** Waiting for unfinished jobs.... LD usr/built-in.o * Gentoo Linux Genkernel; Version 3.4.10.906 * Running with options: --kernel-config=/config-2.6.26-2-xen-amd64.debian-01 --disklabel --dmraid all * ERROR: Failed to compile the "bzImage" target... * -- End log... -- * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively. * * Please do *not* report compilation failures as genkernel bugs! * real 0m12.718s user 0m9.897s sys 0m2.916s uranus linux-2.6.31-gentoo-r6 #
Created attachment 216321 [details] config file uranus linux-2.6.31-gentoo-r6 # emerge -va gentoo-sources [...] Calculating dependencies... done! [ebuild R ] sys-kernel/gentoo-sources-2.6.31-r6 USE="-build -symlink" 0 kB
Created attachment 216322 [details] the config Could repro the same error in a slightly different configuration, different configuration, against sys-kernel/xen-sources-2.6.31-r10 during the "modules" target (still in genkernel). make clean make mrproper did not help.