blackmagic-io kernel module won't compile with Centos 7.6

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

darwinliu

  • Posts: 2
  • Joined: Tue Dec 18, 2018 4:41 am
  • Real Name: Darwin Liu

blackmagic-io kernel module won't compile with Centos 7.6

PostWed Dec 19, 2018 7:28 pm

I was trying to install the rpm files from Blackmagic_Desktop_Video_Linux_10.11.4.tar.gz onto a fresh Centos 7.6 system and it's currently giving me a compilation error. Anyone got any idea if this is a known issue or if this is going to get fixed? Or if I'm just doing something horribly wrong?





STEPS TO REPRODUCE:

1) Install a minimal centos from CentOS-7-x86_64-Minimal-1810.iso image.

2) `yum -y update`

3) `yum -y groupinstall 'Development Tools'

4) `yum -y install epel-release kernel-devel`

5) `yum install -y dkms`

6) Transfer the Blackmagic tar file onto the system.

7) Untar the file

8) Change into the rpm directory and `yum install desktopvideo-10.11.4a9.x86_64.rpm desktopvideo-gui-10.11.4a9.x86_64.rpm mediaexpress-3.5.7a5.x86_64.rpm`

WHAT SHOULD HAPPEN:
The black magic dkms package should install just fine.

WHAT ACTUALLY HAPPENS:
The blackmagic-io kernel module throws a compilation error.



NOTES:
* Tested kernel is 3.10.0-957.1.3.el7.x86_64, which is the current shipping CENTOS/RHEL kernel version at the time this email was sent.

* Manually calling the dkms install reveals the exact error that occurs.

[root@testhost x86_64]# dkms install blackmagic-io/10.11.4a9

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=3.10.0-957.1.3.el7.x86_64 KERNELRELEASE=3.10.0-957.1.3.el7.x86_64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-957.1.3.el7.x86_64 (x86_64)
Consult /var/lib/dkms/blackmagic-io/10.11.4a9/build/make.log for more information.
[root@testhost x86_64]# cat /var/lib/dkms/blackmagic-io/10.11.4a9/build/make.log
DKMS make.log for blackmagic-io-10.11.4a9 for kernel 3.10.0-957.1.3.el7.x86_64 (x86_64)
Tue Dec 18 04:58:59 UTC 2018
make -C /lib/modules/3.10.0-957.1.3.el7.x86_64/build M=/var/lib/dkms/blackmagic-io/10.11.4a9/build
make[1]: Entering directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
LD /var/lib/dkms/blackmagic-io/10.11.4a9/build/built-in.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_client.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_dev.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_device.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_serial.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_driver.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_export.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_pci_ids.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_locks.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_pci.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_mm.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_util.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.o
/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.c: In function ‘create_sound_card’:
/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.c:373:2: error: implicit declaration of function ‘snd_card_create’ [-Werror=implicit-function-declaration]
int r = snd_card_create(idx, xid, module, extra_size, card_ret);
^
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/lib/dkms/blackmagic-io/10.11.4a9/build] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
make: *** [all] Error 2
Offline

darwinliu

  • Posts: 2
  • Joined: Tue Dec 18, 2018 4:41 am
  • Real Name: Darwin Liu

Re: blackmagic-io kernel module won't compile with Centos 7.

PostThu Dec 27, 2018 2:11 am

No longer a concern, BMD has stated issue will be resolved in a future release of the driver. Thanks!
Offline

wmendez

  • Posts: 12
  • Joined: Fri Dec 14, 2018 6:43 pm
  • Real Name: Will Mendez

Re: blackmagic-io kernel module won't compile with Centos 7.

PostSun Dec 30, 2018 5:02 am

Your command "dkms install blackmagic-io/10.11.4a9" was able to resolve my install issue on Fedora 29.

Thank you.
Offline

syftec

  • Posts: 1
  • Joined: Mon Jan 14, 2019 10:31 am
  • Real Name: Nabil Abdelilah

Re: blackmagic-io kernel module won't compile with Centos 7.

PostMon Jan 14, 2019 10:33 am

I tried this command:

sudo dkms install blackmagic-io/10.11.4a9

And I get these error messages:

Building module:
cleaning build area...
make -j16 KERNELRELEASE=3.10.0-957.1.3.el7.x86_64 KERNELRELEASE=3.10.0-957.1.3.el7.x86_64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-957.1.3.el7.x86_64 (x86_64)
Consult /var/lib/dkms/blackmagic-io/10.11.4a9/build/make.log for more information
.

Here is make.log content:

DKMS make.log for blackmagic-io-10.11.4a9 for kernel 3.10.0-957.1.3.el7.x86_64 (x86_64)
Mon Jan 14 11:29:18 CET 2019
make -C /lib/modules/3.10.0-957.1.3.el7.x86_64/build M=/var/lib/dkms/blackmagic-io/10.11.4a9/build
make[1]: Entering directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
LD /var/lib/dkms/blackmagic-io/10.11.4a9/build/built-in.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_client.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_dev.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_device.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_driver.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_serial.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_export.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_pci_ids.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_locks.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_mm.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_pci.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bm_util.o
CC [M] /var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.o
/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.c: In function ‘create_sound_card’:
/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.c:373:2: error: implicit declaration of function ‘snd_card_create’ [-Werror=implicit-function-declaration]
int r = snd_card_create(idx, xid, module, extra_size, card_ret);
^
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/blackmagic-io/10.11.4a9/build/bmio_audio.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/lib/dkms/blackmagic-io/10.11.4a9/build] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
make: *** [all] Error 2


Thank you for your help

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 2 guests