aws / aws-fpga

Official repository of the AWS EC2 FPGA Hardware and Software Development Kit
Other
1.52k stars 517 forks source link

source sdaccel_setup.sh fails #428

Closed gsneha26 closed 6 years ago

gsneha26 commented 6 years ago

CC [M] /aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_sysfs.o In file included from /home/gsneha/aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_sysfs.c:19:0: /aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_drv.h:27:25: fatal error: drm/drm_gem.h: No such file or directory

include <drm/drm_gem.h>

                     ^

compilation terminated. make[3]: [/aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_sysfs.o] Error 1 make[2]: [module/aws-fpga/sdk/linux_kernel_drivers/xocl] Error 2 make[2]: Leaving directory /usr/src/linux-headers-3.2.0-29-generic' make[1]: *** [all] Error 2 make[1]: Leaving directory/aws-fpga/sdk/linux_kernel_drivers/xocl' make: *** [all] Error 2 ERROR: Build of SDAccel runtime FAILED

kristopk commented 6 years ago

Please provide your linux kernel version. %uname -r

gsneha26 commented 6 years ago

3.2.0-29-generic

rradjabi commented 6 years ago

Can you please start from scratch by cloning aws-fpga and source sdaccel_setup.sh and then share the entire stdout?

gsneha26 commented 6 years ago

make -C /aws-fpga/sdk/linux_kernel_drivers/xocl make[1]: Entering directory /aws-fpga/sdk/linux_kernel_drivers/xocl' echo "include: -I/aws-fpga/SDAccel/userspace/include -I/aws-fpga/sdk/linux_kernel_drivers/xocl -I/aws-fpga/sdk/linux_kernel_drivers/xocl/../xdma/" include: -I/aws-fpga/SDAccel/userspace/include -I/aws-fpga/sdk/linux_kernel_drivers/xocl -I/aws-fpga/sdk/linux_kernel_drivers/xocl/../xdma/ echo "sdaccel_dir: /aws-fpga/SDAccel" sdaccel_dir: /aws-fpga/SDAccel echo "ROOT: " ROOT: echo "XOCL_DIR: /aws-fpga/sdk/linux_kernel_drivers/xocl" XOCL_DIR: /aws-fpga/sdk/linux_kernel_drivers/xocl make -C /lib/modules/3.2.0-29-generic/build M=/aws-fpga/sdk/linux_kernel_drivers/xocl modules make[2]: Entering directory/usr/src/linux-headers-3.2.0-29-generic' CC [M] /aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_sysfs.o In file included from /aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_sysfs.c:19:0: /aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_drv.h:27:25: fatal error: drm/drm_gem.h: No such file or directory

include <drm/drm_gem.h>

                     ^

compilation terminated. make[3]: [/aws-fpga/sdk/linux_kernel_drivers/xocl/xocl_sysfs.o] Error 1 make[2]: [module/aws-fpga/sdk/linux_kernel_drivers/xocl] Error 2 make[2]: Leaving directory /usr/src/linux-headers-3.2.0-29-generic' make[1]: *** [all] Error 2 make[1]: Leaving directory/aws-fpga/sdk/linux_kernel_drivers/xocl' make: *** [all] Error 2 ERROR: Build of SDAccel runtime FAILED

It is the same output.

aye20 commented 6 years ago

Can you please confirm what OS you are running on, it appears you are using an older kernel. Please refer to https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_4/ug1238-sdx-rnil.pdf#page=25 for supported OSes for 2017.4.

kristopk commented 6 years ago

Please re-open if you are seeing issues on the supported Ubuntu release (Ubuntu Linux 16.04.2).