* Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/2.6.30-tuxonice-r5/build * Found sources for kernel version: * 2.6.30-tuxonice-r5 * * Please note that this driver supports only graphic cards based on * r600 chipset and newer. * This represent the ATI Radeon HD series at this moment. * * If your card is older then usage of x11-drivers/xf86-video-ati * as replacement is highly recommended. Rather than staying with * old versions of this driver. * For migration informations please reffer to: * http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml * >>> Unpacking source... >>> Source unpacked in /var/tmp/portage/x11-drivers/ati-drivers-9.8/work >>> Preparing source in /var/tmp/portage/x11-drivers/ati-drivers-9.8/work ... * Applying ati-drivers-xen.patch ...  [ ok ] * Applying ati-powermode-opt-path-2.patch ...  [ ok ] * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...  [ ok ] >>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/extra >>> Source prepared. >>> Configuring source in /var/tmp/portage/x11-drivers/ati-drivers-9.8/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-9.8/work ... * Preparing fglrx module make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.30-tuxonice-r5 KDIR=/usr/src/linux kmod_build make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/linux-2.6.30-tuxonice-r5' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:109: include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory include/linux/mmzone.h:256: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 /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:109: include/linux/mmzone.h:290: error: ‘MAX_NR_ZONES’ undeclared here (not in a function) In file included from /usr/src/linux-2.6.30-tuxonice-r5/arch/x86/include/asm/pci.h:4, from include/linux/pci.h:1098, from /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:116: include/linux/mm.h:447:63: warning: "NR_PAGEFLAGS" is not defined include/linux/mm.h:495:62: warning: "NR_PAGEFLAGS" is not defined In file included from /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:449: /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h: In function ‘FGLDRM__vma_info’: /var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:497: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 5 has type ‘phys_addr_t’ make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-9.8/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.30-tuxonice-r5' make: *** [kmod_build] Error 2 * * ERROR: x11-drivers/ati-drivers-9.8 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3471: Called linux-mod_src_compile * environment, line 2678: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.30-tuxonice-r5 KDIR=/usr/src/linux kmod_build * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-9.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-9.8/temp/environment'. * This ebuild is from an overlay named 'local': '/usr/local/portage/' *