You are not logged in.

#1 2011-11-09 13:28:56

WishCow
Member
Registered: 2011-01-31
Posts: 57

[SOLVED] FGLRX recompile fails, kernel headers are absent

The fglrx mkinitcpio hook fails with:

  -> Parsing hook: [fglrx]
Building fglrx module for 3.0-ARCH kernel ...
Failed!!! Check out log: /var/log/catalyst-install.log

Looking into the log reveals:

--------
2011-11-09 14:12:08
Building fglrx module for 3.0-ARCH kernel ...
--------
Kernel header files are absent: directory /lib/modules/3.0-ARCH/build doesn't exist! Game over


The /lib/modules/3.0-ARCH/build directory indeed does not exist.

I have the linux-headers package installed, but pacman -Ql linux-headers says that it is installed to /usr/src/linux-3.1.0-4-ARCH/, and it places a symlink to /lib/modules/3.1.0-4-ARCH.

How can I tell the catalyst hook to look in /lib/modules/3.1.0-4-ARCH, instead of /lib/modules/3.0-ARCH?

Last edited by WishCow (2011-11-10 20:54:42)

Offline

#2 2011-11-09 13:46:21

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

Why make a new thread?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-11-09 13:48:09

WishCow
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

I wanted to close the old one, because this is more specific, but I just found out that I cannot close my own threads.

Offline

#4 2011-11-09 14:06:15

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

You can tell mkinitcpio to look at a different kernel in a number of ways. If the fglrx hook isn't obeying this, then its broken.

Last edited by falconindy (2011-11-09 14:06:44)

Offline

#5 2011-11-09 14:11:59

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

Could have just changed the title of it instead, and as said in the other thread, use the catalyst package instead of catalyst-hook


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2011-11-09 15:14:34

WishCow
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

Installing catalyst package from AUR fails:

==> Applying patch(es) ...
patching file common/lib/modules/fglrx/build_mod/2.6.x/Makefile
Hunk #1 succeeded at 68 (offset 2 lines).
==> Compiling fglrx module ...
make: *** /lib/modules/3.0-ARCH/build: No such file or directory.  Stop

Both of them are looking in /lib/modules/3.0-ARCH/, is this controlled by some kind of environment variable? Maybe my system is reporting the currently running kernel incorrectly?

Offline

#7 2011-11-09 16:04:41

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

I believe is because of this.

$ uname -r 
3.1.0-4-ck

It nows returns the full version of the kernel

I saw that on this thread: https://bbs.archlinux.org/viewtopic.php?id=129936

Offline

#8 2011-11-10 08:34:51

WishCow
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

$ uname -r
3.0-ARCH

So this is probably why it looks under /lib/modules/3.0-ARCH.

What could cause this?

Offline

#9 2011-11-10 14:23:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

Change the PKGBUILD to explicitly build against 3.1.0-4-ARCH ?

edit: Make sure you have the latest version of the PKGBUILD from aur

edit2: pacman -Q linux linux-headers

Last edited by Mr.Elendig (2011-11-10 14:35:06)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2011-11-10 20:25:10

WishCow
Member
Registered: 2011-01-31
Posts: 57

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

linux 3.0.7-1
linux-headers 3.1-4

...
I'm a moron.

Offline

#11 2011-11-10 20:27:51

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] FGLRX recompile fails, kernel headers are absent

This is why you should use -Syu foobar and not -Sy foobar.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB