Created attachment 434770 [details] build output / log Hu guys, i've hit a bug when compiling ati-drivers (fglrx / ATI/AMD graphic drivers) with the new 4.6.0 kernel. Swotching to the latest 4.5 kernel works instead. I get this: /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_UnlockUserPages’: /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3277:9: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration] page_cache_release((struct page*)page_list[i]); ^ /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level: /var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6495:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function] static int KCL_fpu_save_init(struct task_struct *tsk) ^ cc1: some warnings being treated as errors scripts/Makefile.build:291: recipe for target '/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-15.12-r1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1 Following the kernel lists it seems to me related to some of the the 4.6 kernel changes in memory page handling - so possibly the driver has to be adapted to 4.6 yet - but just an idea... hth, many thanks, Niels.
Created attachment 435102 [details, diff] Kernel 4.6+ patch
Hopefully it works for you...
I had the same problem (failed build of ati-drivers-15.12-r1 on kernel 4.6.0). Patch attached Marcin fixed the issue. It builds, X runs.
Works as expected with kernel 4.6.0-gentoo Many thanks!!! btw: Pls note if i should send my regarding ebuild patch (just placed patch into "files" and call it by "epatch" in the ebuilds epatch section) to anyone here (if not automatically goes into portage upstream)? Seems not in portage yet. best regards, Niels.
Easier to put it as eg. /etc/portage/patches/x11-drivers/ati-drivers/kernel-4.6.patch and build it (as I do) as ati-drivers supports user provided patches (epatch_user directive).
*** Bug 586076 has been marked as a duplicate of this bug. ***
Created attachment 442216 [details, diff] Kernel 4.7+ patch Patch for Kernels 4.7+
Created attachment 455962 [details, diff] Fix for 4.9 kernel This patch allows ati-drivers to compile on kernel 4.9. Tested with gentoo-sources-4.9.0. Assumes that kernel-4.6.patch from this thread has already been applied.
Created attachment 464540 [details, diff] Kernel 4.10 patch Patch for Linux 4.10, needs the previous patches. Tested with ati-drivers 15.9-r1 as 15.12 has problems with my setup, but so far the same patches have worked.
*** Bug 575248 has been marked as a duplicate of this bug. ***
x11-drivers/ati-drivers has been removed, per bug 582406.