Here is the problem: make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/wireless-testing' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_io.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_str.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_iommu.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl.o CC [M] /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_MEM_VM_MapRegion’: /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895:39: error: ‘VM_RESERVED’ undeclared (first use in this function) /var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895:39: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-12.9_beta/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/usr/src/wireless-testing' make: *** [kmod_build] Error 2 The problem is related to the recent kernel commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=314e51b9851b4f4e8ab302243ff5a6fc6147f379 The same applies also to older versions and in particular to the legacy 12.6_beta_pre897.
i am getting this error * These sources have not yet been prepared. * We cannot build against an unprepared tree. * To resolve this, please type the following: * * # cd /usr/src/linux * # make oldconfig * # make modules_prepare * * Then please try merging this module again. * ERROR: x11-drivers/ati-drivers-12.9_beta9000 failed (setup phase): * Kernel sources need compiling first * * Call stack: * ebuild.sh, line 93: Called pkg_setup * ati-drivers-12.9_beta9000.ebuild, line 245: Called linux-mod_pkg_setup * linux-mod.eclass, line 586: Called check_kernel_built * linux-info.eclass, line 639: Called die * The specific snippet of code: * die "Kernel sources need compiling first" the kernel is built and running
(In reply to comment #1) > i am getting this error [...] > the kernel is built and running No, probably there is a mismatch between "uname -r" and "eselect kernel show" on your system. You error is unrelated to this bug in any case.
le@le1558 /lu $ uname -r 3.7.0-rc1 le@le1558 /lu $ eselect kernel show Current kernel symlink: /usr/src/linux-3.7-rc1 le@le1558 /lu $
so should i open another bug? I already tried * # cd /usr/src/linux * # make oldconfig * # make modules_prepare
Created attachment 326930 [details, diff] ati-drivers-kernel-3.7-vmreserved.patch I have create a simple patch to solve the problem, tested and working. The patch can be applied also to the legacy driver 12.6_beta_pre897
This has nothing to do with ati-drivers anyways, it's in linux-info.eclass https://bugs.gentoo.org/show_bug.cgi?id=438876 http://rglinuxtech.com/2012/10/15/3-7-rc1-problems/ workaround, no guarantees: ln -sf /usr/src/linux-3.7-rc2/include/generated/uapi/linux/version.h /usr/src/linux-3.7-rc2/include/linux/version.h (In reply to comment #4) > so should i open another bug? > > I already tried > > * # cd /usr/src/linux > * # make oldconfig > * # make modules_prepare
Added the patch to x11 overlay ati-drivers-12.9_beta9000. The patch should have no effect on older kernels. (In reply to comment #5) > Created attachment 326930 [details, diff] [details, diff] > ati-drivers-kernel-3.7-vmreserved.patch > > I have create a simple patch to solve the problem, tested and working. The > patch can be applied also to the legacy driver 12.6_beta_pre897
Fixed in CVS.
(In reply to comment #8) > Fixed in CVS. Would you mind adding the patch also to the legacy driver ebuild (version 12.6_beta_pre897)? Thanks!
patch was now added to the legacy driver too.
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-12.6_beta_pre897.ebuild?r1=1.8&r2=1.9
This seems to have been removed in the latest ati-drivers-12.6_beta_pre897: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-12.6_beta_pre897.ebuild?r1=1.8&r2=1.9 (line 328) It doesn't build on 3.7 anymore.
(In reply to comment #12) > This seems to have been removed in the latest ati-drivers-12.6_beta_pre897: > > http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/ati- > drivers/ati-drivers-12.6_beta_pre897.ebuild?r1=1.8&r2=1.9 (line 328) > > It doesn't build on 3.7 anymore. A new bug #448656 has been opened too, I think the new bug can be closed as a duplicate of this one as soon as the patch will be enabled again ;-)