fglrx-core 2:15.200-0ubuntu4: fglrx-core kernel module failed to build [error: implicit declaration of function ‘read_cr4’]

Bug #1456445 reported by joseph wade
88
This bug affects 19 people
Affects Status Importance Assigned to Milestone
fglrx-installer (Ubuntu)
Confirmed
High
Unassigned

Bug Description

DKMS make.log for fglrx-core-15.200 for kernel 4.0.4-040004-generic (x86_64)
Tue May 19 00:32:40 EDT 2015
/usr/sbin/dkms: line 74: cd: /var/lib/dkms/fglrx/15.200/build: No such file or directory
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/4.0.4-040004-generic/build SUBDIRS=/var/lib/dkms/fglrx-core/15.200/build/2.6.x modules
make[1]: Entering directory '/usr/src/linux-headers-4.0.4-040004-generic'
  CC [M] /var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.c: In function ‘kcl_mem_pat_setup’:
/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.c:4499:9: error: implicit declaration of function ‘read_cr4’ [-Werror=implicit-function-declaration]
         cr4 = read_cr4();
         ^
/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.c:4500:9: error: implicit declaration of function ‘write_cr4’ [-Werror=implicit-function-declaration]
         write_cr4(cr4 & ~X86_CR4_PGE);
         ^
/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.c: At top level:
/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.c:6424:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
 static int KCL_fpu_save_init(struct task_struct *tsk)
            ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.o' failed
make[2]: *** [/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.o] Error 1
Makefile:1390: recipe for target '_module_/var/lib/dkms/fglrx-core/15.200/build/2.6.x' failed
make[1]: *** [_module_/var/lib/dkms/fglrx-core/15.200/build/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.0.4-040004-generic'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
build failed with return value 2

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: fglrx-core 2:15.200-0ubuntu4
ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
Uname: Linux 3.19.0-16-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
DKMSKernelVersion: 4.0.4-040004-generic
Date: Tue May 19 00:32:43 2015
DuplicateSignature: dkms:fglrx-core:2:15.200-0ubuntu4:/var/lib/dkms/fglrx-core/15.200/build/2.6.x/firegl_public.c:4499:9: error: implicit declaration of function ‘read_cr4’ [-Werror=implicit-function-declaration]
InstallationDate: Installed on 2015-05-01 (17 days ago)
InstallationMedia: Xubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422.1)
PackageVersion: 2:15.200-0ubuntu4
RelatedPackageVersions:
 dpkg 1.17.25ubuntu1
 apt 1.0.9.7ubuntu4
SourcePackage: fglrx-installer
SystemImageInfo:
 current build number: 0
 device name: ?
 channel: daily
 last update: Unknown
Title: fglrx-core 2:15.200-0ubuntu4: fglrx-core kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
joseph wade (joseph-wade82) wrote :
tags: removed: need-duplicate-check
summary: fglrx-core 2:15.200-0ubuntu4: fglrx-core kernel module failed to build
+ [error: implicit declaration of function ‘read_cr4’]
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fglrx-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
Charles Phillips (doublerebel) wrote :

I was able to fix using the patch from Debian bug report #785150. It only partially applies to fglrx-core 15.200, but still works.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785150

Steps to fix:
1. Download patch from #785150 -- https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=fglrx-14.12_fix_build_4.0.0-1-amd64.patch;att=1;bug=785150

2. cd /usr/src/fglrx-core-15.200

3. patch -p1 < ~/Downloads/fglrx...patch

4. sudo dkms install -m fglrx -v 13.251 -k 4.0.4-040004-generic

Reboot and enjoy :)

Changed in fglrx-installer (Ubuntu):
importance: Undecided → High
Revision history for this message
John D (johnniedoo) wrote :

i was up to kernel 4.0.5 and the debian installer from AmD site installed the packages reporting successful. however, it was only partially functional. when i updated, via the kernelupdater application to the next kernel4.1.2 i got all kinds of errors and xterm offered an ambiguous last line,abort or remove folder. i am not sure which to pick. so, may be facing another black screen. too bad these amd or gpu driver updates are so problematic before even getting to a kernel update, now, who knows what will break down? i dont know whether to purge out the kernel and go back to 3.17, way backward in other words, just to use a fairly unstable linux version of amd ccc, or purge out fglrx which is not even close to comparable to the latest windows 15.7 beta driver released simultaneously. amd needs to be far more concerned with linux users or lose potential customers

Revision history for this message
EvilSupahFly (seann-giffin) wrote :

I reverted to kernel 3.17 and all my AMD troubles went away. Stability for me is more important than running the hottest new kernel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.