This is more of a solution than a bug. Attached please find the stuff (ebuild and patches) for compiling ati-drivers-8.501 againt current stable kernel (2.6.26). These patches come from Ubuntu but required some reworking as they were created against a somewhat different version of ati-drivers apparently, it seems. Reproducible: Always
Created attachment 160329 [details] x11-drivers/ati-drivers overlay
Please attach the files as plain text. We do not dig in tarballs.
Created attachment 160332 [details] modified ati-drivers-8.501 ebuild
Created attachment 160333 [details] patch 0001
Created attachment 160334 [details] patch 0003
Created attachment 160335 [details] patch 0004
Created attachment 160336 [details] patch 0005 (yes, patch 0002 is not used, this numbering came from the Ubuntu bugreport)
*** Bug 232095 has been marked as a duplicate of this bug. ***
Thanks! The ebuild is working fine for me on amd64.
Strangely, in my case, it doesn't work (x86) : >>> Building (1 of 1) x11-drivers/ati-drivers-8.501 for / * ati-driver-installer-8-6-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/2.6.26-gentoo/build * Found sources for kernel version: * 2.6.26-gentoo >>> Unpacking source... Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-8.501/work Verifying archive integrity... All good. Uncompressing ATI Proprietary Linux Driver-8.501.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. * Applying 0001-Linux-2.6.25.x-kernels-support.patch ... [ ok ] * Applying 0003-GCC-complains-return-with-a-value-in-function-ret.patch ... [ ok ] * Applying 0004-Linux-2.6.26.x-kernels-firegl_public.c.patch ... [ ok ] * Applying 0005-Linux-2.6.26.x-kernels-firegl_public.h.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-8.501/work/extra >>> Source unpacked. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-8.501/work ... * Preparing fglrx module make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/linux-2.6.26-gentoo' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'do_vm_shm_nopage': /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3376: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3378: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3379: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3382: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_vm_phys_addr_str': /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3817: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3818: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3819: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3821: warning: return makes pointer from integer without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level: /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3833: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3833: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3851: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3851: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3858: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3858: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3865: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3865: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3872: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3872: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3879: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3879: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3886: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3886: warning: initialization from incompatible pointer type /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895: error: unknown field 'nopage' specified in initializer /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3895: warning: initialization from incompatible pointer type make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-8.501/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-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.26-gentoo' make: *** [kmod_build] Error 2
(In reply to comment #10) > error: unknown field 'nopage' specified in initializer > /var/tmp/portage/x11-drivers/ati-drivers-8.501/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3879: [...] Try running a vanilla 2.6.26 kernel (with an otherwise identical config). I don't run gentoo-sources, so there may be some patch incompatibility. You may also be missing something in your kernel, have a diff with my config: http://theka.tk/2.6.26-config -- maybe something useful will show up.
I'm sorry : my downloaded version of patch was corrupted. Now, it works. Thank you !
Thanks , works for me. I use sys-kernel/tuxonice-sources 2.6.26 .
Is there an older version of ati-drivers that DOES work with this kernel version for those of us not confident with patching without a full set of instructions? If not, I'll just stick with 2.6.23-gentoo-r4.
(In reply to comment #14) > Is there an older version of ati-drivers that DOES work with this kernel > version for those of us not confident with patching without a full set of > instructions? Actually all needed to automate the process is right here. Copy your portage ati-drivers directory to an overlay, add the files listed here (ebuild goes into the main ati-drivers directory, patches go to the files/ subdirectory), and emerge away.
ATI released a new 8.512 release of the drivers. Can anyone be bothered to port the patches over to the new release? 0004 does not seem to apply cleanly. Others do.
I can also confirm the patches worked for me on 2.6.26-tuxonice x86.
I can confirm that this works on amd64. I'm using gentoo-sources-2.6.26-r1.
any reason this isnt in portage yet_
works on x86 2.6.26-r1
With sys-kernel/gentoo-sources-2.6.26-r1: - x11-drivers/ati-drivers-8.512 fails with the same errors. - x11-drivers/ati-drivers-8.522 works fine.
x11-drivers/ati-drivers-8.522 works with sys-kernel/gentoo-sources-2.6.26-r1. I do not have DRI working yet. I think it is a different problem.
works for me on that kernel
As Antti Järvinen stated that this works on amd64 with gentoo-sources-2.6.26-r1, I thought I should give it a try. (same kernel) Well, it compiles fine, but... With DRM in the kernel I get: * You have DRM support enabled builtin, the direct rendering will not work. ... * Updating module dependencies for 2.6.26-gentoo ... WARNING: Couldn't find symtab and strtab in module //lib/modules/2.6.26-gentoo/x11-drm/drm.ko WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_get_dev WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_handle_vblank WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_cleanup_pci WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_vblank_init However, without DRM in the kernel it's even worse: * Updating module dependencies for 2.6.26-gentoo ... WARNING: Couldn't find symtab and strtab in module //lib/modules/2.6.26-gentoo/x11-drm/drm.ko WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_open WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_fasync WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_poll WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_get_resource_len WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_core_get_reg_ofs WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_irq_uninstall WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_get_dev WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_ioctl WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_exit WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_getsarea WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_debug WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_core_ioremapfree WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_core_get_map_ofs WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_init WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_addmap WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_get_resource_start WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_handle_vblank WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_cleanup_pci WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_ati_pcigart_init WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_vblank_init WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_core_ioremap WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_mmap WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_order WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_ati_pcigart_cleanup WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_compat_ioctl WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_core_reclaim_buffers WARNING: //lib/modules/2.6.26-gentoo/x11-drm/radeon.ko needs unknown symbol drm_release 8.522 has the same problem as the (patched) 8.501 Does x11-drm have anything to do with this? The only version I can actually emerge is the masked x11-drm-20080710. (Doesn't help however)
The patch worked for me. Why isn't this in portage? I spent the past 4 hours banging my head against the wall trying to this fixed.
D. Stiefe1maier I don't know what are you doing, you are messing up with the opensource drm module. (that supposedly complains since you removed the drm infrastructure.) The latest closed source driver works with the 2.6.26 kernels without any patch and upstream is working hard to get their next release working with .27. sargun dhillon the latest version works flawlessly with 2.6.26-r1.
> D. Stiefe1maier I don't know what are you doing, you are messing up with the > opensource drm module. (that supposedly complains since you removed the drm > infrastructure.) What exactly do you mean by this? As quoted, the ati-drivers says it won't run with drm enabled in the kernel. so I removed it and i end up having symbols missing. With drm enabled, there are missing symbols, too, but less. also, the only x11-drm that compiles, is hard masked on amd64. And as the driver seems not depend on it, i removed it. I guess I tried every combination. Kernel with and without drm, drivers version 8.501 patched and unpatched, and version 8.522, but always missing symbol warnings at the end of emerge or on "make && make modules_install" I would assume that there is a check or a dependency missing in ati-drivers. Where should those symbols come from? If they are supposed to come from the drm-module, why does the ebuild say drm should be disabled in the kernel? Quote: "You have DRM support enabled builtin, the direct rendering will not work." If you think I messed up, please tell me how. I tried to follow the instructions that were available to me. > The latest closed source driver works with the 2.6.26 kernels without any patch > and upstream is working hard to get their next release working with .27. amd64 too?
I see that this bug is marked RESOLVED, but don't exactly understand why: these patches don't seem to be in portage yet? At least when I emerge the currently stable gentoo-sources 2.6.26-gentoo-r4 and the currently stable x11-drivers/ati-drivers-8.501, I still get the errors documented here.
x11-drivers/ati-drivers-8.501 still fails to build on gentoo-sources-2.6.26-r4. After patching it builds successfully.