Rebuild of ATI drivers version 8.40.4 with new Kernel src 2.6.24 does not finish successfully Reproducible: Always Steps to Reproduce: 1.After upgrading kernel to 2.6.24 2.module-rebuild rebuild Actual Results: * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/2.6.24-gentoo/build * Found sources for kernel version: * 2.6.24-gentoo >>> Unpacking source... * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ... [ ok ] >>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/port age/x11-drivers/ati-drivers-8.40.4/work/extra * Applying ati-drivers-8.40.4-warnings.patch ... [ ok ] * Applying ati-drivers-2.6.23.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work . .. * Preparing fglrx module make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/ common/lib/modules/fglrx/build_mod/2.6.x modules make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo' CC [M] /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modu les/fglrx/build_mod/2.6.x/firegl_public.o /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/ build_mod/2.6.x/firegl_public.c: In function '__ke_check_pci': /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/ build_mod/2.6.x/firegl_public.c:1858: error: implicit declaration of function 'pci_find_slot' /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/ build_mod/2.6.x/firegl_public.c:1858: warning: assignment makes pointer from i nteger without a cast /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/ build_mod/2.6.x/firegl_public.c: In function '__ke_pte_phys_addr_str': /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/ build_mod/2.6.x/firegl_public.c:3412: warning: too few arguments for format make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/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.40.4/work/com mon/lib/modules/fglrx/build_mod/2.6.x] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo' make: *** [kmod_build] Error 2 * * ERROR: x11-drivers/ati-drivers-8.40.4 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_comp ile' * ebuild.sh, line 44: Called src_compile * ati-drivers-8.40.4.ebuild, line 177: Called linux-mod_src_com pile * linux-mod.eclass, line 519: Called die * The specific snippet of code: * emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KER NEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \ * e--(84%) ${BUILD_FIXES} ${BUILD_PARAMS} ${BUI LD_TARGETS} \ * || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." * The die message: * Unable to make GCC_VER_MAJ=4 KVER=2.6.24-gentoo KDIR=/usr/src/ linux kmod_build.
Since you've keyworded gentoo-sources, you may as well keyword ati-drivers. Either that, or un-keyword gentoo-sources.
Reopen, we'll need something newer stable for 2.6.24.
nothing newer is needed. The check was not performed to ensure pci_legacy was built into the kernel which ati-drivers currently depends on.
(In reply to comment #1) > Since you've keyworded gentoo-sources, you may as well keyword ati-drivers. > Either that, or un-keyword gentoo-sources. > Jeff just go into the ebuild and add a check the same check I put in the 8.452 ebuild on PCI_LEGACY. This is the best solution to resolve the problem the new driver is too new to go to stable IMO.
Done deal.
1. emerge --sync 2. Added CONFIG_PCI_LEGACY=y in my config and compile/install the new kernel 3. Reboot into new kernel and issue "module-rebuild rebuild" which completed successfully.