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?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- w2mac
13 comments
kmod 9-1 update stopped recognizing my video card or something... X wouldn't start. Back on 8-2 now.
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.
I don't use testing.
Try symlink, if it doesn't work, remove said symlink, then google.
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.
symlink
Yes, obviously. But in the meantime, until whatever is fixed, it's a harmless workaround. (providing it works)
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? :(
Okay I solved the latter part by using depmod.
It finds and loads the fglrx module correctly now.
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
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.
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.