Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96122 - ati-drivers-8.14.13-r1 fail to compile with kernel 2.6.12-rc6
Summary: ati-drivers-8.14.13-r1 fail to compile with kernel 2.6.12-rc6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-14 12:52 UTC by Martin Wegner
Modified: 2005-08-04 11:05 UTC (History)
7 users (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 Martin Wegner 2005-06-14 12:52:49 UTC
Emerging ati-drivers-8.14.13-r1 fails with the following:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.12-rc6-mw
 * Checking for MTRR support enabled ...                                       
                                                                               
    [ ok ]
 * Checking for AGP support enabled ...                                        
                                                                               
    [ ok ]
 * Checking for DRM support disabled ...                                       
                                                                               
    [ ok ]
 * X11 implementation is xorg-x11.
>>> Unpacking source...
>>> Unpacking fglrx_6_8_0-8.14.13-1.i386.rpm
 * Applying fglrx-2.6.10-pci_get_class.patch ...                               
                                                                               
    [ ok ]
 * Applying 8.8.25-via-amd64.patch ...                                         
                                                                               
    [ ok ]
 * Applying 8.8.25-smp.patch ...                                               
                                                                               
    [ ok ]
>>> Source unpacked.
 * Building the DRM module...
make: Entering directory `/usr/src/linux-2.6.12-rc6'
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agp3.o
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/nvidia-agp.o
  CC [M] 
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.o
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:
In function `agp_find_supported_device':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7159:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7179:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7184:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7210:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7230:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7250:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7255:
error: structure has no member named `slot_name'
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:
In function `__fgl_agp_init':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7636:
warning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:
In function `__fgl_agp_cleanup':
/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:7646:
warning: `pm_unregister_all' is deprecated (declared at include/linux/pm.h:116)
make[1]: ***
[/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod/agpgart_be.o]
Error 1
make: ***
[_module_/var/tmp/portage/ati-drivers-8.14.13-r1/work/lib/modules/fglrx/build_mod]
Error 2
make: Leaving directory `/usr/src/linux-2.6.12-rc6'
 * DRM module not built

Kernel is vanilla-sources-2.6.12_rc6 .

Reproducible: Always
Steps to Reproduce:
1. emerge "=ati-drivers-8.14.13-r1"
2.
3.

Actual Results:  
Fails to compile. Direct rendering broken.

Expected Results:  
Should compile.

% emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-rc6-mw i686)
=================================================================
System uname: 2.6.12-rc6-mw i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa apache2 apm avi bash-completion berkdb
bitmap-fonts bonobo bzip2 bzlib cdparanoia cdr crypt cups curl dedicated dga
divx4linux doc dvd dvdr eds emboss encode escreen fam fbcon flac foomaticdb
fortran gd gdbm gif gimpprint gnome gstreamer gtk gtk2 i8x0 imagemagick imap
imlib ipv6 java jpeg jpeg2k libg++ libwww mad mailwrapper mbox mmx motif
mozdevelop mozilla mozsvg mp3 mpeg mysql ncurses nls no-htdocs ogg oggvorbis
opengl oss pam pcre pdflib perl png python quicktime readline real rtc ruby
samba sdl silverxp slang spell sse ssl stencil-buffer svg svga tcltk tcpd tetex
tiff truetype truetype-fonts type1-fonts userlocales vim-with-x vorbis
win32codecs xanim xchattext xine xml xml2 xmms xprint xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Algardas Pelakauskas 2005-06-19 02:35:18 UTC
Same here, but with gentoo-sources-2.6.12.
Comment 2 Luca Barbato gentoo-dev 2005-06-19 03:41:20 UTC
I'll work on it
Comment 3 Luca Barbato gentoo-dev 2005-06-19 07:47:38 UTC
fix in cvs please wait a bit and test it
Comment 4 apache 2005-06-19 14:16:58 UTC
Building the module now works, but loading the module fails:

fglrx: Unknown symbol inter_module_get

That error appears also as a warning during the build process.
Comment 5 Luca Barbato gentoo-dev 2005-06-19 14:23:36 UTC
I fixed that one, but looks like that there is still something wrong (at least
here it can't work correctly)
Comment 6 apache 2005-06-19 22:26:10 UTC
Comment #23 here is interesting:

http://ati.cchtml.com/show_bug.cgi?id=136

It might depend on the usage of the internal or external agp module.
Comment 7 Mikkel Erup 2005-06-21 06:22:11 UTC
this patch http://lems1.kiskeyix.org/downloads/fglrx-2.6.12-rc6-2005-06-14.diff.gz
makes this driver work here with the 2.6.12 kernel if I add "UseInternalAGPGART"
"yes" to xorg.conf
Comment 8 Stefan de Konink 2005-06-22 16:28:20 UTC
2.6.11 works for me, but 2.6.12 gives the famous xf86_ENODEV error or hangs with
a also famous VGA _ cursor left top while starting X. Vesa driver works.
Comment 9 Miroslav Šulc gentoo-dev 2005-06-25 00:50:18 UTC
I have upgraded kernel to gentoo-sources-2.6.12-r1 and re-emerged ati-drivers.
When re-emerging ati-drivers, there were only some warnings and fglrx compiled.
I had to reboot several times (two or three times, I don't remeber exactly) and
then fglrx started to work. I don't know how to test whether it uses its full
potential but it works for the things I use it for (video, OpenGL screensaver etc.).
Comment 10 apache 2005-06-29 11:30:37 UTC
(In reply to comment #9)
> I have upgraded kernel to gentoo-sources-2.6.12-r1 and re-emerged ati-drivers.
> When re-emerging ati-drivers, there were only some warnings and fglrx compiled.
> I had to reboot several times (two or three times, I don't remeber exactly) and
> then fglrx started to work. I don't know how to test whether it uses its full
> potential but it works for the things I use it for (video, OpenGL screensaver
etc.).

Here's how you can test it:

Run glxgears unter 2.6.11, notice the 3rd value (after 15 seconds) and do the
same for 2.6.12, if the module works fully, the values shouldn't differ more
then a few frames.
Comment 11 Miroslav Šulc gentoo-dev 2005-06-29 23:40:41 UTC
I have no longer kernel 2.6.11-* in my system but I'm sure the driver works. Now
I'm on gentoo-sources-2.6.12-r2. Here is the output:

$ glxgears
7772 frames in 5.0 seconds = 1554.400 FPS
9675 frames in 5.0 seconds = 1935.000 FPS
10042 frames in 5.0 seconds = 2008.400 FPS
10028 frames in 5.0 seconds = 2005.600 FPS
10043 frames in 5.0 seconds = 2008.600 FPS
10046 frames in 5.0 seconds = 2009.200 FPS

After several reboots appeared another problem - the same problem as mentioned
in bug 97093.
Comment 12 apache 2005-06-30 09:44:27 UTC
(In reply to comment #11)
> I have no longer kernel 2.6.11-* in my system but I'm sure the driver works. Now
> I'm on gentoo-sources-2.6.12-r2. Here is the output:
> 
> $ glxgears
> 7772 frames in 5.0 seconds = 1554.400 FPS
> 9675 frames in 5.0 seconds = 1935.000 FPS
> 10042 frames in 5.0 seconds = 2008.400 FPS
> 10028 frames in 5.0 seconds = 2005.600 FPS
> 10043 frames in 5.0 seconds = 2008.600 FPS
> 10046 frames in 5.0 seconds = 2009.200 FPS
> 
> After several reboots appeared another problem - the same problem as mentioned
> in bug 97093.

Ok, here is what I got:

2.6.11: 4550 FPS
2.6.12 - external AGP: 150 FPS
2.6.12 - internal AGP: 4540 FPS
Comment 13 apache 2005-06-30 12:48:45 UTC
Just as info:

The problems after leaving a kde session are existent for me too.
Comment 14 Miroslav Šulc gentoo-dev 2005-07-02 10:42:10 UTC
I have installed gentoo-sources-2.6.12-r3 and re-emerged ati-drivers and till
now the driver works without problems.
Comment 15 Luca Barbato gentoo-dev 2005-08-04 11:05:01 UTC
Marked as fixed then