Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438516 - x11-drivers/ati-drivers-12.9_beta fails with kernel 3.7-rc
Summary: x11-drivers/ati-drivers-12.9_beta fails with kernel 3.7-rc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 21:47 UTC by Fabio Rossi
Modified: 2012-12-28 19:46 UTC (History)
1 user (show)

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


Attachments
ati-drivers-kernel-3.7-vmreserved.patch (ati-drivers-kernel-3.7-vmreserved.patch,410 bytes, patch)
2012-10-19 12:32 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2012-10-15 21:47:28 UTC
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.
Comment 1 Lukas Elsner 2012-10-18 13:55:18 UTC
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
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-18 13:58:56 UTC
(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.
Comment 3 Lukas Elsner 2012-10-18 23:41:58 UTC
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 $
Comment 4 Lukas Elsner 2012-10-19 09:11:09 UTC
so should i open another bug?

I already tried 

 * # cd /usr/src/linux
 * # make oldconfig
 * # make modules_prepare
Comment 5 Fabio Rossi 2012-10-19 12:32:01 UTC
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
Comment 6 emil karlson 2012-10-21 13:29:41 UTC
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
Comment 7 emil karlson 2012-10-21 22:37:49 UTC
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
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-26 14:24:48 UTC
Fixed in CVS.
Comment 9 Fabio Rossi 2012-10-26 16:19:12 UTC
(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!
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-26 17:38:08 UTC
patch was now added to the legacy driver too.
Comment 12 Awad Mackie 2012-12-28 18:51:42 UTC
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.
Comment 13 Fabio Rossi 2012-12-28 19:46:01 UTC
(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 ;-)