Error:Could not compile VFIO. See errors in platform_vfio_errors.txt - Error:Could not compile VFIO. See errors in platform_vfio_errors.txt
Description When you compile and build OPAE (Open Programmable Acceleration Engine) to generate rpm packages, Error may occur as follows: CMake Warning at tools/libopaevfio/CMakeLists.txt:51 (message): Could not compile VFIO. See errors in platform_vfio_errors.txt CPack Error: Error while execution CPackRPM.cmake CPack Error: Problem compressing the directory CPack Error: Error when generating package: opae make[3]: *** [CMakeFiles/package_rpm] Error 1 make[2]: *** [CMakeFiles/package_rpm.dir/all] Error 2 make[1]: *** [CMakeFiles/package_rpm.dir/rule] Error 2 make: *** [package_rpm] Error 2 Resolution The root cause is missing update the linux header files after build and installed the new kernel. To work around this problem, you can build the OPAE-SDK according to the following steps: 1. build the kernel when build and install the kernel finished, you need install the headers file : $ sudo make headers_install INSTALL_HDR_PATH=/usr 2. build the OPAE-SDK $ git clone https://github.com/OPAE/opae-sdk.git $ git checkout release/2.0.1-2 $ cd build/ $ cmake .. -DCPACK_GENERATOR=RPM -DOPAE_BUILD_LEGACY=ON -DOPAE_BUILD_EXTRA_TOOLS_FPGABIST=ON $ make -j $ make -j package_rpm Note: pls install the cmake3 in your Centos 7 distribution. $ sudo yum install cmake3 and make sure cmake3 is the default cmake, pls check the cmake version: [root@localhost bin]# cmake --version cmake3 version 3.17.5
Custom Fields values:
['novalue']
Troubleshooting
1508707705, 1509761678
False
['novalue']
['FPGA Dev Tools Quartus® Prime Software Pro']
novalue
19.2
['Arria® 10 Bare Die', 'Stratix® 10 FPGAs and SoCs']
['novalue']
['novalue']
['novalue'] - 2021-08-25
external_document