Skip to content

fglrx build fails since yesterday's kmod update

Hello, since yesterdays kmod update module handling were moved from /lib/modules to /usr/lib/modules .. now my fglrx module fails to build on kernel update with error message: 'Kernel header files are absent: directory /lib/modules/3.4.4-3-ARCH/build doesn't exist! Game over.'

pacman -Ql kernel-headers show that the directory is in /usr/lib/modules/3.4.4-3-ARCH/build (which makes sense with what the kmod update said). I'm not sure if I can simply apply a symlink here or not, I'm terrified of breaking my X.

Anyone has run into the same problem and know the proper way to resolv it?

0 points13 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
w2mac

Author

3
posts
20
comments
0
media
View profile

13 comments

kmod 9-1 update stopped recognizing my video card or something... X wouldn't start. Back on 8-2 now.

1 points

If you don't follow the arch-dev-public mailing list, you definitely shouldn't use [testing]. The rest is left as an easy exercise to the reader.

1 points

Try symlink, if it doesn't work, remove said symlink, then google.

1 points

Don't simlink, it's ugly solution which probably won't work when you remove the simlink. It will just cause you troubles in future. There are most certainly better ways to do it.

1 points

symlink

Yes, obviously. But in the meantime, until whatever is fixed, it's a harmless workaround. (providing it works)

1 points

I think I've located some interesting things.

What actually happened is that the symlink worked fine but my system refused to find the fglrx module and instead somehow defaulted to the open-source(?) radeon module (even though that package isn't installed, weird). I even blacklisted the radeon module and my X11 launched just fine -- super weird.

Anyhow, I've managed to get the fglrx.ko.gz kernel module file but it defaults to the location /lib/modules/{kernel}/video/fglrx.ko.gz which modprobe doesn't recognize. I've tried moving it to it's /usr/ counterpart without success. Where am I supposed to place this damn thing? :(

1 points

Okay I solved the latter part by using depmod.

It finds and loads the fglrx module correctly now.

1 points

Here's what I did to get this running with the latest kernel:

mkdir -p /lib/modules/3.4.4-3-ARCH

ln -s /usr/lib/modules/3.4.4-3-ARCH/build /lib/modules/3.4.4-3-ARCH/build

$ yaourt -S catalyst .... ....

mv /lib/modules/3.4.4-3-ARCH/video/fglrx.ko.gz /usr/lib/modules/3.4.4-3-ARCH/

Not sure if you can keep it in it's gz archive or not. I extracted it however.

depmod

modprobe fglrx (to see if it works)

reboot

after reboot check to see if it's loaded: $ lsmod | grep fglrx

1 points

How are you building? You need to change the kernel header files directory in build configuration of fglrx. If you are building from AUR then change PKGBUILD.

1 points

I solved it using a symlink for now. I'm not quite sure where to look in the PKGBUILD. I had a look at the mkinitcpio section but only found /lib/mkinitcpio/install/fglrx which didn't contain anything relevant.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.