View previous topic :: View next topic |
Author |
Message |
splun549 n00b
Joined: 20 Jun 2006 Posts: 29
|
Posted: Mon May 25, 2009 6:35 pm Post subject: ati-drivers won't emerge [SOLVED] |
|
|
I can't find anybody else dying the same way. I'm not sure what to try next:
make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r8'
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
CC [M] /var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:394: error: conflicting types for 'KCL_ACPI_GetDevHandle'
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.h:58: error: previous declaration of 'KCL_ACPI_GetDevHandle' was here
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_Disabled':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:432: error: 'acpi_disabled' undeclared (first use in this function)
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:432: error: (Each undeclared identifier is reported only once
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:432: error: for each function it appears in.)
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_ExecHandler':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:469: error: 'acpi_notify_handler' undeclared (first use in this function)
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:469: error: expected ')' before 'handler'
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_GetNotifyHandler':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:483: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:485: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:487: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_GetNotifyContext':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:510: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:512: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:514: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_UpdateNotifyHandler':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:538: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:538: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:540: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:540: error: 'acpi_notify_handler' undeclared (first use in this function)
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:540: error: expected ';' before 'handler'
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function 'KCL_ACPI_UpdateNotifyContext':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:557: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:557: error: dereferencing pointer to incomplete type
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:559: error: dereferencing pointer to incomplete type
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_vm_phys_addr_str':
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3206: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3207: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3208: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3210: warning: return makes pointer from integer without a cast
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:799: warning: 'fglrx_pci_suspend' defined but not used
/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:852: warning: 'fglrx_pci_resume' defined but not used
make[1]: *** [_module_/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r8'
make: *** [kmod_build] Error 2
*
* ERROR: x11-drivers/ati-drivers-8.552-r3 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 3323: Called linux-mod_src_compile
* environment, line 2518: Called die
* The specific snippet of code:
* eval "emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.27-gentoo-r8n 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.552-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/temp/environment'.
*
>>> Failed to emerge x11-drivers/ati-drivers-8.552-r3, Log file:
>>> '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/temp/build.log'
* Messages for package x11-drivers/ati-drivers-8.552-r3:
*
* ERROR: x11-drivers/ati-drivers-8.552-r3 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 3323: Called linux-mod_src_compile
* environment, line 2518: Called die
* The specific snippet of code:
* eval "emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= GCC_VER_MAJ=4 KVER=2.6.27-gentoo-r8n 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.552-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/temp/environment'.
*
Last edited by splun549 on Tue May 26, 2009 8:59 pm; edited 1 time in total |
|
Back to top |
|
|
Condex Tux's lil' helper
Joined: 08 Nov 2005 Posts: 95 Location: 42'24ºN/8'74ºW - Sol III - Sol System
|
Posted: Mon May 25, 2009 6:48 pm Post subject: |
|
|
Hummm... If I remember correctly, ATI drivers are highly dependent on the kernel version you are running. If you are running a kernel version «they don't like», they won't build. I think I had the same problem as you with that version of the drivers and the kernel
I'm using ati-drivers package version 8.582. Maybe you can try with this version and see if it works for you. I think it's masked, at least on my system(AMD64).
Cheers!
Condex- _________________ Carpe diem quam minimum credula postero. |
|
Back to top |
|
|
splun549 n00b
Joined: 20 Jun 2006 Posts: 29
|
Posted: Mon May 25, 2009 6:52 pm Post subject: |
|
|
Condex wrote: | I'm using ati-drivers package version 8.582. Maybe you can try with this version and see if it works for you. I think it's masked, at least on my system(AMD64).
Cheers!
Condex- |
Thanks, bud... I didn't post everything I've tried because I've more or less forgotten...
But I tried 8.552-r2, 8.552-r3, and 8.582 -- all crap out with the same error. Maybe I can convince an earlier version....
UPDATE: Thanks for the hint -- I have /usr/src/linux pointing to the wrong kernel. *dumbface* I'll fix it and mark resolved if it compiles. |
|
Back to top |
|
|
splun549 n00b
Joined: 20 Jun 2006 Posts: 29
|
Posted: Mon May 25, 2009 7:19 pm Post subject: Nope.... |
|
|
Recompiled pointing to 2.6.8-r5 and it still dies with the same error.
After some effort, I got the newer ~x86 ati-drivers to try to compile, and they all fail with the same error posted in the first post.
Help! |
|
Back to top |
|
|
Nerevar l33t
Joined: 31 May 2008 Posts: 720
|
Posted: Mon May 25, 2009 10:36 pm Post subject: Re: Nope.... |
|
|
splun549 wrote: | Recompiled pointing to 2.6.8-r5 and it still dies with the same error. |
Please tell us that's a typo. |
|
Back to top |
|
|
splun549 n00b
Joined: 20 Jun 2006 Posts: 29
|
Posted: Tue May 26, 2009 12:39 pm Post subject: Re: Nope.... |
|
|
Nerevar wrote: | splun549 wrote: | Recompiled pointing to 2.6.8-r5 and it still dies with the same error. |
Please tell us that's a typo. |
Yeah, that's a typo. 2.6.28-r5.
I gave up yesterday. Unfortunately, ati-drivers don't magically compile today, either. Still at a loss. :/ |
|
Back to top |
|
|
Hailst0rm n00b
Joined: 19 May 2009 Posts: 10
|
Posted: Tue May 26, 2009 3:06 pm Post subject: |
|
|
Have you got distcc installed?
If so, disable it in your make.conf (FEATURES="-distcc")
To be honest, I did not really read the error message, but this solves some compile problems on my machine (probably because distcc is not set up properly). |
|
Back to top |
|
|
Evincar Apprentice
Joined: 13 Feb 2007 Posts: 217 Location: Madrid
|
Posted: Tue May 26, 2009 4:44 pm Post subject: |
|
|
Check your kernel config. I know you need some deprecated "find_pci_slot" option, or something like that (I am talking by heart here). _________________ <@Chin^> My sister caught me jacking off the other week and calls me a pervert
<@Chin^> just the other day i walked into my room and caught my sister masturbating
<@Chin^> So she calls me a pervert again?!?
<@Chin^> there is no justice in the world... |
|
Back to top |
|
|
splun549 n00b
Joined: 20 Jun 2006 Posts: 29
|
Posted: Tue May 26, 2009 5:26 pm Post subject: |
|
|
Evincar wrote: | Check your kernel config. I know you need some deprecated "find_pci_slot" option, or something like that (I am talking by heart here). |
Thanks (and to the above poster). Yeah, I got the find_pci_* stuff in the kernel. Not knowing what else to try, I resorted to revdep-rebuild, and then recompiled system. Still doesn't work. I guess I'll try wiping out my kernel config and trying with something minimal and see if something else is breaking it.
Flustration... |
|
Back to top |
|
|
Condex Tux's lil' helper
Joined: 08 Nov 2005 Posts: 95 Location: 42'24ºN/8'74ºW - Sol III - Sol System
|
Posted: Tue May 26, 2009 7:26 pm Post subject: |
|
|
Hi there!
The error seems to complain with something related to ACPI, this one:
Code: | /var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:394: error: conflicting types for 'KCL_ACPI_GetDevHandle' |
Maybe there's something broken on your ACPI section of the kernel config but, as I said, I wasn't able to build 8.552 with the 2.6.27-gentoo-r8 kernel, had to upgrade to 8.582. In any case, a quick grep over my .config file:
Code: | GentooBox linux # grep ACPI .config
CONFIG_X86_64_ACPI_NUMA=y
CONFIG_ACPI=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
# CONFIG_ACPI_BAY is not set
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_WMI is not set
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_CUSTOM_DSDT is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
# CONFIG_ACPI_PCI_SLOT is not set
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=y
# CONFIG_ACPI_SBS is not set
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
CONFIG_PNPACPI=y
# CONFIG_THINKPAD_ACPI is not set
CONFIG_BLK_DEV_IDEACPI=y
CONFIG_ATA_ACPI=y
# CONFIG_PATA_ACPI is not set |
BTW, keep in mind that my kernel is tweaked for an AMD64 X2 64-bit system, so things can be different on your PC
Hope it helps _________________ Carpe diem quam minimum credula postero. |
|
Back to top |
|
|
Evincar Apprentice
Joined: 13 Feb 2007 Posts: 217 Location: Madrid
|
Posted: Tue May 26, 2009 8:06 pm Post subject: |
|
|
splun549 wrote: | Evincar wrote: | Check your kernel config. I know you need some deprecated "find_pci_slot" option, or something like that (I am talking by heart here). |
Thanks (and to the above poster). Yeah, I got the find_pci_* stuff in the kernel. Not knowing what else to try, I resorted to revdep-rebuild, and then recompiled system. Still doesn't work. I guess I'll try wiping out my kernel config and trying with something minimal and see if something else is breaking it.
Flustration... |
Enable deprecated pci_find_* API (PCI_LEGACY)
That is the option, sounds like you got it compiled, so it is not the issue...
Reading Condex's post, it sounds like you have some conflicting options in ACPI...But I have NFI what it could be!! Surely you have APM disabled?
Anyway, post your ACPI section of kernel config, we may find something. _________________ <@Chin^> My sister caught me jacking off the other week and calls me a pervert
<@Chin^> just the other day i walked into my room and caught my sister masturbating
<@Chin^> So she calls me a pervert again?!?
<@Chin^> there is no justice in the world... |
|
Back to top |
|
|
splun549 n00b
Joined: 20 Jun 2006 Posts: 29
|
Posted: Tue May 26, 2009 8:58 pm Post subject: |
|
|
Condex wrote: | Hi there!
The error seems to complain with something related to ACPI, this one:
Code: | /var/tmp/portage/x11-drivers/ati-drivers-8.552-r3/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:394: error: conflicting types for 'KCL_ACPI_GetDevHandle' |
Maybe there's something broken on your ACPI section of the kernel config but, as I said, I wasn't able to build 8.552 with the 2.6.27-gentoo-r8 kernel, had to upgrade to 8.582. In any case, a quick grep over my .config file:
...
BTW, keep in mind that my kernel is tweaked for an AMD64 X2 64-bit system, so things can be different on your PC
Hope it helps |
Well, that was it. I stared at it for a while and finally just deleted my .config and built a new one. Diffing, it looks like some of the symbols were just missing for some reason. Rebuilt, rebooted, and it compiles. Thanks everyone. |
|
Back to top |
|
|
guyr Apprentice
Joined: 17 Aug 2004 Posts: 237
|
Posted: Mon Jun 08, 2009 4:08 am Post subject: |
|
|
I'm having the same problem as the OP, trying to install ati-drivers on 2.6.29-r5 from portage. I tried using later drivers by setting the ~amd64 keyword, but it on anything greater than 552, it kept telling me "not yet compatible with 2.6.29". Condex, I took a look at my config and compared to yours, and I already had most of your ACPI settings. Added VIDEO and PROC_EVENT, but still got same errors.
I think this is something with ACPI, though. I also cannot shut down the system - hangs on unloading ALSA modules.
[EDIT]
Ignore that last statement, found this bug: https://bugs.gentoo.org/253535 _________________ Guy Rouillier |
|
Back to top |
|
|
Condex Tux's lil' helper
Joined: 08 Nov 2005 Posts: 95 Location: 42'24ºN/8'74ºW - Sol III - Sol System
|
Posted: Mon Jun 08, 2009 6:53 am Post subject: |
|
|
guyr wrote: | I'm having the same problem as the OP, trying to install ati-drivers on 2.6.29-r5 from portage. I tried using later drivers by setting the ~amd64 keyword, but it on anything greater than 552, it kept telling me "not yet compatible with 2.6.29". Condex, I took a look at my config and compared to yours, and I already had most of your ACPI settings. Added VIDEO and PROC_EVENT, but still got same errors.
I think this is something with ACPI, though. I also cannot shut down the system - hangs on unloading ALSA modules.
[EDIT]
Ignore that last statement, found this bug: https://bugs.gentoo.org/253535 |
Hi there!
I'm still running 2.6.27-gentoo-r8(If it ain't broken, don't fix it ). I think that official ATi drivers doesn't work with the 2.6.29 kernel. You'll have to downgrade your kernel version and wait for those AMD programmers to release a new version _________________ Carpe diem quam minimum credula postero. |
|
Back to top |
|
|
soka Tux's lil' helper
Joined: 27 Dec 2006 Posts: 99 Location: Argentina
|
Posted: Mon Jun 08, 2009 11:38 am Post subject: |
|
|
There is a patch to get ati drivers 9.5 working with the 2.6.29 kernel.
https://bugs.gentoo.org/266819 |
|
Back to top |
|
|
|