Bug 620

Summary: Latest fglrx gets compile errors
Product: Mageia Reporter: Frank Griffin <ftg>
Component: RPM PackagesAssignee: Anssi Hannula <anssi.hannula>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: dkms-fglrx-8.831.2-1.mga1.x86_64.rpm CVE:
Status comment:

Description Frank Griffin 2011-04-02 16:22:08 CEST
The dkms install of the latest fglrx fails with compile errors:

DKMS make.log for fglrx-8.831.2-1.mga1 for kernel 2.6.38.2-desktop-1.mga (x86_64)
Sat Apr  2 09:49:44 EDT 2011
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.38.2-desktop-1.mga/build SUBDIRS=/var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.38.2-desktop-1.mga'
  CC [M]  /var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x/firegl_public.c: In function 'fglrx_pci_suspend':
/var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x/firegl_public.c:851:9: error: implicit declaration of function 'acquire_console_sem'
/var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x/firegl_public.c:873:9: error: implicit declaration of function 'release_console_sem'
make[2]: *** [/var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.831.2-1.mga1/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38.2-desktop-1.mga'
make: *** [kmod_build] Error 2
build failed with return value 2


Reproducible: 

Steps to Reproduce:
Comment 1 Ahmad Samir 2011-04-02 17:48:35 CEST
Should be fixed in next package, please test.

Keywords: (none) => NEEDINFO

Comment 2 Frank Griffin 2011-04-02 21:40:18 CEST
Now I get build errors of a different sort.  Before, the errors were in a make.log file in the build subdirectory.  Now there is no make.log, but there is a make.sh.log (there was before too), posted below.  The upshot is that there is no fglrx.ko module in the build/2.6.x directory.

AMD kernel module generator version 2.1
.
Active kernel:
uname -a = Linux localhost.localdomain 2.6.38.2-desktop-1.mga #1 SMP Mon Mar 28 11:42:53 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
uname -s = Linux
uname -m = x86_64
uname -r = 2.6.38.2-desktop-1.mga
uname -v = #1 SMP Mon Mar 28 11:42:53 UTC 2011
.
Target kernel:
uname -a = Linux localhost.localdomain 2.6.38.2-desktop-1.mga #1 SMP Mon Mar 28 11:42:53 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
uname -s = Linux
uname -m = x86_64
uname -r = 2.6.38.2-desktop-1.mga
uname -v = none
.
file /lib/modules/2.6.38.2-desktop-1.mga/build/include/generated/autoconf.h says: SMP=1
file /lib/modules/2.6.38.2-desktop-1.mga/build/include/generated/autoconf.h says: MODVERSIONS=1
file /lib/modules/2.6.38.2-desktop-1.mga/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
.
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.38.2-desktop-1.mga/build SUBDIRS=/var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.38.2-desktop-1.mga'
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/firegl_public.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_acpi.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_agp.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_debug.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_ioctl.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_io.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_pci.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_str.o
  CC [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/kcl_wait.o
  LD [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/fglrx.o (.gnu_debuglink): unexpected non-allocatable section.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

  CC      /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/fglrx.mod.o
  LD [M]  /var/lib/dkms/fglrx/8.831.2-2.mga1/build/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.38.2-desktop-1.mga'
build succeeded with return value 0
.
duplication skipped - generator was not called from regular lib tree
Comment 3 Frank Griffin 2011-04-02 22:18:01 CEST
My mistake, it appears that the module is installed, it just crashes:

[   112.284] (II) LoadModule: "fglrx"
[   112.285] (II) Loading /usr/lib64/xorg/modules/drivers/fglrx_drv.so
[   112.538] (II) Module fglrx: vendor="FireGL - ATI Technologies Inc."
[   112.543] 	compiled for 1.4.99.906, module version = 8.83.6
[   112.543] 	Module class: X.Org Video Driver
[   112.545] (II) Loading sub module "fglrxdrm"
[   112.545] (II) LoadModule: "fglrxdrm"
[   112.545] (II) Loading /usr/lib64/xorg/modules/linux/libfglrxdrm.so
[   112.561] (II) Module fglrxdrm: vendor="FireGL - ATI Technologies Inc."
[   112.561] 	compiled for 1.4.99.906, module version = 8.83.6
[   112.562] (II) v4l driver for Video4Linux
[   112.562] (II) ATI Proprietary Linux Driver Version Identifier:8.83.6
[   112.562] (II) ATI Proprietary Linux Driver Release Identifier: 8.831.2                              
[   112.562] (II) ATI Proprietary Linux Driver Build Date: Mar  8 2011 22:53:31
[   112.562] (--) using VT number 8

[   112.661] (WW) Falling back to old probe method for v4l
[   112.661] (WW) Falling back to old probe method for fglrx
[   112.750] (II) PCS database file /etc/ati/amdpcsdb not found
[   112.750] (II)   Creating PCS database from initial defaults instead
[   112.787] (--) Assigning device section with no busID to primary device
[   112.787] (--) Chipset Supported AMD Graphics Processor (0x9612) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:17:0) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:0) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:1) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:2) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:0) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:1) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:2) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:0) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:2) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:3) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:4) found
[   112.806] (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:5:1) found
[   112.807] (II) AMD Video driver is running on a device belonging to a group targeted for this release
[   112.821] (II) AMD Video driver is signed
[   112.822] (II) Loading /usr/lib64/xorg/modules/drivers/fglrx_drv.so
[   112.822] (II) Loading /usr/lib64/xorg/modules/linux/libfglrxdrm.so
[   112.822] (II) fglrx(0): pEnt->device->identifier=0x10ca810
[   112.822] 
Backtrace:
[   112.838] 0: /usr/bin/Xorg (xorg_backtrace+0x28) [0x4a0658]
[   112.838] 1: /usr/bin/Xorg (0x400000+0x60f99) [0x460f99]
[   112.838] 2: /lib64/libpthread.so.0 (0x7fdadb697000+0xf300) [0x7fdadb6a6300]
[   112.839] 3: /usr/lib64/xorg/modules/drivers/fglrx_drv.so (xdl_x760_atiddxEnterVT+0x48) [0x7fdad80af408]
[   112.839] 4: /usr/bin/Xorg (xf86DeleteScreen+0x7c) [0x46baac]
[   112.839] 5: /usr/bin/Xorg (InitOutput+0x87a) [0x470aca]
[   112.840] 6: /usr/bin/Xorg (0x400000+0x2170d) [0x42170d]
[   112.840] 7: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7fdada604c3d]
[   112.840] 8: /usr/bin/Xorg (0x400000+0x21469) [0x421469]
[   112.840] Segmentation fault at address 0x10
[   112.840] 
Fatal server error:
[   112.840] Caught signal 11 (Segmentation fault). Server aborting
[   112.840] 
[   112.840] 
Please consult the The X.Org Foundation support 
	 at http://bugs.mageia.org
 for help. 
[   112.840] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   112.840]
Comment 4 Ahmad Samir 2011-04-03 00:26:38 CEST
It looks like Ubuntu has a newer fglrx driver than the one on http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx (which is what Anssi told me yesterday but I was fooled by the Release
Date on the amd.com page....). Updating again.

Assignee: bugsquad => anssi.hannula

Comment 5 Ahmad Samir 2011-04-03 02:46:17 CEST
fglrx-8.840-1.mga1 is on the mirrors, please test.
Comment 6 Frank Griffin 2011-04-03 04:16:07 CEST
Working fine now, thanks !

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 Ahmad Samir 2011-04-03 05:28:00 CEST
Great :)

Keywords: NEEDINFO => (none)