fglrx 2:8.960-0ubuntu1: fglrx kernel module failed to build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fglrx-installer (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
after upgrading /var/lib/
DKMS make.log for fglrx-8.960 for kernel 3.4.0-1-generic-pae (i686)
za mei 12 18:48:05 CEST 2012
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/
make[1]: Entering directory `/usr/src/
CC [M] /var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/
make[1]: *** [_module_
make[1]: Leaving directory `/usr/src/
make: *** [kmod_build] Error 2
build failed with return value 2
ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: fglrx 2:8.960-0ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-24-
NonfreeKernelMo
.tmp.unity.
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
CompizPlugins: No value set for `/apps/
CompositorRunning: compiz
DKMSKernelVersion: 3.4.0-1-generic-pae
Date: Sat May 12 18:42:11 2012
DistUpgraded: 2011-12-14 02:04:45,752 DEBUG enabling apt cron job
DistroCodename: quantal
DistroVariant: ubuntu
GraphicsCard:
Advanced Micro Devices [AMD] nee ATI Redwood [Radeon HD 5670] [1002:68d8] (prog-if 00 [VGA controller])
Subsystem: XFX Pine Group Inc. Device [1682:3060]
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
JockeyStatus:
xorg:fglrx_updates - ATI/AMD proprietary FGLRX graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
xorg:fglrx - ATI/AMD proprietary FGLRX graphics driver (Proprietary, Enabled, In use)
MachineType: System manufacturer System Product Name
PackageVersion: 2:8.960-0ubuntu1
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: fglrx-installer
Title: fglrx 2:8.960-0ubuntu1: fglrx kernel module failed to build
UpgradeStatus: Upgraded to quantal on 2011-12-14 (150 days ago)
dmi.bios.date: 08/04/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0602
dmi.board.
dmi.board.name: P5Q PRO TURBO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
version.compiz: compiz 1:0.9.7.8-0ubuntu1
version.
version.libdrm2: libdrm2 2.4.32-1ubuntu1
version.
version.
version.
version.
version.
version.
version.
version.
tags: | removed: need-duplicate-check |
The following patch made it compile again: phoronix. com/forums/ showthread. php?68922- Patch-to- compile- fgrlx-module- on-Linux- 3-3-rc4- with-x86- 32-bit- arch/page2
source-url http://
diff --git a/firegl_public.c b/firegl_public.c VERSION( 3,4,0) internal. h>
index a56fff1..b4bdfb7 100644
--- a/firegl_public.c
+++ b/firegl_public.c
@@ -187,6 +187,9 @@
#include <linux/gfp.h>
#include <linux/swap.h>
#include "asm/i387.h"
+#if LINUX_VERSION_CODE >= KERNEL_
+#include <asm/fpu-
+#endif
#include "firegl_public.h" nLevels( unsigned long level_init) DEBUG5( FN_FIREGL_ KAS, "%d\n", level_init); VERSION( 3,4,0) cpu_mask( p, cpu_possible_mask) each_cpu_ mask(p, cpu_possible_map)
KCL_DEBUG1( FN_FIREGL_ KAS,"Setting initial execution level for CPU # %d\n", p);
preempt_ disable( ); fpu_begin( ); has_fpu( current) ) init_fpu( current) ; thread_ info(); disable( );
__save_ init_fpu( cur_task- >task);
#include "kcl_osconfig.h"
@@ -4181,7 +4184,11 @@ static int kasInitExecutio
{
unsigned int p;
KCL_
+#if LINUX_VERSION_CODE >= KERNEL_
+ for_each_
+#else
for_
+#endif
{
@@ -5799,10 +5806,16 @@ void ATI_API_CALL KCL_fpu_begin(void)
#ifdef CONFIG_X86_64
kernel_
#else
+#ifndef TS_USEDFPU
+ preempt_disable();
+ if (__thread_
+ __save_
+#else
struct thread_info *cur_task = current_
preempt_
if (cur_task->status & TS_USEDFPU)
+#endif
else
clts();
#endif