04-23-2019 03:32 AM
hi
When installing XVC drivers according to the manual of PG156, make install error, as follows:
make -C /lib/modules/4.15.0-47-generic/build M=/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-47-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.o
/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.c: In function ‘pci_mmcfg_driver_init’:
/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.c:118:2: error: implicit declaration of function ‘acpi_get_table_with_size’ [-Werror=implicit-function-declaration]
acpi_get_table_with_size(ACPI_SIG_MCFG, 0, &mcfg_base, &mcfg_size);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.o' failed
make[2]: *** [/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.o] Error 1
Makefile:1552: recipe for target '_module_/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4' failed
make[1]: *** [_module_/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-47-generic'
Makefile:21: recipe for target 'module' failed
make: *** [module] Error 2
I am completely installed in the manual, why is this?
04-26-2019 07:56 AM
Hi @xilinx675942236 & @luisb,
You are missing a dependancy in your Ubuntu installations, please try:
sudo apt-get install libelf1 -or-
sudo apt-get install elfutils
After applying this to my Ubuntu build, I was able to successfully make clean all, sudo make install, and sudo modprobe the driver, and see it attach.
04-25-2019 09:25 PM
I'm getting the same error. What OS and version are you using? I'm using Ubuntu 18.04 and I'm wondering if you're using the same.
04-25-2019 11:09 PM
04-26-2019 07:56 AM
Hi @xilinx675942236 & @luisb,
You are missing a dependancy in your Ubuntu installations, please try:
sudo apt-get install libelf1 -or-
sudo apt-get install elfutils
After applying this to my Ubuntu build, I was able to successfully make clean all, sudo make install, and sudo modprobe the driver, and see it attach.