I am attempting to install the Hailo AI Software Suite (Version 2024-07.1, dated July 31, 2024). During the installation, when I run the command:
$ ./hailo_ai_sw_suite_2024-07.1.run
I encounter an error while trying to install the PCIe driver, which prevents the installation from finishing. The specific error message is:
Failed to install PCIe driver to the DKMS tree. Trying to install PCIe driver without DKMS
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
dpkg: error processing package hailort-pcie-driver (--install):
installed hailort-pcie-driver package post-installation script subprocess returned error exit status 2
Here are the steps I have taken so far:
Uninstalled the driver from DKMS using:
$ sudo dkms remove hailo_pci/4.18.0 --all
The output confirmed that the hailo_pci-4.18.0 module was successfully removed.
Verified DKMS status:
$ sudo dkms status
No output was returned, indicating the module was removed correctly.
Hi @oscar.mendez,
There could be several causes, but the first one we need to check is the secure boot.
The HailoRT installation requires disbling the secure boot from the BIOS. Did you do it?
Can you also send the content of the /var/log/hailort-pcie-driver.deb.log?
Yes, I just checked and I have Secure Boot disabled. Additionally, I am attaching the contents of the /var/log/hailort-pcie-driver.deb.log file for your reference:
######### mié 14 ago 18:32:43 CST 2024 #########
Verifying secureboot is disabled.
######### mié 14 ago 18:32:44 CST 2024 #########
/share/opt/hailo/linux/pcie /
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
CLEAN /share/opt/hailo/linux/pcie
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
Creating symlink /var/lib/dkms/hailo_pci/4.18.0/source -> /usr/src/hailo_pci-4.18.0
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j12 KERNELRELEASE=6.8.0-40-generic -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie modules...(bad exit status: 2)
ERROR (dkms apport): binary package for hailo_pci: 4.18.0 not found
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/hailo_pci/4.18.0/build/make.log for more information.
DKMS make.log for hailo_pci-4.18.0 for kernel 6.8.0-40-generic (x86_64)
mié 14 ago 18:32:46 CST 2024
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pcie.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/fops.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/utils.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/sysfs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pci_soc_ioctl.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_validation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_operation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/vdma_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/hailo_resource.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../utils/logs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/vdma.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/memory.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/ioctl.o
/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:131: install_dkms] Error 1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /share/opt/hailo/linux/pcie/src/pcie.o
CC [M] /share/opt/hailo/linux/pcie/src/fops.o
CC [M] /share/opt/hailo/linux/pcie/src/utils.o
CC [M] /share/opt/hailo/linux/pcie/src/sysfs.o
CC [M] /share/opt/hailo/linux/pcie/src/pci_soc_ioctl.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_validation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_operation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/pcie_common.o
/share/opt/hailo/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /share/opt/hailo/linux/pcie/../../common/pcie_common.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /share/opt/hailo/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:93: all] Error 2
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
Failed at 49
46
47 function compile_and_install_pcie_driver_without_dkms() {
48 make clean &>> $LOG
49 make all &>> $LOG
50 make install &>> $LOG
51 }
52
######### mié 14 ago 18:37:12 CST 2024 #########
######### mié 14 ago 18:37:13 CST 2024 #########
Verifying secureboot is disabled.
######### mié 14 ago 18:37:13 CST 2024 #########
######### mié 14 ago 18:37:13 CST 2024 #########
/share/opt/hailo/linux/pcie /
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
CLEAN /share/opt/hailo/linux/pcie
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
Creating symlink /var/lib/dkms/hailo_pci/4.18.0/source -> /usr/src/hailo_pci-4.18.0
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j12 KERNELRELEASE=6.8.0-40-generic -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie modules...(bad exit status: 2)
ERROR (dkms apport): binary package for hailo_pci: 4.18.0 not found
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/hailo_pci/4.18.0/build/make.log for more information.
DKMS make.log for hailo_pci-4.18.0 for kernel 6.8.0-40-generic (x86_64)
mié 14 ago 18:37:17 CST 2024
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pcie.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/fops.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/utils.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/sysfs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pci_soc_ioctl.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_validation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_operation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/vdma_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/hailo_resource.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../utils/logs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/vdma.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/memory.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/ioctl.o
/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:131: install_dkms] Error 1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /share/opt/hailo/linux/pcie/src/pcie.o
CC [M] /share/opt/hailo/linux/pcie/src/fops.o
CC [M] /share/opt/hailo/linux/pcie/src/utils.o
CC [M] /share/opt/hailo/linux/pcie/src/sysfs.o
CC [M] /share/opt/hailo/linux/pcie/src/pci_soc_ioctl.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_validation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_operation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/pcie_common.o
/share/opt/hailo/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /share/opt/hailo/linux/pcie/../../common/pcie_common.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /share/opt/hailo/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:93: all] Error 2
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
Failed at 49
46
47 function compile_and_install_pcie_driver_without_dkms() {
48 make clean &>> $LOG
49 make all &>> $LOG
50 make install &>> $LOG
51 }
52
######### mié 14 ago 18:56:34 CST 2024 #########
######### mié 14 ago 18:56:36 CST 2024 #########
Verifying secureboot is disabled.
######### mié 14 ago 18:56:36 CST 2024 #########
######### mié 14 ago 18:56:36 CST 2024 #########
/share/opt/hailo/linux/pcie /
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
Creating symlink /var/lib/dkms/hailo_pci/4.18.0/source -> /usr/src/hailo_pci-4.18.0
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j12 KERNELRELEASE=6.8.0-40-generic -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie modules...(bad exit status: 2)
ERROR (dkms apport): binary package for hailo_pci: 4.18.0 not found
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/hailo_pci/4.18.0/build/make.log for more information.
DKMS make.log for hailo_pci-4.18.0 for kernel 6.8.0-40-generic (x86_64)
mié 14 ago 18:56:39 CST 2024
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pcie.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/fops.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/utils.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/sysfs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pci_soc_ioctl.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_validation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_operation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/vdma_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/hailo_resource.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../utils/logs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/vdma.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/memory.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/ioctl.o
/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:131: install_dkms] Error 1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /share/opt/hailo/linux/pcie/src/pcie.o
CC [M] /share/opt/hailo/linux/pcie/src/fops.o
CC [M] /share/opt/hailo/linux/pcie/src/utils.o
CC [M] /share/opt/hailo/linux/pcie/src/sysfs.o
CC [M] /share/opt/hailo/linux/pcie/src/pci_soc_ioctl.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_validation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_operation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/pcie_common.o
/share/opt/hailo/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /share/opt/hailo/linux/pcie/../../common/pcie_common.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /share/opt/hailo/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:93: all] Error 2
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
Failed at 49
46
47 function compile_and_install_pcie_driver_without_dkms() {
48 make clean &>> $LOG
49 make all &>> $LOG
50 make install &>> $LOG
51 }
52
######### mié 14 ago 19:42:32 CST 2024 #########
######### mié 14 ago 19:42:33 CST 2024 #########
######### mié 14 ago 19:42:34 CST 2024 #########
Verifying secureboot is disabled.
######### mié 14 ago 19:42:35 CST 2024 #########
/share/opt/hailo/linux/pcie /
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
CLEAN /share/opt/hailo/linux/pcie
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
Creating symlink /var/lib/dkms/hailo_pci/4.18.0/source -> /usr/src/hailo_pci-4.18.0
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j12 KERNELRELEASE=6.8.0-40-generic -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie modules...(bad exit status: 2)
ERROR (dkms apport): binary package for hailo_pci: 4.18.0 not found
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/hailo_pci/4.18.0/build/make.log for more information.
DKMS make.log for hailo_pci-4.18.0 for kernel 6.8.0-40-generic (x86_64)
mié 14 ago 19:42:47 CST 2024
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pcie.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/fops.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/utils.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/sysfs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/src/pci_soc_ioctl.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_validation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/fw_operation.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/vdma_common.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/hailo_resource.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../utils/logs.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/vdma.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/memory.o
CC [M] /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../vdma/ioctl.o
/var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie/../../common/pcie_common.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /var/lib/dkms/hailo_pci/4.18.0/build/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:131: install_dkms] Error 1
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /share/opt/hailo/linux/pcie/src/pcie.o
CC [M] /share/opt/hailo/linux/pcie/src/fops.o
CC [M] /share/opt/hailo/linux/pcie/src/utils.o
CC [M] /share/opt/hailo/linux/pcie/src/sysfs.o
CC [M] /share/opt/hailo/linux/pcie/src/pci_soc_ioctl.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_validation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/fw_operation.o
CC [M] /share/opt/hailo/linux/pcie/../../common/pcie_common.o
/share/opt/hailo/linux/pcie/../../common/pcie_common.c:659:6: error: no previous prototype for ‘hailo_pcie_is_device_ready_for_boot’ [-Werror=missing-prototypes]
659 | bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /share/opt/hailo/linux/pcie/../../common/pcie_common.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /share/opt/hailo/linux/pcie] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:93: all] Error 2
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
Failed at 49
46
47 function compile_and_install_pcie_driver_without_dkms() {
48 make clean &>> $LOG
49 make all &>> $LOG
50 make install &>> $LOG
51 }
52
Hi @oscar.mendez,
Can you please try the following steps:
Uninstall the driver if some parts of it were installed sudo dpkg --purge hailort-pcie-driver
Do one of the following: a) Install DKMS (sudo apt-get install dkms) and then install tyhe PCIe driver using the .deb file. b) Install the PCIe driver without DKMS (when asked if install with DKMS, type in “n”).
I was working under linux kernel header version 6.5.0-44-generic and everything works fine. One day the system automatically upgraded to 6.8.0-40-generic and then everything crashed. I had the same error msg with yours.
After downgrading back to 6.5.0-44-generic, everything is fine again. Not sure if it is a general solution.