Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208776 - ati-drivers-8.40.4 does not rebuild with Kernel-2.6.24
Summary: ati-drivers-8.40.4 does not rebuild with Kernel-2.6.24
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeffrey Gardner (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.24
  Show dependency tree
 
Reported: 2008-02-03 18:27 UTC by alfredo perez
Modified: 2008-02-05 13:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alfredo perez 2008-02-03 18:27:27 UTC
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.
Comment 1 Jeffrey Gardner (RETIRED) gentoo-dev 2008-02-03 19:26:29 UTC
Since you've keyworded gentoo-sources, you may as well keyword ati-drivers.
Either that, or un-keyword gentoo-sources.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-03 22:07:33 UTC
Reopen, we'll need something newer stable for 2.6.24.
Comment 3 Jory A. Pratt gentoo-dev 2008-02-03 22:29:52 UTC
nothing newer is needed. The check was not performed to ensure pci_legacy was built into the kernel which ati-drivers currently depends on.
Comment 4 Jory A. Pratt gentoo-dev 2008-02-04 14:48:25 UTC
(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.
Comment 5 Jeffrey Gardner (RETIRED) gentoo-dev 2008-02-04 18:25:18 UTC
Done deal.
Comment 6 alfredo perez 2008-02-05 13:38:18 UTC
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.