View previous topic :: View next topic |
Author |
Message |
kevinsgs n00b
Joined: 16 Oct 2007 Posts: 34
|
Posted: Fri Mar 21, 2008 4:10 am Post subject: ERROR: x11-drivers/ati-drivers-8.40.4 failed. |
|
|
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 |
|
|
guruvan Tux's lil' helper
Joined: 21 Aug 2007 Posts: 132
|
Posted: Fri Mar 21, 2008 4:25 am Post subject: |
|
|
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).
guruvan |
|
Back to top |
|
|
kevinsgs n00b
Joined: 16 Oct 2007 Posts: 34
|
Posted: Fri Mar 21, 2008 4:41 am Post subject: |
|
|
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 |
|
|
kevinsgs n00b
Joined: 16 Oct 2007 Posts: 34
|
Posted: Fri Mar 21, 2008 5:01 am Post subject: |
|
|
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 |
|
|
guruvan Tux's lil' helper
Joined: 21 Aug 2007 Posts: 132
|
Posted: Fri Mar 21, 2008 6:06 am Post subject: |
|
|
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).
guruvan |
|
Back to top |
|
|
sarah.a.happy n00b
Joined: 06 Apr 2008 Posts: 1
|
Posted: Sun Apr 06, 2008 4:25 pm Post subject: success: fglrx and kernel-2.6.25-rc8 |
|
|
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 |
|
|
romee n00b
Joined: 03 Feb 2004 Posts: 43
|
Posted: Sun Apr 06, 2008 11:28 pm Post subject: |
|
|
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 |
|
|
gnilor n00b
Joined: 03 Oct 2007 Posts: 3
|
Posted: Fri Apr 11, 2008 4:12 pm Post subject: |
|
|
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 |
|
|
stable.entropy n00b
Joined: 27 Mar 2008 Posts: 11
|
Posted: Fri Apr 18, 2008 4:33 am Post subject: |
|
|
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 |
|
|
flow2 n00b
Joined: 20 Apr 2008 Posts: 1
|
Posted: Sun Apr 20, 2008 1:47 pm Post subject: |
|
|
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 |
|
|
|