LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2012, 08:38 PM   #1
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Can't compile fglrx kernel module for kernel 3.2.13 in -current


After the last upgrade in -current, which also upgraded the kernel to 3.2.13 I am no longer able to install the proprietary drivers (currently version 12.2/8.95). The installation fails because the fglrx kernel module can't be compiled. Here are the relevant parts from the logs:
Code:
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.2.13-smp/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-3.2.13'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_fpu_begin’:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804:28: error: ‘TS_USEDFPU’ undeclared (first use in this function)
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5804:28: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-3.2.13'
make: *** [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Reboot] Kernel Module : mkinitrd
Has anybody those drivers working on -current and/or can anybody give me a clue how to fix that?

Thanks in advance.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-27-2012, 10:29 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
try visiting Walecha's blog http://www.walecha.net/content/memba...di-kernel-3213
It's in Indonesian, but i believe you can understand by looking at the code snippet or use Google Translate
 
3 members found this post helpful.
Old 03-28-2012, 06:21 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Thanks, I will have a look at this as soosn as I am back to that machine.
 
Old 03-28-2012, 07:24 PM   #4
hippy jonny
LQ Newbie
 
Registered: May 2011
Distribution: Slackware-13.37 32 bit
Posts: 8

Rep: Reputation: 6
This particular bug bit me as well. From my bit of research it seems to effect kernels >=3.2.8. There is a patch mentioned on one of the Fedora/ubuntu sites (to the firegl code if memory serves) but ,being a newbie, I took the easy way and stuck with 3.2.7 In the hope that the catalyst 12.3 (or 12.4 etc) releases will provide the fix.

Should add that it seems limited to 32 bit kernels and is noted to effect the 2.6.42 release as well.

http://phoronix.com/forums/showthrea...68922&p=252214

This above post shows a patch to the firegl code but against 3.3-rc4 kernel but may still be of use with regards 3.2.13 on current.

yours

Hippy Jonny

Last edited by hippy jonny; 03-28-2012 at 07:45 PM.
 
1 members found this post helpful.
Old 03-29-2012, 07:31 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just tried it with version 12.3, same error. Why the hell does a newly released driver does not work with the latest stable kernel version? When I have the time I will have to try it with that patch.
 
Old 03-29-2012, 07:56 PM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by TobiSGD View Post
Just tried it with version 12.3, same error. Why the hell does a newly released driver does not work with the latest stable kernel version?
Because the newly released driver was in beta testing for the past month, meaning it was designed to (hopefully) work against what the latest stable kernel version was over a month ago.

Adam
 
1 members found this post helpful.
Old 03-30-2012, 07:41 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
OK, tried it with that patch. That article is a bit unclear if the patch has to be in /etc/ati or /etc/ati/patch, so I tried both. Still getting the same errors. So for now I have not working proprietary drivers and free drivers that use up my CPU and heat up the machine.
And no clue how to fix one of those problems, except downgrading the kernel, which I really don't want to do if not absolutely necessary.
 
Old 03-30-2012, 07:50 AM   #8
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by TobiSGD View Post
OK, tried it with that patch. That article is a bit unclear if the patch has to be in /etc/ati or /etc/ati/patch, so I tried both. Still getting the same errors. So for now I have not working proprietary drivers and free drivers that use up my CPU and heat up the machine.
And no clue how to fix one of those problems, except downgrading the kernel, which I really don't want to do if not absolutely necessary.
Did you try manually patching the file in question?

As for the temperature when using the open source drivers, have you tried enabling power management?

Adam
 
1 members found this post helpful.
Old 03-30-2012, 07:54 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by adamk75 View Post
Did you try manually patching the file in question?
How should I do that? The files are extracted when the installer starts and deleted after that.

Quote:
As for the temperature when using the open source drivers, have you tried enabling power management?
Enabled and working, using the ondemand governor. Even when not working, scrolling of LQ threads in Firefox shouldn't load up the CPU up to 50% in both cores.
 
Old 03-30-2012, 07:58 AM   #10
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
While I don't have 12.3 downloaded on this machine, this is what you get when you run the 12.2 installer with --help:

Code:
[adamk@memory ati]$ sudo sh ./amd-driver-installer-12-2-x86.x86_64.run --help
Makeself version 2.1.3 
 1) Getting help or info about ./amd-driver-installer-12-2-x86.x86_64.run :
  ./amd-driver-installer-12-2-x86.x86_64.run -h|--help                     Print this message
  ./amd-driver-installer-12-2-x86.x86_64.run -i|--info                     Print embedded info : title, default target directory, embedded script 
  ./amd-driver-installer-12-2-x86.x86_64.run -l|--list                     Print the list of files in the archive
  ./amd-driver-installer-12-2-x86.x86_64.run -c|--check                    Checks integrity of the archive
  ./amd-driver-installer-12-2-x86.x86_64.run --extract NewDirectory        Extract this package to NewDirectory only
 
 2) Running ./amd-driver-installer-12-2-x86.x86_64.run :
  ./amd-driver-installer-12-2-x86.x86_64.run [options] [additional arguments to embedded script] with following options (in that order)
  --keep                              Do not erase target directory after running the embedded script
  --uninstall[=force|dryrun]          Run AMD Catalyst(TM) Proprietary Driver Uninstall
  Following arguments will be passed to the embedded script:
  --install                           Install the driver(default)
  --listpkg                           List all the generatable packages 
  --buildpkg package                  Build "package" if generatable ("package" as returned by --listpkg)
  --buildandinstallpkg package        Build and Install "package" as returned by --listpkg
The --keep and --extract options have been around for a very long time.

Adam
 
1 members found this post helpful.
Old 03-30-2012, 09:24 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Thanks, sometimes I miss the obvious things. Extracted the files, patched and the module compiled without errors. Both, Xorg.0.log and glxinfo, show that the driver is loaded and in use. My CPU temperature is down to its normal values. Strangely, I still have high CPU usage when things on the screen are moving, I can load both cores to 53% with just opening a terminal and holding down the Enter-key.

Anyhow, thanks to LQ members this issue is solved.
 
Old 03-31-2012, 07:54 AM   #12
delta function
Member
 
Registered: Jul 2004
Posts: 51

Rep: Reputation: 20
FYI

Hi,

I had the same issues after upgrading to --current (Kernel 3.2.12) with an ati hd5xx series card. The bug fix has not yet been implemented in the latest ati driver 12.3.

Thanks to this threat, I got it solved. However, it was not that easy as it sounds in the threat for me:

extract the files
apply patch
install

So, I just wanted to tell, how I finally did it.
1. Get the patch file ( see attachment )
place the file somewhere ( e.g /etc/ati/patch/ ) and get rid of the txt extension.

2. Drop out of X and into root mode
3. run the amd installer with the --keep option ( sh amd-xxx.sh --keep )
At the end of the installer procedure, the installer will give you a message that the installation was not successful due to some errors.
4. cd /lib/modules/fglrx/build_mod
5. Run the patch: patch -p0 < /etc/ati/patch/ati_patch
You should get a message that the patch was successfull.

6. sh make.sh ( to build the kernel files )
7. cd .. ( /lib/modules/fglrx)
8. sh make_install.sh ( to install the kernel files )
aticonfig --initial
9. Drop to user account ( e.g ctl-D )
10.startx
Note:
On the save side, I rebooted my machine, but It is not required.

Hope this will help some people.
Attached Files
File Type: txt ati_patch.txt (546 Bytes, 828 views)
 
Old 03-31-2012, 05:28 PM   #13
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 239

Rep: Reputation: 31
Thanks!

Quote:
Originally Posted by delta function View Post
Hi,

I had the same issues after upgrading to --current (Kernel 3.2.12) with an ati hd5xx series card. The bug fix has not yet been implemented in the latest ati driver 12.3.

Thanks to this threat, I got it solved. However, it was not that easy as it sounds in the threat for me:

extract the files
apply patch
install

So, I just wanted to tell, how I finally did it.
1. Get the patch file ( see attachment )
place the file somewhere ( e.g /etc/ati/patch/ ) and get rid of the txt extension.

2. Drop out of X and into root mode
3. run the amd installer with the --keep option ( sh amd-xxx.sh --keep )
At the end of the installer procedure, the installer will give you a message that the installation was not successful due to some errors.
4. cd /lib/modules/fglrx/build_mod
5. Run the patch: patch -p0 < /etc/ati/patch/ati_patch
You should get a message that the patch was successfull.

6. sh make.sh ( to build the kernel files )
7. cd .. ( /lib/modules/fglrx)
8. sh make_install.sh ( to install the kernel files )
aticonfig --initial
9. Drop to user account ( e.g ctl-D )
10.startx
Note:
On the save side, I rebooted my machine, but It is not required.

Hope this will help some people.
 
Old 04-05-2012, 10:28 AM   #14
DjDiabolik
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Hey..... the patch posted above working on ubuntu 11.10 ??

I have same exact problems with 12.3 install for my HD4650.....

*edit*
Not working!! Problems during installation:
Quote:
root@Diabolik-ubuntu:/home/diabolik/catalyst12.3# sh ./amd-driver-installer-12-3-x86.x86_64.run --keep
Created directory fglrx-install.OnFD7H
Verifying archive integrity... All good.
Uncompressing AMD Catalyst(TM) Proprietary Driver-8.951............................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... ................................................
=====================================================================
AMD Catalyst(TM) Proprietary Driver Installer/Packager
=====================================================================
Detected configuration:
Architecture: i686 (32-bit)
X Server: X.Org 6.9 or later
loki_setup: directory: (null)
DKMS part of installation failed. Please refer to /usr/share/ati/fglrx-install.log for details
And after the installation:
Quote:
root@Diabolik-ubuntu:/home/diabolik/catalyst12.3# cd /lib/modules/fglrx/build_mod
bash: cd: /lib/modules/fglrx/build_mod: File o directory non esistente
root@Diabolik-ubuntu:/home/diabolik/catalyst12.3#

Last edited by DjDiabolik; 04-05-2012 at 10:48 AM.
 
Old 04-06-2012, 11:36 AM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by DjDiabolik View Post
Hey..... the patch posted above working on ubuntu 11.10 ??

I have same exact problems with 12.3 install for my HD4650.....

*edit*
Not working!! Problems during installation:


And after the installation:
Since the patch is for the drivers, not the system, it should work. But is Ubuntu 11.10 mot running on a 3.0 kernel, so that the patch shouldn't be needed in the first place? Also, do you have DKMS installed? Too help you we need more information, please post the mentioned log file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adaptec Kernel Module - Kernel Compile Errors dumbsheep Linux - General 3 11-07-2007 03:47 PM
Why can't I compile this kernel module? (kernel: 2.6.8-powerpc Debian sarge) Lannix Linux - Hardware 5 05-01-2007 12:29 PM
fglrx module build fails (i think it is the kernel?) android6011 Linux - Hardware 3 01-06-2007 05:50 PM
compile a new kernel with setting default to current kernel mrpc_cambodia Red Hat 6 07-06-2004 11:32 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration