desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #114580
[Bug 1431278] Re: nvidia-304-updates 304.125-0ubuntu0.1: nvidia-304-updates kernel module failed to build [error: implicit declaration of function ‘read_cr4’]
DeadMetaler:
sudo leafpad /usr/src/nvidia-340-340.76/nv-pat.c
about 35 line change "read_cr4" to "__read_cr4" and "write_cr4" to "__write_cr4" or copy-past:
---------------------------------------
static inline void nv_disable_caches(unsigned long *cr4)
{
unsigned long cr0 = read_cr0();
write_cr0(((cr0 & (0xdfffffff)) | 0x40000000));
wbinvd();
*cr4 = __read_cr4();
if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80);
__flush_tlb();
}
static inline void nv_enable_caches(unsigned long cr4)
{
unsigned long cr0 = read_cr0();
wbinvd();
__flush_tlb();
write_cr0((cr0 & 0x9fffffff));
if (cr4 & 0x80) __write_cr4(cr4);
}
---------------------------------------
Then:
sudo dkms autoinstall -k 4.0.0-040000-generic -m nvidia-340 -v 340.76
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-graphics-drivers-304-updates in
Ubuntu.
https://bugs.launchpad.net/bugs/1431278
Title:
nvidia-304-updates 304.125-0ubuntu0.1: nvidia-304-updates kernel
module failed to build [error: implicit declaration of function
‘read_cr4’]
Status in nvidia-graphics-drivers-304-updates package in Ubuntu:
Confirmed
Status in nvidia-graphics-drivers-340 package in Ubuntu:
Confirmed
Status in nvidia-graphics-drivers-346-updates package in Ubuntu:
Confirmed
Bug description:
The nvidia-304-updates kernel module fails to build when installing
the 4.0rc3 kernel from kernel-ppa.
A solution/fix for the problem is shown at
https://devtalk.nvidia.com/default/topic/813458/linux/linux-4-0-rc1-346-47-build-error-_cr4-functions-fix/post/4471335/#4471335
ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: nvidia-304-updates 304.125-0ubuntu0.1 [modified: usr/src/nvidia-304-updates-304.125/nv.c]
Uname: Linux 3.18.7-031807-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
DKMSKernelVersion: 4.0.0-040000rc3-generic
Date: Thu Mar 12 10:44:31 2015
DuplicateSignature: dkms:nvidia-304-updates:304.125-0ubuntu0.1:/var/lib/dkms/nvidia-304-updates/304.125/build/nv-pat.c:38:5: error: implicit declaration of function ‘read_cr4’ [-Werror=implicit-function-declaration]
InstallationDate: Installed on 2014-12-04 (97 days ago)
InstallationMedia: Lubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageVersion: 304.125-0ubuntu0.1
SourcePackage: nvidia-graphics-drivers-304-updates
Title: nvidia-304-updates 304.125-0ubuntu0.1: nvidia-304-updates kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304-updates/+bug/1431278/+subscriptions
References