A buddy asked me to add that he's also unable to build - Trusty
(14.04.5).
...
ld -r -o
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-modeset/nv-modeset-interface.o
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-modeset/nvidia-modeset-linux.o
LD [M] /tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-modeset.o
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:
In function ‘nvidia_drm_lock_user_pages’:
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:140:5:
warning: passing argument 6 of ‘get_user_pages’ makes pointer from integer
without a cast [enabled by default]
pages_pinned = NV_GET_USER_PAGES(address, pages_count, write, force,
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/drm/drmP.h:37,
from
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-os-interface.h:32,
from
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:27:
include/linux/mm.h:1222:6: note: expected ‘struct page **’ but argument is of
type ‘int’
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:140:5:
warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type
[enabled by default]
pages_pinned = NV_GET_USER_PAGES(address, pages_count, write, force,
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/drm/drmP.h:37,
from
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-os-interface.h:32,
from
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:27:
include/linux/mm.h:1222:6: note: expected ‘struct vm_area_struct **’ but
argument is of type ‘struct page **’
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:140:5:
error: too many arguments to function ‘get_user_pages’
pages_pinned = NV_GET_USER_PAGES(address, pages_count, write, force,
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/drm/drmP.h:37,
from
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-os-interface.h:32,
from
/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.c:27:
include/linux/mm.h:1222:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
make[2]: ***
[/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel/nvidia-drm/nvidia-drm-linux.o]
Error 1
make[2]: Target `__build' not remade because of errors.
make[1]: *** [_module_/tmp/selfgz3636/NVIDIA-Linux-x86_64-367.35/kernel] Error 2
make[1]: Target `modules' not remade because of errors.
make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-143-generic'
make: *** [modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions on
fixing installation problems in the README available on the Linux driver
download page at www.nvidia.com.
** Attachment added: "nvidia-installer log file for -143 kernel"
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1573508/+attachment/5249523/+files/nvidia-installer.log
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-graphics-drivers-340 in Ubuntu.
https://bugs.launchpad.net/bugs/1573508
Title:
SRU Request: nvidia-*: nvidia-* kernel module failed to build [error:
too many arguments to function ‘get_user_pages’]
Status in nvidia-graphics-drivers-340 package in Ubuntu:
Fix Released
Status in nvidia-graphics-drivers-304 source package in Trusty:
Fix Released
Status in nvidia-graphics-drivers-340 source package in Trusty:
Fix Released
Status in nvidia-graphics-drivers-384 source package in Trusty:
Fix Released
Status in nvidia-graphics-drivers-304 source package in Xenial:
Fix Released
Status in nvidia-graphics-drivers-340 source package in Xenial:
Fix Released
Status in nvidia-graphics-drivers-384 source package in Xenial:
Fix Released
Bug description:
SRU Request:
[Impact]
A commit that was backported to the latest 4.4 kernel, broke compatibility
with the NVIDIA drivers in Xenial and in Trusty.
[Test Case]
1) Enable the -proposed repository, and install the new 4.4 kernel image and
headers, and one of the NVIDIA drivers (304, 340, 384)
2) Check that the kernel module can be built against the new kernel.
3) Restart your computer, and see if everything works correctly when
accessing the desktop.
[Regression Potential]
Low.
___________________________
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nvidia-361 361.42-0ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
DKMSKernelVersion: 4.6.0-040600rc4-lowlatency
Date: Fri Apr 22 15:43:10 2016
DuplicateSignature:
dkms:nvidia-361:361.42-0ubuntu2:/var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:119:11:
error: too many arguments to function ‘get_user_pages’
InstallationDate: Installed on 2016-04-22 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64
(20160420.1)
PackageVersion: 361.42-0ubuntu2
RelatedPackageVersions:
dpkg 1.18.4ubuntu1
apt 1.2.10ubuntu1
SourcePackage: nvidia-graphics-drivers-361
Title: nvidia-361 361.42-0ubuntu2: nvidia-361 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-340/+bug/1573508/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp