Below is the terminal command and all output for running aocl install on s10_ref supplied with the FPGA SDK for OpenCL for Ubuntu. Some of the install works, then it crashes for the reasons given below.
To try and fix the error, I reinstalled linux-headers-generic but it did not fix the error. Thank you for any help with this issue.
sudo env "PATH=$PATH" aocl install .
Do you want to setup the FCD at directory /opt/Intel/OpenCL/Boards [Y/n] y
aocl install: Setting up the FPGA Client Driver (FCD) to the system. This process may require admin privilege
Install the FCD file to /opt/Intel/OpenCL/Boards
aocl install: Adding the board package /home/niko/intelFPGA_pro/19.4/hld/board/s10_ref to the list of installed packages
Installing the board package driver to the system.
aocl install: Running install from /home/niko/intelFPGA_pro/19.4/hld/board/s10_ref/linux64/libexec
Looking for kernel source files in /lib/modules/5.3.0-45-generic/build
Using kernel source files from /lib/modules/5.3.0-45-generic/build
Building driver for BSP with name s10_ref
make: Entering directory '/usr/src/linux-headers-5.3.0-45-generic'
/tmp/opencl_driver_s5Q4ey/aclpci.c: In function ‘load_signal_info’:
/tmp/opencl_driver_s5Q4ey/aclpci.c:371:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
struct siginfo *info = &aclpci->signal_info;
/tmp/opencl_driver_s5Q4ey/aclpci.c:382:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
info = &aclpci->signal_info_dma;
cc1: some warnings being treated as errors
scripts/Makefile.build:288: recipe for target '/tmp/opencl_driver_s5Q4ey/aclpci.o' failed
make: *** [/tmp/opencl_driver_s5Q4ey/aclpci.o] Error 1
Makefile:1655: recipe for target '_module_/tmp/opencl_driver_s5Q4ey' failed
make: *** [_module_/tmp/opencl_driver_s5Q4ey] Error 2
make: Leaving directory '/usr/src/linux-headers-5.3.0-45-generic'
aocl install: failed.
aocl install: Removing FCD
aocl install: Removing the board package /home/niko/intelFPGA_pro/19.4/hld/board/s10_ref from the list of installed packages
You will need to make some changes to the drivers to get it to install in Ubuntu 18.04, but its doable. I have it running on my machine with kernel 5.3.0. See