Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ati-drivers fails to emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sofachillax
n00b
n00b


Joined: 01 Feb 2005
Posts: 70

PostPosted: Sun Apr 22, 2007 3:40 am    Post subject: ati-drivers fails to emerge Reply with quote

http://nopaste.ch/e78f8ee32acc0f4.html

help please
Back to top
View user's profile Send private message
dritan
Apprentice
Apprentice


Joined: 01 Feb 2006
Posts: 210
Location: New York

PostPosted: Sun Apr 22, 2007 4:22 am    Post subject: Reply with quote

it looks like there is something wrong with the source code from ATI, have you tried deleting the distfile and re-downloading it? or maybe try an older stable version? or a newer masked one?
_________________
Regards,
Dritan

Please try to help answer the unanswered
Back to top
View user's profile Send private message
qubix
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2003
Posts: 146
Location: Warsaw/Poland

PostPosted: Sun Apr 22, 2007 10:17 pm    Post subject: Reply with quote

I'm trying to emerge x11-drivers/ati-drivers-8.35.5 so it's the newest ebuild in portage

I've already tried switching GCC, no results. Kernel 2.6.20-gentoo-r6

Code:

...
/var/tmp/portage/x11-drivers/ati-drivers-8.35.5/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4855: warning: 'flags' might be used uninitialize
d in this function
/var/tmp/portage/x11-drivers/ati-drivers-8.35.5/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/var/tmp/portage/x11-drivers/ati-drivers-8.35.5/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4996: warning: `kmem_cache_t' is deprecated (decl
ared at include/linux/slab.h:17)
  LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.35.5/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: modpost: GPL-incompatible module fglrx.ko uses GPL-only symbol 'paravirt_ops'
make[2]: *** [__modpost] B³±d 1
make[1]: *** [modules] B³±d 2
make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.20-gentoo-r6'
make: *** [kmod_build] B³±d 2

!!! ERROR: x11-drivers/ati-drivers-8.35.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4067:   Called src_compile
  ati-drivers-8.35.5.ebuild, line 173:   Called linux-mod_src_compile
  linux-mod.eclass, line 516:   Called die

!!! Unable to make  GCC_VER_MAJ=3 KVER=2.6.20-gentoo-r6 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.35.5/temp/build.log'.

_________________
qubix
Back to top
View user's profile Send private message
JCBIgler
n00b
n00b


Joined: 07 Aug 2004
Posts: 41

PostPosted: Mon Apr 30, 2007 12:04 am    Post subject: Reply with quote

Any fix for this yet? I'm trying to get a new laptop set up and have the exact same error as posted above.

Kernel version 2.6.20-gentoo-r7, on AMD64 with ATI-Drivers version 8.32.5
Back to top
View user's profile Send private message
sofachillax
n00b
n00b


Joined: 01 Feb 2005
Posts: 70

PostPosted: Mon Apr 30, 2007 3:36 am    Post subject: Reply with quote

it seems to be related with the kernel config since changing it somehow made it work for me. unfortunately i did not manage to get the emerged drivers to run yet.
Back to top
View user's profile Send private message
JCBIgler
n00b
n00b


Joined: 07 Aug 2004
Posts: 41

PostPosted: Mon Apr 30, 2007 3:53 am    Post subject: Reply with quote

what did you change in your kernel config to make it work?
Back to top
View user's profile Send private message
mfocker
n00b
n00b


Joined: 20 Sep 2005
Posts: 41
Location: Sweden

PostPosted: Mon Apr 30, 2007 1:02 pm    Post subject: Reply with quote

As this post suggests, one can patch the kernel sources to make ati-drivers-8.32.5 to compile. Here is how I did it on my notebook:

First, emerge the sources, of course. Then, navigate to the source base directory:
Code:
cd /usr/src

Now, create the diff-file (this is for amd64-based computers):
Code:
diff -pu linux-2.6.19-gentoo-r5/include/asm-x86_64/unistd.h \
linux-2.6.20-gentoo-r7/include/asm-x86_64/unistd.h > /tmp/ati.patch

Navigate in to the new kernel sources directory:
Code:
cd linux-2.6.20-gentoo-r7

and patch the source with:
Code:
patch -p1 -R < /tmp/ati.patch

Compile and install the patched kernel, as usual. And the ati-drivers-8.32.5 should now emerge correct.

It is a workaround, I know, but the new ati-drivers-8.35.5, which compiles fine with newer sources, doesn't work properly on my system, so... :-)
_________________
AMD Opteron 165, Gentoo Linux x86_64
Back to top
View user's profile Send private message
inode77
Veteran
Veteran


Joined: 20 Jan 2004
Posts: 1303
Location: Heart of Europe

PostPosted: Mon Apr 30, 2007 1:53 pm    Post subject: Reply with quote

Remove "Paravirutalization support" (since 2.6.20) under "Processor types and features" and you'll be able to compile ati-drivers against your new (>= 2.6.20) Kernel without problems.
Back to top
View user's profile Send private message
JCBIgler
n00b
n00b


Joined: 07 Aug 2004
Posts: 41

PostPosted: Mon Apr 30, 2007 10:00 pm    Post subject: Reply with quote

Well, I couldn't find that "Paravirutalization support" section in the kernel config utility.

So, I just downloaded the drivers from the ATI website, and installed them without Portage. They installed fine, and HW acceleration is now working, and my screen looks good and isn't all blurry now.

I followed the instructions on This Page (minus the "emerge ati-drivers...").
Back to top
View user's profile Send private message
sofachillax
n00b
n00b


Joined: 01 Feb 2005
Posts: 70

PostPosted: Tue May 01, 2007 4:40 am    Post subject: Reply with quote

JCBIgler wrote:
what did you change in your kernel config to make it work?


i started over with a clean config so i cant tell you what made it work.
Back to top
View user's profile Send private message
reokan
n00b
n00b


Joined: 08 Sep 2006
Posts: 10

PostPosted: Tue May 01, 2007 6:36 pm    Post subject: Reply with quote

inode77 wrote:
Remove "Paravirutalization support" (since 2.6.20) under "Processor types and features" and you'll be able to compile ati-drivers against your new (>= 2.6.20) Kernel without problems.

I'm having the same problem with the 8.32.5 ati drivers, and i compiled the 2.6.20-r7 without the experimental Paravirutalization support, still no go :(.
Back to top
View user's profile Send private message
sofachillax
n00b
n00b


Joined: 01 Feb 2005
Posts: 70

PostPosted: Tue May 01, 2007 11:35 pm    Post subject: Reply with quote

i had the same problem again, unmasking the latest drivers solved it for me, but unfortunately i cant get those to run after emerge.
Back to top
View user's profile Send private message
JCBIgler
n00b
n00b


Joined: 07 Aug 2004
Posts: 41

PostPosted: Wed May 02, 2007 2:47 am    Post subject: A followup Reply with quote

Well, it seems that all is not peachy-keen.

Even though my drivers seem to be working, and my GUI (Fluxbox) looks nice and everything starts up properly, when I exit Fluxbox, my screen does not drop out to the standard text based console.

Instead it goes blank, and then flashes, and then spits out vertical lines every few seconds. I have to ctrl-alt-del to reboot and restart. Once I restart, the console starts up fine, until I restart Fluxbox and then exit it again.

Any ideas on this one?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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