Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234386 - app-misc/lirc-0.8.3-r2 / gentoo-sources-2.6.26 - include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
Summary: app-misc/lirc-0.8.3-r2 / gentoo-sources-2.6.26 - include/linux/mmzone.h:18:26...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-10 15:54 UTC by Dave
Modified: 2010-01-13 01:24 UTC (History)
1 user (show)

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


Attachments
emerge --info (spock.info,16.51 KB, text/plain)
2008-08-10 15:55 UTC, Dave
Details
build.log (build.log,16.92 KB, text/plain)
2008-08-10 15:55 UTC, Dave
Details
config file (config-2.6.26-2-xen-amd64.debian-01,86.33 KB, text/plain)
2010-01-13 01:15 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details
the config (config-2.6.26-2-xen-amd64.debian-02,85.89 KB, text/plain)
2010-01-13 01:24 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave 2008-08-10 15:54:46 UTC
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
Comment 1 Dave 2008-08-10 15:55:19 UTC
Created attachment 162627 [details]
emerge --info
Comment 2 Dave 2008-08-10 15:55:45 UTC
Created attachment 162629 [details]
build.log
Comment 3 Marco 2008-09-25 16:20:27 UTC
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...
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2009-01-10 13:43:47 UTC
(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?
Comment 5 G.K.MacGregor 2009-06-02 18:36:22 UTC
(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.
Comment 6 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-13 01:13:52 UTC
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 #
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-13 01:15:42 UTC
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
Comment 8 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-13 01:24:50 UTC
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.