Forum Discussion
RE Ubuntu 18.04: I was hoping that it would be a simple fix to get that OS to support AOCL, but I guess not.
RE the compilation errors: I followed the support link but that addresses the issue with 'aocl diagnose'. I'm having a compile issue with the 'aocl install' command. I did run 'lspci -v | grep Altera' but found nothing. The kernel version is given in the compile output I posted above
Using kernel source files from /lib/modules/4.4.0-164-generic/build
Building driver for BSP with name a10_ref
make: Entering directory '/usr/src/linux-headers-4.4.0-164-generic'I looked in /usr/src/linux-headers-4.4.0-164-generic/include/linux/mm.h and, sure enough, the API does not match what I'm seeing in aclpci_cmd.c. The latter has an extra "1" argument where there should be a "struct page **". Here's a snippet from aclpci_cmd.c (after removing the preproc macros for clarity):
ret = get_user_pages(target_task, target_task->mm,
start_page + got * PAGE_SIZE,
num_pages - got, 1, 1,
p + got, vma);while mm.h declares:
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
unsigned long start,
unsigned long nr_pages, unsigned int gup_flags,
struct page **pages,
struct vm_area_struct **vmas);I think there is a typo in the aclpci_cmd.c. After removing the second "1", the install completes successfully. Now I run 'aocl list-devices' and get:
$ aocl list-devices
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/okramer/intelFPGA_pro/19.3/hld/board/a10_ref
--------------------------------------------------------------------I actually got to this point on Ubuntu 18.04 after fixing even more compile issues there.