UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
903 Views
Registered: ‎06-17-2012

KCU1500 driver compilation error

Jump to solution

We tried to install kcu1500 board on ubuntu16.04 following the ug1023.

We generated the driver files using xbinst command successfully, but we got

the following compilation error. We searched around, but failed to find

much relevant information.  Any suggestions will be appreciated.

 

INFO: building kernel mode driver
make -C /lib/modules/4.15.0-29-generic/build M=/tmp/1637/0/driver/xclng/xdma modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-29-generic'
  CC [M]  /tmp/1637/0/driver/xclng/xdma/libxdma.o
/tmp/1637/0/driver/xclng/xdma/libxdma.c: In function ‘enable_msi_msix’:
/tmp/1637/0/driver/xclng/xdma/libxdma.c:1244:8: error: implicit declaration of function ‘pci_enable_msix’ [-Werror=implicit-function-declaration]
   rv = pci_enable_msix(pdev, xdev->entry, req_nvec);
        ^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/1637/0/driver/xclng/xdma/libxdma.o' failed
make[2]: *** [/tmp/1637/0/driver/xclng/xdma/libxdma.o] Error 1
Makefile:1552: recipe for target '_module_/tmp/1637/0/driver/xclng/xdma' failed
make[1]: *** [_module_/tmp/1637/0/driver/xclng/xdma] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-29-generic'
Makefile:20: recipe for target 'all' failed
make: *** [all] Error 2
ls: cannot access '*.ko': No such file or directory
INFO: Installing new kernel mode driver .ko version modinfo: ERROR: missing module or filename.
make -C /lib/modules/4.15.0-29-generic/build M=/tmp/1637/0/driver/xclng/xdma modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-29-generic'
  CC [M]  /tmp/1637/0/driver/xclng/xdma/libxdma.o
/tmp/1637/0/driver/xclng/xdma/libxdma.c: In function ‘enable_msi_msix’:
/tmp/1637/0/driver/xclng/xdma/libxdma.c:1244:8: error: implicit declaration of function ‘pci_enable_msix’ [-Werror=implicit-function-declaration]
   rv = pci_enable_msix(pdev, xdev->entry, req_nvec);
        ^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/1637/0/driver/xclng/xdma/libxdma.o' failed
make[2]: *** [/tmp/1637/0/driver/xclng/xdma/libxdma.o] Error 1
Makefile:1552: recipe for target '_module_/tmp/1637/0/driver/xclng/xdma' failed
make[1]: *** [_module_/tmp/1637/0/driver/xclng/xdma] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-29-generic'
Makefile:20: recipe for target 'all' failed
make: *** [all] Error 2
Generating SDAccel runtime environment setup script, setup.sh for bash
Generating SDAccel runtime environment setup script, setup.csh for (t)csh
0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
937 Views
Registered: ‎07-16-2008

回复: KCU1500 driver compilation error

Jump to solution

What is the SDx version?

For 2018.2, the supported Ubuntu OS is:

Ubuntu Linux 16.04.3 LTS (64-bit)
- Linux kernel 4.4.0 is supported
- Ubuntu LTS enablement (also called HWE or Hardware Enablement) is not supported

 

Please check if the kenel version matches. Also, did you install the package list as documented in UG1238?

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

2 Replies
Xilinx Employee
Xilinx Employee
938 Views
Registered: ‎07-16-2008

回复: KCU1500 driver compilation error

Jump to solution

What is the SDx version?

For 2018.2, the supported Ubuntu OS is:

Ubuntu Linux 16.04.3 LTS (64-bit)
- Linux kernel 4.4.0 is supported
- Ubuntu LTS enablement (also called HWE or Hardware Enablement) is not supported

 

Please check if the kenel version matches. Also, did you install the package list as documented in UG1238?

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

Explorer
Explorer
832 Views
Registered: ‎06-17-2012

回复: KCU1500 driver compilation error

Jump to solution

Thanks for the suggestions.

We are using Vivado 2017.1 and the right ubuntu version, however the kernel version is not the official one and 

it caused the compilation error. After we changed the kernel version, the problem is solved.

 

Regards,

Cheng Liu

0 Kudos