AnsweredAssumed Answered

Linux:Unable to compile AMD/ATI fglrx kernel-modules under kernel 2.6.42.9.1

Question asked by nouvo09 on Mar 13, 2012
Latest reply on May 17, 2012 by nouvo09

Here is the copy of the bug I have related on bugzilla.redhat.com: (bug Nr 802121)

 

 

Description of problem:

 

I own an ATI graphic card, and I use the AMD proprietary driver fglrx since

years.

Habitually when there is a new release of the kernel, DKMS automatically builds

the news modules.

 

This is impossible with the last 2.6.42.9.1 kernel.

To make the computer run I had to return back to te preceding one, 2.6.43.3.2

which compiles perfectly.

 

This AMD driver runs also perfectly on RHEL 6

 

Version-Release number of selected component (if applicable):

 

kernel/ kernel-devel 2.6.42.9.1

 

How reproducible:

Install an FC15 system and the proprietary AMD driver

with kernel  2.6.43.3.2, it compiles an runs

with the 2.6.42.9.1

it produces an error message, see below:

 

there is the same error trying to build the modules without dkms and compile

directly.

 

 

Actual results:

doesnt' work and fallback to the radeon driver

 

Expected results:

works and is able to run 3D and compiz aso

 

Additional info:

 

[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/2.6.42.9-1.fc15.i686.PAE/build

SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules

make[1] : on entre dans le répertoire «

/usr/src/kernels/2.6.42.9-1.fc15.i686.PAE »

  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.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: erreur:

‘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] Erreur 1

make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Erreur 2

make[1] : on quitte le répertoire « /usr/src/kernels/2.6.42.9-1.fc15.i686.PAE »

make: *** [kmod_build] Erreur 2

build failed with return value 2

 

and here is the reply of the redhat bugzilla team:

 

TS_USEDFPU was removed in the stable backport of Linus' FPU handling fixes.

The fglrx code will need to adapt to those changes.

Outcomes