[Mckernel-users 44] IHK/McKernel Install Compilation Errors

Will Merges (RIT Student) wdm7973 at rit.edu
Tue Dec 6 06:13:07 JST 2022


Hello,

I have been trying to install IHK/McKernel on a machine and experienced
some compile errors during the installation process, I have been following
the guide here <https://ihkmckernel.readthedocs.io/en/latest/quick.html>. I
attached the errors I received, the machine has an Intel Xeon(R) and is
running Centos 8 stream with Linux kernel 4.15.0-196-generic and gcc
version 8.5.0. Any help would be appreciated!


Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pccluster.org/pipermail/mckernel-users/attachments/20221205/99f295fb/attachment.htm>
-------------- next part --------------
ctags: Warning: cannot open source file "/users/wdm7973/src/ihk+mckernel/mckernel/src" : No such file or directory
ctags: Warning: cannot open source file "/users/wdm7973/src/ihk+mckernel/mckernel/include" : No such file or directory
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/binfmt_mcexec.c: In function ‘load_elf’:
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/binfmt_mcexec.c:263:7: error: implicit declaration of function ‘prepare_binprm’; did you mean ‘prepare_creds’? [-Werror=implicit-function-declaration]
  rc = prepare_binprm(bprm);
       ^~~~~~~~~~~~~~
       prepare_creds
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c:27:14: error: conflicting types for ‘__vvar_page’
 static void *__vvar_page;
              ^~~~~~~~~~~
In file included from ./arch/x86/include/asm/vdso/gettimeofday.h:17,
                 from ./include/vdso/datapage.h:137,
                 from ./arch/x86/include/asm/vgtod.h:12,
                 from /users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c:6:
./arch/x86/include/asm/vvar.h:32:13: note: previous declaration of ‘__vvar_page’ was here
 extern char __vvar_page;
             ^~~~~~~~~~~
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c: In function ‘get_vdso_info’:
./arch/x86/include/asm/vvar.h:40:21: error: ‘vvar_vsyscall_gtod_data’ undeclared (first use in this function); did you mean ‘vvar__vdso_data’?
 #define VVAR(name) (vvar_ ## name)
                     ^~~~~
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c:10:16: note: in expansion of macro ‘VVAR’
 #define gtod (&VVAR(vsyscall_gtod_data))
                ^~~~
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c:213:29: note: in expansion of macro ‘gtod’
  vdso->vgtod_virt = (void *)gtod;
                             ^~~~
./arch/x86/include/asm/vvar.h:40:21: note: each undeclared identifier is reported only once for each function it appears in
 #define VVAR(name) (vvar_ ## name)
                     ^~~~~
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c:10:16: note: in expansion of macro ‘VVAR’
 #define gtod (&VVAR(vsyscall_gtod_data))
                ^~~~
/users/wdm7973/src/ihk+mckernel/mckernel/executer/kernel/mcctrl/arch/x86_64/archdeps.c:213:29: note: in expansion of macro ‘gtod’
  vdso->vgtod_virt = (void *)gtod;
                             ^~~~
make[4]: *** [scripts/Makefile.build:315: /users/wdm7973/src/ihk+mckernel/build/executer/kernel/mcctrl/arch/x86_64/archdeps.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/users/wdm7973/src/ihk+mckernel/mckernel/ihk/linux/driver/smp/arch/x86_64/smp-arch-driver.c: In function ‘smp_wakeup_secondary_cpu’:
/users/wdm7973/src/ihk+mckernel/mckernel/ihk/linux/driver/smp/arch/x86_64/smp-arch-driver.c:325:31: error: ‘UV_NON_UNIQUE_APIC’ undeclared (first use in this function); did you mean ‘RH_KABI_UNIQUE_ID’?
  if (_get_uv_system_type() != UV_NON_UNIQUE_APIC) {
                               ^~~~~~~~~~~~~~~~~~
                               RH_KABI_UNIQUE_ID
/users/wdm7973/src/ihk+mckernel/mckernel/ihk/linux/driver/smp/arch/x86_64/smp-arch-driver.c:325:31: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:315: /users/wdm7973/src/ihk+mckernel/build/ihk/linux/driver/smp/arch/x86_64/smp-arch-driver.o] Error 1
make[3]: *** [Makefile:1578: _module_/users/wdm7973/src/ihk+mckernel/build/ihk/linux/driver/smp] Error 2
make[2]: *** [ihk/linux/driver/smp/CMakeFiles/ihk-smp-x86_64_ko.dir/build.make:76: ihk/linux/driver/smp/ihk-smp-x86_64.ko] Error 2
make[1]: *** [CMakeFiles/Makefile2:688: ihk/linux/driver/smp/CMakeFiles/ihk-smp-x86_64_ko.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:315: /users/wdm7973/src/ihk+mckernel/build/executer/kernel/mcctrl/binfmt_mcexec.o] Error 1
make[3]: *** [Makefile:1578: _module_/users/wdm7973/src/ihk+mckernel/build/executer/kernel/mcctrl] Error 2
make[2]: *** [executer/kernel/mcctrl/CMakeFiles/mcctrl_ko.dir/build.make:76: executer/kernel/mcctrl/mcctrl.ko] Error 2
make[1]: *** [CMakeFiles/Makefile2:714: executer/kernel/mcctrl/CMakeFiles/mcctrl_ko.dir/all] Error 2
make: *** [Makefile:156: all] Error 2


More information about the Mckernel-users mailing list