Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ERROR: x11-drivers/ati-drivers-8.40.4 failed.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kevinsgs
n00b
n00b


Joined: 16 Oct 2007
Posts: 34

PostPosted: Fri Mar 21, 2008 4:10 am    Post subject: ERROR: x11-drivers/ati-drivers-8.40.4 failed. Reply with quote

Hello I followed the guide http://gentoo-wiki.com/HOWTO_ATI_Drivers

I am using the mm-sources kernel.
I am having problems getting the ati-drivers to compile.
I could not find the Enable VM86 Support option but I did enable Generic x86 Support, System V IPC, MTRR, and my agpgart and agp are compiled as modules.

I get the following error when I try to compile.

Code:
 *
 * ERROR: x11-drivers/ati-drivers-8.40.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3177:  Called linux-mod_src_compile
 *             environment, line 2395:  Called die
 * The specific snippet of code:
 *               emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}.";
 *  The die message:
 *   Unable to make  GCC_VER_MAJ=4 KVER=2.6.25-rc5-mm1 KDIR=/usr/src/linux kmod_build.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/temp/environment'.
 *
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 4:25 am    Post subject: Reply with quote

there must have bee more to the error above that......where the compile died....(/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/temp/build.log will have a copy)
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
kevinsgs
n00b
n00b


Joined: 16 Oct 2007
Posts: 34

PostPosted: Fri Mar 21, 2008 4:41 am    Post subject: Reply with quote

Code:
>>> 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.25-rc5-mm1'
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/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 'KCL_SetPageNoCache':
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1057: warning: 'change_page_attr' is deprecated (declared at include/asm/cacheflush.h:28)
/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 'KCL_PosixSecurityCapGetEffectiveVector':
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1790: error: implicit declaration of function 'cap_t'
/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 'KCL_PosixSecurityCapSetEffectiveVector':
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1798: error: invalid lvalue in assignment
/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_get_vm_phys_addr':
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2307: error: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2307: error: (Each undeclared identifier is reported only once
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2307: error: for each function it appears in.)
/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_get_vm_page_table':
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2329: error: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/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_vm_test_and_clear_dirty':
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2393: error: 'NOPAGE_SIGBUS' undeclared (first use in this function)
/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
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3446: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3446: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3464: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3464: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3471: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3471: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3478: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3478: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3485: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3485: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3492: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3492: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3499: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3499: warning: initialization from incompatible pointer type
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3508: error: unknown field 'nopage' specified in initializer
/var/tmp/portage/x11-drivers/ati-drivers-8.40.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3508: warning: initialization from incompatible pointer type
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/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-rc5-mm1'
make: *** [kmod_build] Error 2


Let me know if you need more info I am totally lost.
Back to top
View user's profile Send private message
kevinsgs
n00b
n00b


Joined: 16 Oct 2007
Posts: 34

PostPosted: Fri Mar 21, 2008 5:01 am    Post subject: Reply with quote

I may have to switch back to gentoo-sources.

The only reason I am using mm-sources is because I cant get my wifi to work with gentoo-sources.

It would suck to choose between wifi and hardware acceleration uhg.

Switched to 2.6.23-gentoo-r9
now wireless works and the ati-drivers compile properly :)

hp ze2308wm laptop's broadcom wireless just doesn't work on 2.6.24-gentoo-r3 with ndiswrapper or kernel drivers.
I used the same .config on all 3 kernels.
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 6:06 am    Post subject: Reply with quote

mighty bleeding edge kernel. I haven't tried to get to 2.6.25 yet. I'm on 2.6.24-zen3

you might try the zen-sources I've had GREAT results with those. Better wifi support than in the mm-set to my understanding.
(at least zen recognizes my AR5006EG

I'm about to compile up the ATI drivers - tomorrow; I'll let you know the results I have I'll be compiling against 2.6.24-zen3 and 2.6.24-zen4 (both pulled via git)
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
sarah.a.happy
n00b
n00b


Joined: 06 Apr 2008
Posts: 1

PostPosted: Sun Apr 06, 2008 4:25 pm    Post subject: success: fglrx and kernel-2.6.25-rc8 Reply with quote

I modified the ebuild for ati-drivers-8.471.3 and added this patch

Code:
--- common/lib/modules/fglrx/build_mod/firegl_public.c.orig     2008-04-06 01:20:21.000000000 -0300
+++ common/lib/modules/fglrx/build_mod/firegl_public.c  2008-04-06 01:17:58.000000000 -0300
@@ -1885,7 +1885,7 @@
  */
 KCL_TYPE_Cap ATI_API_CALL KCL_PosixSecurityCapGetEffectiveVector()
 {
-    return cap_t(current->cap_effective);
+    return (current->cap_effective).cap[0];
 }
 
 /** \brief Set vector of effective security caps for the current process
@@ -1893,7 +1893,7 @@
  */
 void ATI_API_CALL KCL_PosixSecurityCapSetEffectiveVector(KCL_TYPE_Cap cap)
 {
-    cap_t(current->cap_effective) = cap;
+    (current->cap_effective).cap[0] = cap;
 }
 
 /** \brief Get number of available RAM pages
--- common/lib/modules/fglrx/build_mod/firegl_public.c.orig     2008-04-06 02:10:13.000000000 -0300
+++ common/lib/modules/fglrx/build_mod/firegl_public.c  2008-04-06 02:23:05.000000000 -0300
@@ -120,6 +120,7 @@
 #include <asm/cpufeature.h>
 #ifdef CONFIG_MTRR
 #include <asm/mtrr.h>
+#include <asm/cacheflush.h>
 #endif
 #include <asm/delay.h>
 #include <linux/agp_backend.h>
@@ -1158,7 +1159,7 @@
 
 int ATI_API_CALL KCL_SetPageNoCache(void* virt, int pages)
 {
-    return change_page_attr(virt_to_page(virt), pages, PAGE_KERNEL_NOCACHE);
+    return set_pages_uc(virt_to_page(virt), pages);
 }
 
 /** /brief Call global kernel task/thread scheduler */


this made the module compile and load for me.

http://sarah-a-happy.livejournal.com/90345.html
Back to top
View user's profile Send private message
romee
n00b
n00b


Joined: 03 Feb 2004
Posts: 43

PostPosted: Sun Apr 06, 2008 11:28 pm    Post subject: Reply with quote

I'm using kernel-2.6.25-rc8 and I couldn't load ati-drivers-8.471.3 even with your patch. The problem was unknown symbol init_mm, which is exported as an unused symbol since 2.6.25. I've tried config option CONFIG_UNUSED_SYMBOLS, but this did not help either, so I changed macro EXPORT_UNUSED_SYMBOL to EXPORT_SYMBOL in file arch/x86/kernel/init_task.c.
Anyway, it will be removed in 2.6.26 completely.
Back to top
View user's profile Send private message
gnilor
n00b
n00b


Joined: 03 Oct 2007
Posts: 3

PostPosted: Fri Apr 11, 2008 4:12 pm    Post subject: Reply with quote

thanks for tracking the issue down

/me can't wait until one of the open drivers is ready for daily use on my system.
Back to top
View user's profile Send private message
stable.entropy
n00b
n00b


Joined: 27 Mar 2008
Posts: 11

PostPosted: Fri Apr 18, 2008 4:33 am    Post subject: Reply with quote

using the built in symbol export and this patch along with a modified ebuild for 8.476.4 (catalyst 8.4) I confirm it builds (albeit with warnings) on 2.6.25-zen0 (master-devel branch).
Back to top
View user's profile Send private message
flow2
n00b
n00b


Joined: 20 Apr 2008
Posts: 1

PostPosted: Sun Apr 20, 2008 1:47 pm    Post subject: Reply with quote

using both, the patch and the init_mm-change made my module compile with this warning:
WARNING: "flush_tlb_page" [/var/tmp/portage/x11-drivers/ati-drivers-8.476/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko] undefined!

when i try to load the module, dmesg tells me this:

Code:
flo ~ # dmesg |grep fglrx
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol flush_tlb_page
fglrx: Unknown symbol flush_tlb_page


nothing more

I'm using vanilla-sources-2.6.25

Code:
flo linux # uname -a
Linux flo 2.6.25 #2 SMP Fri Apr 18 15:15:41 CEST 2008 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ AuthenticAMD GNU/Linux


Code:
flo linux # cat /usr/src/linux/.config|grep UNUSED
CONFIG_UNUSED_SYMBOLS=y


may be a problem with x86_64 as this symbol has been removed.

does anyone know a kind of workaround?

EDIT:

as you can see here:
http://www.phoronix.com/forums/showthread.php?p=30141#post30141
simply modify

/usr/src/linux/arch/x86/kernel/smp_64.c

add

Code:
EXPORT_SYMBOL(flush_tlb_page);


before the line
Code:
static void do_flush_tlb_all(void* info)


this should work for x86_64-users...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum