huanzhang12 / mpss-modules

Intel Xeon Phi MPSS Modules for Linux 4.2.0
GNU General Public License v2.0
17 stars 7 forks source link

Compiling error on kernel 4.15.0-15 #2

Open nwalmethule opened 5 years ago

nwalmethule commented 5 years ago

I try to compile the mpss-modules on the Kernel 4.15. The make on gcc 5.2 give me that errors:

make CC=/usr/bin/gcc-5 MIC_CARD_ARCH=k1om

make -C /lib/modules/4.15.0-45-generic/build M=/home/lorenz/mpss-modules modules \ INSTALL_MOD_PATH= make[1]: ingresso nella directory "/usr/src/linux-headers-4.15.0-45-generic" CC [M] /home/lorenz/mpss-modules/dma/mic_dma_lib.o In file included from /home/lorenz/mpss-modules/include/mic/micscif.h:358:0, from /home/lorenz/mpss-modules/dma/mic_dma_lib.c:54: /home/lorenz/mpss-modules/include/mic/micscif_rma.h: In function ‘__scif_acquire_mm’: /home/lorenz/mpss-modules/include/mic/micscif_rma.h:898:10: error: implicit declaration of function ‘get_task_mm’ [-Werror=implicit-function-declaration] return get_task_mm(current); ^ /home/lorenz/mpss-modules/include/mic/micscif_rma.h:898:10: warning: return makes pointer from integer without a cast [-Wint-conversion] /home/lorenz/mpss-modules/include/mic/micscif_rma.h: In function ‘scif_release_mm’: /home/lorenz/mpss-modules/include/mic/micscif_rma.h:909:3: error: implicit declaration of function ‘mmput’ [-Werror=implicit-function-declaration] mmput(mm); ^ /home/lorenz/mpss-modules/include/mic/micscif_rma.h: In function ‘scif_check_inc_pinned_vm’: /home/lorenz/mpss-modules/include/mic/micscif_rma.h:945:16: error: implicit declaration of function ‘rlimit’ [-Werror=implicit-function-declaration] lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; ^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/home/lorenz/mpss-modules/dma/mic_dma_lib.o' failed make[2]: [/home/lorenz/mpss-modules/dma/mic_dma_lib.o] Error 1 Makefile:1551: recipe for target 'module/home/lorenz/mpss-modules' failed make[1]: [module/home/lorenz/mpss-modules] Error 2 make[1]: uscita dalla directory "/usr/src/linux-headers-4.15.0-45-generic" Makefile:72: recipe for target 'modules' failed make: *** [modules] Error 2

Any binaries missing?

Thank you for the work.

huanzhang12 commented 5 years ago

Try my new branch and see if it fixes the problem:

https://github.com/huanzhang12/mpss-modules/tree/fix-sched

nwalmethule commented 5 years ago

Command used:

make MIC_CARD_ARCH=k1om CC=gcc-5 Output:

make -C /lib/modules/4.15.0-45-generic/build M=/home/lorenz/mpss-modules modules \ INSTALL_MOD_PATH= make[1]: ingresso nella directory "/usr/src/linux-headers-4.15.0-45-generic" CC [M] /home/lorenz/mpss-modules/dma/mic_dma_lib.o In file included from /home/lorenz/mpss-modules/include/mic/micscif.h:358:0, from /home/lorenz/mpss-modules/dma/mic_dma_lib.c:54: /home/lorenz/mpss-modules/include/mic/micscif_rma.h: In function ‘__scif_acquire_mm’: /home/lorenz/mpss-modules/include/mic/micscif_rma.h:898:10: error: implicit declaration of function ‘get_task_mm’ [-Werror=implicit-function-declaration] return get_task_mm(current); ^ /home/lorenz/mpss-modules/include/mic/micscif_rma.h:898:10: warning: return makes pointer from integer without a cast [-Wint-conversion] /home/lorenz/mpss-modules/include/mic/micscif_rma.h: In function ‘scif_release_mm’: /home/lorenz/mpss-modules/include/mic/micscif_rma.h:909:3: error: implicit declaration of function ‘mmput’ [-Werror=implicit-function-declaration] mmput(mm); ^ /home/lorenz/mpss-modules/include/mic/micscif_rma.h: In function ‘scif_check_inc_pinned_vm’: /home/lorenz/mpss-modules/include/mic/micscif_rma.h:945:16: error: implicit declaration of function ‘rlimit’ [-Werror=implicit-function-declaration] lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; ^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/home/lorenz/mpss-modules/dma/mic_dma_lib.o' failed make[2]: [/home/lorenz/mpss-modules/dma/mic_dma_lib.o] Error 1 Makefile:1551: recipe for target 'module/home/lorenz/mpss-modules' failed make[1]: [module/home/lorenz/mpss-modules] Error 2 make[1]: uscita dalla directory "/usr/src/linux-headers-4.15.0-45-generic" Makefile:72: recipe for target 'modules' failed make: *** [modules] Error 2

Sorry. How can I help?