BlackMagic driver not building on RHEL version 2.6.18-53.1.1

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Madhavan Narayanan

  • Posts: 1
  • Joined: Wed Aug 06, 2014 11:31 am

BlackMagic driver not building on RHEL version 2.6.18-53.1.1

PostWed Aug 06, 2014 11:39 am

Following is the transcript of installation.
$ sudo rpm -i desktopvideo-10.1.1-a26.i386.rpm
Preparing new blackmagic driver for 2.6.18-53.1.14.el5 kernel...
Adding to DKMS
Building (failed)
Preparing new blackmagic-io driver for 2.6.18-53.1.14.el5 kernel...
Adding to DKMS
Building (failed)
Loading modules...
Adding sysvinit services...
DesktopVideoHelper
Starting sysvinit services...
DesktopVideoHelper
********************************************************************************
Failed to build driver(s)

Possible causes:
1. Driver is incompatible with your kernel version
2. Kernel headers/gcc/make/etc. is not installed
3. Kernel header version does not match the running kernel (2.6.18-53.1.14.el5)

Error messages:
dkms build -m blackmagic -v 10.1.1a26 --rpm_safe_upgrade
---

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-53.1.14.el5 KERNELRELEASE=2.6.18-53.1.14.el5....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-53.1.14.el5 (i686)
Consult the make.log in the build directory
/var/lib/dkms/blackmagic/10.1.1a26/build/ for more information.
0
0

dkms build -m blackmagic-io -v 10.1.1a26 --rpm_safe_upgrade
---

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-53.1.14.el5 KERNELRELEASE=2.6.18-53.1.14.el5....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-53.1.14.el5 (i686)
Consult the make.log in the build directory
/var/lib/dkms/blackmagic-io/10.1.1a26/build/ for more information.
0
0

make.log shows the following error
DKMS make.log for blackmagic-io-10.1.1a26 for kernel 2.6.18-53.1.14.el5 (i686)
Wed Aug 6 04:17:04 PDT 2014
make -C /lib/modules/2.6.18-53.1.14.el5/build M=/var/lib/dkms/blackmagic-io/10.1.1a26/build
make[1]: Entering directory `/usr/src/kernels/2.6.18-53.1.14.el5-i686'
LD /var/lib/dkms/blackmagic-io/10.1.1a26/build/built-in.o
CC [M] /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.o
In file included from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_driver.h:35,
from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.h:30,
from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:35:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_pci.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_pci_start’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_pci.h:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_pci_set_bus_master_enable’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_pci.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_pci_set_memory_enable’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_pci.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_pci_using_msi’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_pci.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_pci_register_interrupt’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_pci.h:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_pci_map_bar’
In file included from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_driver.h:36,
from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.h:30,
from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:35:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_serial.h:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bmio_serial_supported’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_serial.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bmio_serial_pop_rx_byte’
In file included from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.h:30,
from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:35:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_driver.h:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bmio_driver_start’
In file included from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.h:31,
from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:35:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_locks.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_spin_trylock’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_locks.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_mutex_trylock’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_locks.h:59: error: expected declaration specifiers or ‘...’ before ‘bool’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_locks.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_rmutex_trylock’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_locks.h:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_rmutex_have_lock’
In file included from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:35:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bmio_client_notify’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.h:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bmio_notify_add’
In file included from /var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:36:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_util.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_ratelimit’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_util.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_compare_and_swap’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_util.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bm_thread_should_stop’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bm_util.h:139: error: expected declaration specifiers or ‘...’ before ‘bool’
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c: In function ‘bmio_read’:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:167: error: ‘true’ undeclared (first use in this function)
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:167: error: (Each undeclared identifier is reported only once
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:167: error: for each function it appears in.)
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c: At top level:
/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.c:289: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bmio_client_notify’
make[2]: *** [/var/lib/dkms/blackmagic-io/10.1.1a26/build/bmio_client.o] Error 1
make[1]: *** [_module_/var/lib/dkms/blackmagic-io/10.1.1a26/build] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.14.el5-i686'
make: *** [all] Error 2


Can someone please help me out?

regards,
Madhavan
Offline

Amnon Israely

  • Posts: 11
  • Joined: Sun May 05, 2013 9:07 am

Re: BlackMagic driver not building on RHEL version 2.6.18-53

PostWed Sep 03, 2014 2:32 pm

I don't remember exactly what error i fighted.. but it's was look like yours.
From log was hard to understand where the problem.
but solution was:
yum install perl
:D
Offline

Gerardo Arceri

  • Posts: 42
  • Joined: Tue Jan 28, 2014 12:18 am

Re: BlackMagic driver not building on RHEL version 2.6.18-53

PostFri Sep 19, 2014 5:32 pm

Alternatively you could as well upgrade to the 5.6 kernel using the instructions provided in the Davinci 11 downloadable package readme file that i'm quoting here (ignore the part about Red Rocket cards):

Code: Select all
DaVinci Resolve CentOS 5.6 Kernel update

For users running CentOS 5.4 along with one or more RED Rockets, you will need to update your kernel to CentOS 5.6. Please follow the update procedure detailed below. This update requires the use of the Terminal shell. It is designed to be executed by an IT professional or your System Administrator. Please back up any critical data or information on an external drive or machine prior to performing the update.
Download the CentOS5.6_KernelUpdate.tgz file from http://software.blackmagicdesign.com/DaVinci/CentOS5.6_KernelUpdate.tgz (MD5: 180630f79747d4d0c55fcefb5a58c6b7) and perform the following steps:


1. Open a Terminal shell
2. You need to now become the root user. Type:
   sudo su -
3. Uncompress the update package. Type:
   tar xvfz /path/to/CentOS5.6_KernelUpdate.tgz
4. Navigate to the folder with the extracted package. Type:
   cd /path/to/extracted/location/CentOS5.6_KernelUpdate
5. Run the first installation script and waiting for the script to complete. Type:
   ./preinstall.sh
6. After the script completes, you should see the terminal prompt. Then, reboot the machine.
7. After the machine reboots, you will be prompted for username. For username type:
   root
8. Enter the 'root' user's password. If your system administrator has not changed this, it will be:
   DaVinci
9. Navigate back to the folder with the extracted package. Type:
   cd /path/to/extracted/location/CentOS5.6_KernelUpdate
10. Run the second installation script and waiting for the script to complete. Type:
   ./postinstall.sh
11. After the script completes, you should see the terminal prompt. Then, reboot the machine. Type:
   reboot

The kernel update should be complete at this point.

In order to switch back to the 5.4 Kernel, re-run the procedure above replacing the commands you type in steps 5 and 10 with the following:
5. ./preinstall undo
10. ./postinstall undo
NOTE: Please complete the entire update process before downgrading.

Return to DaVinci Resolve

Who is online

Users browsing this forum: aaulitin, BartReynaard, Håkan Mitts and 264 guests