Hello all,


I am trying to connect my PC (intel core i7, 500gb HDD Ubuntu 18.04) with the 
X310 via PCIe. I have successfully installed UHD version 3.14 and am using gcc 
7.3 and I made sure my kernel was 64 bit (I ran uname -m and it returned 
x86_64).

For some reason I can't get nikal to build and this is the error I get (there 
is more but this is a snippet):



 <11>Aug  8 08:53:49 nikal: ./arch/x86/include/asm/current.h:18:17: warning: 
passing argument 2 of 'get_user_pages' makes integer from pointer without a 
cast [-Wint-conversion]
<11>Aug  8 08:53:49 nikal:  #define current get_current()
<11>Aug  8 08:53:49 nikal:                  ^
<11>Aug  8 08:53:49 nikal: 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:7021:37: note: in expansion of 
macro 'current'
<11>Aug  8 08:53:49 nikal:     pinned = get_user_pages(current, current->mm,
<11>Aug  8 08:53:49 nikal:                                      ^~~~~~~
<11>Aug  8 08:53:49 nikal: In file included from 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:61:0:
<11>Aug  8 08:53:49 nikal: ./include/linux/mm.h:1398:6: note: expected 'long 
unsigned int' but argument is of type 'struct mm_struct *'
<11>Aug  8 08:53:49 nikal:  long get_user_pages(unsigned long start, unsigned 
long nr_pages,
<11>Aug  8 08:53:49 nikal:       ^~~~~~~~~~~~~~
<11>Aug  8 08:53:49 nikal: 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:7023:28: warning: passing 
argument 4 of 'get_user_pages' makes pointer from integer without a cast 
[-Wint-conversion]
<11>Aug  8 08:53:49 nikal:                             size,
<11>Aug  8 08:53:49 nikal:                             ^~~~
<11>Aug  8 08:53:49 nikal: In file included from 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:61:0:
<11>Aug  8 08:53:49 nikal: ./include/linux/mm.h:1398:6: note: expected 'struct 
page **' but argument is of type 'size_t {aka long unsigned int}'
<11>Aug  8 08:53:49 nikal:  long get_user_pages(unsigned long start, unsigned 
long nr_pages,
<11>Aug  8 08:53:49 nikal:       ^~~~~~~~~~~~~~
<11>Aug  8 08:53:49 nikal: 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:7024:28: warning: passing 
argument 5 of 'get_user_pages' makes pointer from integer without a cast 
[-Wint-conversion]
<11>Aug  8 08:53:49 nikal:                             flags & 
nNIKAL220_kPageListAccessModeWrite,
<11>Aug  8 08:53:49 nikal:                             ^~~~~
<11>Aug  8 08:53:49 nikal: In file included from 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:61:0:
<11>Aug  8 08:53:49 nikal: ./include/linux/mm.h:1398:6: note: expected 'struct 
vm_area_struct **' but argument is of type 'long unsigned int'
<11>Aug  8 08:53:49 nikal:  long get_user_pages(unsigned long start, unsigned 
long nr_pages,
<11>Aug  8 08:53:49 nikal:       ^~~~~~~~~~~~~~
<11>Aug  8 08:53:49 nikal: 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:7021:13: error: too many 
arguments to function 'get_user_pages'
<11>Aug  8 08:53:49 nikal:     pinned = get_user_pages(current, current->mm,
<11>Aug  8 08:53:49 nikal:              ^~~~~~~~~~~~~~
<11>Aug  8 08:53:49 nikal: In file included from 
/var/lib/nikal/4.15.0-30-generic/nikal/nikal.c:61:0:
<11>Aug  8 08:53:49 nikal: ./include/linux/mm.h:1398:6: note: declared here
<11>Aug  8 08:53:49 nikal:  long get_user_pages(unsigned long start, unsigned 
long nr_pages,
<11>Aug  8 08:53:49 nikal:       ^~~~~~~~~~~~~~
<11>Aug  8 08:53:49 nikal: cc1: some warnings being treated as errors
<11>Aug  8 08:53:49 nikal: scripts/Makefile.build:339: recipe for target 
'/var/lib/nikal/4.15.0-30-generic/nikal/nikal.o' failed
<11>Aug  8 08:53:49 nikal: make[2]: *** 
[/var/lib/nikal/4.15.0-30-generic/nikal/nikal.o] Error 1
<11>Aug  8 08:53:49 nikal: Makefile:1552: recipe for target 
'_module_/var/lib/nikal/4.15.0-30-generic/nikal' failed
<11>Aug  8 08:53:49 nikal: make[1]: *** 
[_module_/var/lib/nikal/4.15.0-30-generic/nikal] Error 2
<11>Aug  8 08:53:49 nikal: Makefile:32: recipe for target 'nikal.ko' failed
<11>Aug  8 08:53:49 nikal: make: *** [nikal.ko] Error 2
<11>Aug  8 08:53:49 nikal: ERROR:  failed to build nikal
<11>Aug  8 08:53:49 nikal: ERROR:  NI-KAL update failed.
<11>Aug  8 08:53:49 nikal: ERROR:  make of nikal kernel module failed, not 
installing kernel module.
<11>Aug  8 08:53:49 nikal: ERROR:  updateNIDrivers should be called again after 
fixing the problem.
<11>Aug  8 08:53:49 nikal: ERROR:  Logging failure...
<11>Aug  8 08:53:52 nikal: ERROR:  Include the file /tmp/niSystemReport.out.gz 
when contacting
<11>Aug  8 08:53:52 nikal: ERROR:  National Instruments for support.
<11>Aug  8 08:53:52 nikal: ERROR: Update of National Instruments drivers failed.



I found someone else who had this issue and it was resolved by upgrading gcc to 
4.9 or later and my gcc is already at 7.3 so I am not sure what else to do. Any 
insight would be appreciated. Thank you.



Sarah Tran
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to