View previous topic :: View next topic |
Author |
Message |
stofferthebest Tux's lil' helper
Joined: 31 Jul 2003 Posts: 114 Location: Denmark
|
Posted: Mon May 24, 2004 4:53 pm Post subject: ati-drivers compile problem |
|
|
I have A problem, when I try to compile ati-drivers, it succes, but it havn't compile the fglrx.ko modul , so when I type
I got this error:
Code: | FATAL: Module fglrx not found. |
And If I take a closer look, when it compile the drivers I can se it make an error, but why?
Here is what happen, when I compile the ati-drivers:
Code: |
#emerge ati-drivers
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/ati-drivers-3.2.8-r1 to /
>>> md5 src_uri ;-) fglrx-glc22-4.3.0-3.2.8.i586.rpm
>>> Unpacking source...
found gzip magic bytes
trying to decompress with gzip... OK
* applying fglrx-3.2.8-fix-amd-adv-spec.patch
patching file firegl_public.c
* applying fglrx-2.6-vmalloc-vmaddr.patch
patching file firegl_public.c
>>> Source unpacked.
* building the glx module
make: Entering directory `/usr/src/linux-2.6.6-love4'
CC [M] /var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod/agp3.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod/nvidia-agp.o
CC [M] /var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod/agpgart_be.o
/var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c: In function `agp_generic_alloc_page':
/var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod/agpgart_be.c:1405: error: structure has no member named `count'
make[1]: *** [/var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod/agpgart_be.o] Error 1
make: *** [/var/tmp/portage/ati-drivers-3.2.8-r1/work/lib/modules/fglrx/build_mod] Error 2
make: Leaving directory `/usr/src/linux-2.6.6-love4'
* glx module not built
* cleaning
nostrip
>>> Install ati-drivers-3.2.8-r1 into /var/tmp/portage/ati-drivers-3.2.8-r1/image/ category media-video
install: cannot stat `lib/modules/fglrx/build_mod/fglrx.ko': No such file or directory
man:
making executable: /usr/X11R6/lib/libfglrx_gamma.so.1.0
>>> Completed installing into /var/tmp/portage/ati-drivers-3.2.8-r1/image/
>>> Merging media-video/ati-drivers-3.2.8-r1 to /
--- /etc/
--- /etc/env.d/
>>> /etc/env.d/09ati
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.6-love4/
--- /lib/modules/2.6.6-love4/video/
--- /opt/
--- /opt/ati/
--- /opt/ati/bin/
>>> /opt/ati/bin/fglrx_xgamma
>>> /opt/ati/bin/fglrxconfig
>>> /opt/ati/bin/fglrxinfo
--- /usr/
--- /usr/X11R6/
--- /usr/X11R6/bin/
--- /usr/X11R6/include/
--- /usr/X11R6/include/X11/
--- /usr/X11R6/include/X11/extensions/
>>> /usr/X11R6/include/X11/extensions/fglrx_gamma.h
--- /usr/X11R6/lib/
>>> /usr/X11R6/lib/libfglrx_gamma.a
>>> /usr/X11R6/lib/libfglrx_gamma.so.1.0
--- /usr/X11R6/lib/modules/
--- /usr/X11R6/lib/modules/dri/
>>> /usr/X11R6/lib/modules/dri/fglrx_dri.so
--- /usr/X11R6/lib/modules/drivers/
>>> /usr/X11R6/lib/modules/drivers/fglrx_drv.o
--- /usr/X11R6/lib/modules/linux/
>>> /usr/X11R6/lib/modules/linux/libfglrxdrm.a
--- /usr/include/
--- /usr/include/GL/
>>> /usr/include/GL/glxATI.h
--- /usr/lib/
--- /usr/lib/opengl/
--- /usr/lib/opengl/ati/
>>> /usr/lib/opengl/ati/extensions -> ../xfree/extensions
>>> /usr/lib/opengl/ati/include -> ../xfree/include
>>> /usr/lib/opengl/ati/lib/
>>> /usr/lib/opengl/ati/lib/libGL.la -> ../../xfree/lib/libGL.la
>>> /usr/lib/opengl/ati/lib/libGL.so.1.2
>>> /usr/lib/opengl/ati/lib/libMesaGL.so -> libGL.so.1.2
--- /usr/src/
>>> /usr/lib/opengl/ati/lib/libGL.so -> libGL.so.1.2
>>> /usr/lib/opengl/ati/lib/libGL.so.1 -> libGL.so.1.2
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/lib/opengl/ati/lib/libGL.so.1.2
--- !mtime obj /usr/include/GL/glxATI.h
--- !mtime obj /usr/X11R6/lib/modules/linux/libfglrxdrm.a
--- !mtime obj /usr/X11R6/lib/modules/drivers/fglrx_drv.o
--- !mtime obj /usr/X11R6/lib/modules/dri/fglrx_dri.so
--- !mtime obj /usr/X11R6/lib/libfglrx_gamma.so.1.0
--- !mtime obj /usr/X11R6/lib/libfglrx_gamma.a
--- !mtime obj /usr/X11R6/include/X11/extensions/fglrx_gamma.h
--- !mtime obj /opt/ati/bin/fglrxinfo
--- !mtime obj /opt/ati/bin/fglrxconfig
--- !mtime obj /opt/ati/bin/fglrx_xgamma
--- cfgpro dir /lib/modules/2.6.6-love4/video
--- cfgpro dir /lib/modules/2.6.6-love4
--- !mtime obj /etc/env.d/09ati
--- cfgpro dir /etc/env.d
--- !empty dir /usr/src
--- !empty dir /usr/lib/opengl/ati/lib
--- !empty dir /usr/lib/opengl/ati
--- !empty dir /usr/lib/opengl
--- !empty dir /usr/lib
--- !empty dir /usr/include/GL
--- !empty dir /usr/include
--- !empty dir /usr/X11R6/lib/modules/linux
--- !empty dir /usr/X11R6/lib/modules/drivers
--- !empty dir /usr/X11R6/lib/modules/dri
--- !empty dir /usr/X11R6/lib/modules
--- !empty dir /usr/X11R6/lib
--- !empty dir /usr/X11R6/include/X11/extensions
--- !empty dir /usr/X11R6/include/X11
--- !empty dir /usr/X11R6/include
--- !empty dir /usr/X11R6/bin
--- !empty dir /usr/X11R6
--- !empty dir /usr
--- !empty dir /opt/ati/bin
--- !empty dir /opt/ati
--- !empty dir /opt
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
--- !targe sym /usr/lib/opengl/ati/lib/libMesaGL.so
--- !targe sym /usr/lib/opengl/ati/lib/libGL.so.1
--- !targe sym /usr/lib/opengl/ati/lib/libGL.so
--- !targe sym /usr/lib/opengl/ati/lib/libGL.la
--- !targe sym /usr/lib/opengl/ati/include
--- !targe sym /usr/lib/opengl/ati/extensions
>>> original instance of package unmerged safely.
* To switch to ATI OpenGL, run "opengl-update ati"
* To change your XF86Config you can use the bundled "fglrxconfig"
* This is a driver only ebuild, for the optional application please
* emerge ati-drivers-extra
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
>>> media-video/ati-drivers-3.2.8-r1 merged.
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
#
|
is they someone they know have to solve this problem?
greetings
stofferthebest |
|
Back to top |
|
|
gralves Guru
Joined: 20 May 2003 Posts: 389 Location: Sao Paulo, Brazil
|
|
Back to top |
|
|
stofferthebest Tux's lil' helper
Joined: 31 Jul 2003 Posts: 114 Location: Denmark
|
Posted: Mon May 24, 2004 7:16 pm Post subject: |
|
|
I have download the fixed ebuild now, but know I got the a new error:
Code: |
* Applying fglrx-3.7.6-r2-regparm.patch... [ ok ]
* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /usr/portage/media-video/ati-drivers/files/2.6.6-count.patch
!!! ERROR: media-video/ati-drivers-3.7.6-r2 failed.
!!! Function epatch, Line 182, Exitcode 0
!!! Cannot find $EPATCH_SOURCE!
|
but where to download this patch: 2.6.6-count.patch ? |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Mon May 24, 2004 7:45 pm Post subject: |
|
|
The patch was posted in that bug report IIRC. Somewhere near the bottom, it's only about 20 lines or so. Just copy and paste into a file called "2.6.6-count.patch" and place it in "/usr/portage/media-video/ati-drivers/files". _________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
stofferthebest Tux's lil' helper
Joined: 31 Jul 2003 Posts: 114 Location: Denmark
|
Posted: Mon May 24, 2004 8:01 pm Post subject: |
|
|
I can't find it , can you post the code, if you know where it is? |
|
Back to top |
|
|
Wedge_ Advocate
Joined: 08 Aug 2002 Posts: 3614 Location: Scotland
|
Posted: Mon May 24, 2004 8:32 pm Post subject: |
|
|
From comment #8 on the bugzilla thread: Code: | --- agpgart_be.c.orig 2004-05-14 21:39:19.943584512 +0000
+++ agpgart_be.c 2004-05-14 21:39:28.140338416 +0000
@@ -1402,7 +1402,7 @@ unsigned long agp_generic_alloc_page(voi
}
#endif
- atomic_inc(&page->count);
+ get_page(page);
set_bit(PG_locked, &page->flags);
atomic_inc(&agp_bridge.current_memory_agp);
@@ -4413,7 +4413,7 @@ static unsigned long ali_alloc_page(void
if (page == NULL)
return 0;
- atomic_inc(&page->count);
+ get_page(page);
set_bit(PG_locked, &page->flags);
atomic_inc(&agp_bridge.current_memory_agp);
--- firegl_public.c.orig 2004-05-14 21:38:53.296635464 +0000
+++ firegl_public.c 2004-05-14 21:40:28.492163544 +0000
@@ -2052,7 +2052,7 @@ static vm_nopage_ret_t vm_shm_nopage(str
pMmPage = virt_to_page(kaddr);
#endif /* LINUX_VERSION_CODE < 0x020400 */
- atomic_inc(&(pMmPage->count)); /* inc usage count of page */
+ get_page(pMmPage); /* inc usage count of page */
#if LINUX_VERSION_CODE >= 0x020400
// __KE_DEBUG3("vm-address 0x%08lx => kernel-page-address 0x%p\n", |
_________________ Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ |
|
Back to top |
|
|
|