Kernel 3.7.3-1-desktop and amd-13.1-legacy not compatible

I tried to install the
amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64
this morning. It failed with the error log,


********************************************************************************
*   Build date: Tue Jan 22 04:04:16 CET 2013                                   *
********************************************************************************

Used CPUs/Cores for compilation  =>   4 ]

********************************************************************************
*                                                                              *
*   Kernel:    3.7.3-1-desktop                                                 *
*   Source:    /lib/modules/3.7.3-1-desktop/build                              *
*   Include:   /lib/modules/3.7.3-1-desktop/source/include                     *
*                                                                              *
********************************************************************************

file /lib/modules/3.7.3-1-desktop/source/include/../arch/x86/include/asm/compat.h says:COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
/usr/src/kernel-modules/fglrx/2.6.x /
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make: Entering directory `/usr/src/linux-3.7.3-1-obj/x86_64/desktop'
  LD      /usr/src/kernel-modules/fglrx/2.6.x/built-in.o
  CC [M]  /usr/src/kernel-modules/fglrx/2.6.x/firegl_public.o
  CC [M]  /usr/src/kernel-modules/fglrx/2.6.x/kcl_acpi.o
  CC [M]  /usr/src/kernel-modules/fglrx/2.6.x/kcl_debug.o
  CC [M]  /usr/src/kernel-modules/fglrx/2.6.x/kcl_agp.o
  CC [M]  /usr/src/kernel-modules/fglrx/2.6.x/kcl_ioctl.o
  CC [M]  /usr/src/kernel-modules/fglrx/2.6.x/kcl_io.o
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c: In function 'KCL_GetInitKerPte':
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2402:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2403:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2404:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c: In function 'KCL_GetPageTableByVirtAddr':
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2449:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2452:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2453:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c: In function 'KCL_TestAndClearPageDirtyFlag':
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:2627:5: warning: return makes integer from pointer without a cast [enabled by default]
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_MapRegion':
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:3715:39: error: 'VM_RESERVED' undeclared (first use in this function)
/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.c:3715:39: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/usr/src/kernel-modules/fglrx/2.6.x/firegl_public.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/usr/src/kernel-modules/fglrx/2.6.x] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-3.7.3-1-obj/x86_64/desktop'

******************************
Build of kernel module failed!
******************************

rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
/
Calling 'depmod -a 3.7.3-1-desktop' this may take a while...

Summary report:

   Kernel     => 3.7.3-1-desktop
   Detected   => RPM package
   Build      => FAILURE
   Install    => FAILURE 
================================================================================

Any suggestions would be appreciated.

There have been no problems running with the driver from
Index of /mirror/amd-fglrx-legacy/openSUSE_12.2

Kernel: 3.7.2-1-desktop x86_64 (64 bit)
KDE 4.9.5 Distro: openSUSE 12.2 (x86_64) VERSION = 12.2 CODENAME = Mantis
Mobo: ASRock model: A780GM-LE Bios: American Megatrends version: P1.10 date: 02/13/2009
Quad core AMD Phenom II X4 940 (-MCP-) cache: 2048 KB flags: (lm nx sse sse2 sse3 sse4a svm)
Advanced Micro Devices [AMD] nee ATI RS780 [Radeon HD 3200]
X.Org: 1.12.3 driver: fglrx Resolution: 1920x1080@60.0hz, 1680x1050@60.0hz
GLX Renderer: ATI Radeon HD 3200 Graphics GLX Version: 3.3.11653 - CPC

According to this article, the lead AMD driver has only made it up to 3.5 (compared with nVIDIA up to 3.7, but not 3.8 yet). You can read it here:

https://forums.opensuse.org/english/other-forums/development/programming-scripting/449058-upgrading-ati-driver-atiupgrade-28.html#post2520798

I am not sure what to say about legacy, but for nVIDIA, I am using the built-in open source driver these days with great success.

Thank You,

Thanks for the feedback.

I’ve used the amd legacy 12-6 driver without problems
with kernels 3.6.0.1-1 thru’ 3.6.10-1.

It also works with kernels 3.7.1-1 thru’ 3.7.4-1 but a
three line patch is required to file firegl_public.c

Cheers

Try this: http://forums.opensuse.org/showthread.php?t=481597

There is a difference between being supported and the fact you can get it to work. If you have a problem, they will be unwilling to entertain the problem at AMD.

Thank You,

Each time I run the make file to install the amd 13.6-legacy driver,
with or without the patch to the file firegl_public.c, it fails with the
fglrx-install.log file contents as follows,

Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers.  /lib/modules/3.7.4-1-desktop/build/include/linux/version.h cannot be found on this system.
fglrx installation is being forced. Installation will proceed without the required tools on the system.
Uninstalling any previously installed drivers.
Unloading radeon module...
Unloading drm module...
ERROR: Module drm is in use by ttm,drm_kms_helper
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Error] Kernel Module : Kernel module build environment not found - please consult readme.
[Reboot] Kernel Module : mkinitrd

The file /usr/src/linux-3.7.4-1-obj/x86_64/default/include/generated/uapi/linux/version.h
has the contents,


#define LINUX_VERSION_CODE 198404
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

Anyone know if this is the file being sort?

Can anyone confirm that the file
/lib/modules/3.5.x-x-desktop/build/include/linux/version.h
exists on their systems?