Ubuntu install fails on DKMS build for Decklink Mini Rec.

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

rok333

  • Posts: 1
  • Joined: Thu Jul 25, 2019 2:24 pm
  • Real Name: Rok Irt

Ubuntu install fails on DKMS build for Decklink Mini Rec.

PostThu Jul 25, 2019 2:36 pm

Hello,
I have to install 10.9.3 driver for legacy software reasons on Ubuntu 16.04, but on step DKMS build it fails. It looks like it is not compatible with this specific kernel 4.4.0-152, although by documentation it should work.
Any suggestions how to tackle this problem?

Here is a log:
Shell:~/Blackmagic_Desktop_Video_Linux_10.9.3a2/deb/amd64$ sudo dkms build -m blackmagic-io -v 10.9.3a2

Creating symlink /var/lib/dkms/blackmagic-io/10.9.3a2/source ->
/usr/src/blackmagic-io-10.9.3a2

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.4.0-154-generic KERNELRELEASE=4.4.0-154-generic....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 4.4.0-154-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/10.9.3a2/build/make.log for more information.




Shell:~/Blackmagic_Desktop_Video_Linux_10.9.3a2/deb/amd64$ cat /var/lib/dkms/blackmagic-io/10.9.3a2/build/make.log
DKMS make.log for blackmagic-io-10.9.3a2 for kernel 4.4.0-154-generic (x86_64)
Thu Jul 25 17:10:58 EEST 2019
make -C /lib/modules/4.4.0-154-generic/build M=/var/lib/dkms/blackmagic-io/10.9.3a2/build
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-154-generic'
LD /var/lib/dkms/blackmagic-io/10.9.3a2/build/built-in.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_client.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_dev.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_device.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_driver.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_serial.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_export.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bmio_pci_ids.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_locks.o
CC [M] /var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.o
/var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.c: In function ‘bm_get_user_pages’:
/var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.c:122:100: warning: passing argument 7 of ‘get_user_pages’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = get_user_pages(task, task->mm, (unsigned long)address & PAGE_MASK, umem->length, write, 0, umem->pages, NULL);
^
In file included from /var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.c:27:0:
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,
^
/var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.c:122:9: error: too many arguments to function ‘get_user_pages’
ret = get_user_pages(task, task->mm, (unsigned long)address & PAGE_MASK, umem->length, write, 0, umem->pages, NULL);
^
In file included from /var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.c:27:0:
include/linux/mm.h:1222:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
scripts/Makefile.build:285: recipe for target '/var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.o' failed
make[2]: *** [/var/lib/dkms/blackmagic-io/10.9.3a2/build/bm_mm.o] Error 1
Makefile:1454: recipe for target '_module_/var/lib/dkms/blackmagic-io/10.9.3a2/build' failed
make[1]: *** [_module_/var/lib/dkms/blackmagic-io/10.9.3a2/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-154-generic'
Makefile:47: recipe for target 'all' failed
make: *** [all] Error 2



Shell:~/Blackmagic_Desktop_Video_Linux_10.9.3a2/deb/amd64$ uname -r
4.4.0-154-generic



Shell:~/Blackmagic_Desktop_Video_Linux_10.9.3a2/deb/amd64$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
Offline

Cameron Nichols

Blackmagic Design

  • Posts: 198
  • Joined: Mon Sep 04, 2017 4:05 am

Re: Ubuntu install fails on DKMS build for Decklink Mini Rec

PostTue Jul 30, 2019 6:21 am

Hi Rok,

The function prototype for get_user_pages was changed in Linux kernel 4.4.0-143, and this was resolved in Desktop Video 11.1. You should upgrade to the latest version of Desktop Video from our support site:

https://www.blackmagicdesign.com/suppor ... d-playback

Regards
Cameron

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 4 guests