fglrx install fails with error: Bad return status for module build on kernel: 3.2.0-24-generic-pae (i686)

Asked by Alex Williams

I recently upgraded from 11.10 to 12.04. I tried to install the latest fglrx drivers for my machine (Lenovo T400 with ATI HD3470) using the Binary Driver How-To (https://help.ubuntu.com/community/BinaryDriverHowto/ATI) but the install failed:

$ sudo dpkg -i fglrx*.deb
<snip>
Loading new fglrx-8.961 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-24-generic-pae
Building for architecture i686
Building initial module for 3.2.0-24-generic-pae
Error! Bad return status for module build on kernel: 3.2.0-24-generic-pae (i686)
Consult /var/lib/dkms/fglrx/8.961/build/make.log for more information.
<snip>

$ cat /var/lib/dkms/fglrx/8.961/build/make.log
DKMS make.log for fglrx-8.961 for kernel 3.2.0-24-generic-pae (i686)
Sun Apr 29 13:15:27 EDT 2012
AMD kernel module generator version 2.1
make.sh: 390: [: 1: unexpected operator
make.sh: 396: [: 1: unexpected operator
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.0-24-generic-pae/build SUBDIRS=/var/lib/dkms/fglrx/8.961/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
  CC [M] /var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_begin’:
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:5812:28: error: ‘TS_USEDFPU’ undeclared (first use in this function)
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:5812:28: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.961/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make: *** [kmod_build] Error 2
build failed with return value 2

It just looks like a syntax error to me, but maybe I'm doing something wrong? Any suggestions to fix this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu fglrx-installer Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Williams
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

lsb_release -a; uname -a; dpkg -l | egrep 'linux-image|header'

Thanks

Revision history for this message
Alex Williams (malexw) said :
#2

$ lsb_release -a; uname -a; dpkg -l | egrep 'linux-image|header'
No LSB modules are available.

Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

Linux deathwing 3.2.0-24-generic-pae #37-Ubuntu SMP Wed Apr 25 10:47:59 UTC 2012 i686 i686 i386 GNU/Linux

ii execstack 0.0.20090925-1 ELF GNU_STACK program header editing utility
ii libdbus-1-dev 1.4.18-1ubuntu1 simple interprocess messaging system (development headers)
ii libice-dev 2:1.0.7-2build1 X11 Inter-Client Exchange library (development headers)
ii libopenmpi-dev 1.4.3-2.1ubuntu3 high performance message passing library -- header files
ii libpulse-dev 1:1.1-0ubuntu15 PulseAudio client development headers and libraries
ii libsm-dev 2:1.2.0-2build1 X11 Session Management library (development headers)
ii libssl-dev 1.0.1-4ubuntu3 SSL development libraries, header files and documentation
ii libx11-dev 2:1.4.99.1-0ubuntu2 X11 client-side library (development headers)
ii libxau-dev 1:1.0.6-4 X11 authorisation library (development headers)
ii libxaw7-dev 2:1.0.9-3ubuntu1 X11 Athena Widget library (development headers)
ii libxcomposite-dev 1:0.4.3-2build1 X11 Composite extension library (development headers)
ii libxdamage-dev 1:1.1.3-2build1 X11 damaged region extension library (development headers)
ii libxdmcp-dev 1:1.1.0-4 X11 authorisation library (development headers)
ii libxext-dev 2:1.3.0-3build1 X11 miscellaneous extensions library (development headers)
ii libxfixes-dev 1:5.0-4ubuntu4 X11 miscellaneous 'fixes' extension library (development headers)
ii libxi-dev 2:1.6.0-0ubuntu2 X11 Input extension library (development headers)
ii libxinerama-dev 2:1.1.1-3build1 X11 Xinerama extension library (development headers)
ii libxmu-dev 2:1.1.0-3 X11 miscellaneous utility library (development headers)
ii libxmu-headers 2:1.1.0-3 X11 miscellaneous utility library headers
ii libxpm-dev 1:3.5.9-4 X11 pixmap library (development headers)
ii libxrandr-dev 2:1.3.2-2 X11 RandR extension library (development headers)
ii libxt-dev 1:1.1.1-2build1 X11 toolkit intrinsics library (development headers)
ii libzmq-dev 2.1.11-1ubuntu1 ZeroMQ lightweight messaging kernel (development libraries and header files)
ii linux-headers-3.0.0-16 3.0.0-16.29 Header files related to Linux kernel version 3.0.0
ii linux-headers-3.0.0-16-generic 3.0.0-16.29 Linux kernel headers for version 3.0.0 on x86/x86_64
ii linux-headers-3.0.0-16-generic-pae 3.0.0-16.29 Linux kernel headers for version 3.0.0 on x86
ii linux-headers-3.0.0-17 3.0.0-17.30 Header files related to Linux kernel version 3.0.0
ii linux-headers-3.0.0-17-generic 3.0.0-17.30 Linux kernel headers for version 3.0.0 on x86/x86_64
ii linux-headers-3.0.0-17-generic-pae 3.0.0-17.30 Linux kernel headers for version 3.0.0 on x86
ii linux-headers-3.2.0-24 3.2.0-24.37 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-24-generic 3.2.0-24.37 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-3.2.0-24-generic-pae 3.2.0-24.37 Linux kernel headers for version 3.2.0 on 64 bit x86 SMP
ii linux-headers-generic 3.2.0.24.26 Generic Linux kernel headers
ii linux-headers-generic-pae 3.2.0.24.26 Generic Linux kernel headers
ii linux-image-3.0.0-16-generic 3.0.0-16.29 Linux kernel image for version 3.0.0 on x86/x86_64
ii linux-image-3.0.0-16-generic-pae 3.0.0-16.29 Linux kernel image for version 3.0.0 on x86
ii linux-image-3.0.0-17-generic 3.0.0-17.30 Linux kernel image for version 3.0.0 on x86/x86_64
ii linux-image-3.0.0-17-generic-pae 3.0.0-17.30 Linux kernel image for version 3.0.0 on x86
ii linux-image-3.2.0-24-generic 3.2.0-24.37 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-24-generic-pae 3.2.0-24.37 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-generic 3.2.0.24.26 Generic Linux kernel image
ii linux-image-generic-pae 3.2.0.24.26 Generic Linux kernel image
ii python-dev 2.7.3-0ubuntu2 header files and a static library for Python (default)
ii x11proto-core-dev 7.0.22-1 X11 core wire protocol and auxiliary headers

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Try:

sudo apt-get --reinstall install linux-headers-generic-pae

Then retry installing fglrx

Revision history for this message
Alex Williams (malexw) said :
#4

I gave your solution a shot but got the same result. The log file has the same error message.

Revision history for this message
Alex Williams (malexw) said :
#5

It appears that this problem is caused by a bug in Catalyst 12.4, which does not support the kernel I'm running. A solution is outlined on the Ubuntu forums:

http://ubuntuforums.org/showthread.php?t=1969827