Re: [lustre-discuss] build help with 5.15 kernel
Hello Michael Lustre 2.12.8 does not support Linux 5.15 More recent Lustre versions support up to Linux 5.11 but not further. See these tickets for 5.12 and 5.14 support. https://jira.whamcloud.com/browse/LU-14651 https://jira.whamcloud.com/browse/LU-15220 It is possible to manually backport patches to support some 5.x kernels with 2.12 but this is not trivial. I don't know what is your current project but it will be much easier for you if you can target an older Linux kernel and focus on kernel used by major distro. Ubuntu 20.04 is using 5.11 by example. Aurélien Le 31/12/2021 01:34, « lustre-discuss au nom de Hebenstreit, Michael via lustre-discuss » a écrit : CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. Some additional info. I extracted the make command and ran it against the 2 kernel versions. Old kernel works, new kernel fails $ make _module_/tmp/lustre-2.12.5/build LUSTRE_KERNEL_TEST=conftest.i LDFLAGS=' LD=/usr/bin/ld -m elf_x86_64' CC=gcc -f /tmp/lustre-2.12.5/build/Makefile LUSTRE_LINUX_CONFIG=/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//.config LINUXINCLUDE='-I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//arch/x86/include -Iinclude -Iarch/x86/include/generated -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include -Iinclude2 -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include/uapi -Iinclude/generated -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include/uapi -Iinclude/generated/uapi -include /admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include/linux/kconfig.h' -o tmp_include_depends -o scripts -o include/config/MARKER -C /admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib/ EXTRA_CFLAGS='-Werror-implicit-function-declaration -g -I/tmp/lustre-2.12.5/libcfs/include -I/tmp/lustre-2.12.5/lnet/include -I/tmp/lustre-2.12.5/lustre/include/uapi -I/tmp/lustre-2.12.5/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow' M=/tmp/lustre-2.12.5/build make: Entering directory '/global/panfs01/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib' CC [M] /tmp/lustre-2.12.5/build/conftest.o CPP [M] /tmp/lustre-2.12.5/build/conftest.i make: Leaving directory '/global/panfs01/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib' $ touch /tmp/lustre-2.12.5/build/conftest.c $ make _module_/tmp/lustre-2.12.5/build LUSTRE_KERNEL_TEST=conftest.i LDFLAGS=' LD=/usr/bin/ld -m elf_x86_64' CC=gcc -f /tmp/lustre-2.12.5/build/Makefile LUSTRE_LINUX_CONFIG=/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/.config LINUXINCLUDE='-I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/arch/x86/include -Iinclude -Iarch/x86/include/generated -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include -Iinclude2 -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include/uapi -Iinclude/generated -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include/uapi -Iinclude/generated/uapi -include /global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include/linux/kconfig.h' -o tmp_include_depends -o scripts -o include/config/MARKER -C /global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64 EXTRA_CFLAGS='-Werror-implicit-function-declaration -g -I/tmp/lustre-2.12.5/libcfs/include -I/tmp/lustre-2.12.5/lnet/include -I/tmp/lustre-2.12.5/lustre/include/uapi -I/tmp/lustre-2.12.5/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow' M=/tmp/lustre-2.12.5/build make: Entering directory '/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64' make: *** No rule to make target '_module_/tmp/lustre-2.12.5/build'. Stop. make: Leaving directory '/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64' -Original Message- From: lustre-discuss On Behalf Of Hebenstreit, Michael via lustre-discuss Sent: Thursday, December 30, 2021 5:07 PM To: lustre-discuss@lists.lustre.org Subject: [lustre-discuss] build help with 5.15 kernel Hello I'm trying to build the Lustre 2.12.8 client on a 5.15 kernel and already failing in the configure step. Looks to me like something in the build process has changed. The failure occurs in configure line 14390. From the log: configure:14390: cp conftest.c build && make -d _module_/tmp/lustre-2.12.8/build LUSTRE_KERNEL_TEST=conftest.i LDFLAGS= LD=/usr/bin/ld -m elf_x86_64 CC=gcc -f make: *** No rule to make target '_module_/tmp/lustre-2.12.8/build'. Stop. configure:14393: $? = 2 For some reasons the construct "make -d _module_/${PWD} .." does no
Re: [lustre-discuss] build help with 5.15 kernel
Thanks for the pointers. -Original Message- From: Degremont, Aurelien Sent: Monday, January 3, 2022 3:35 AM To: Hebenstreit, Michael ; lustre-discuss@lists.lustre.org Subject: Re: [lustre-discuss] build help with 5.15 kernel Hello Michael Lustre 2.12.8 does not support Linux 5.15 More recent Lustre versions support up to Linux 5.11 but not further. See these tickets for 5.12 and 5.14 support. https://jira.whamcloud.com/browse/LU-14651 https://jira.whamcloud.com/browse/LU-15220 It is possible to manually backport patches to support some 5.x kernels with 2.12 but this is not trivial. I don't know what is your current project but it will be much easier for you if you can target an older Linux kernel and focus on kernel used by major distro. Ubuntu 20.04 is using 5.11 by example. Aurélien Le 31/12/2021 01:34, « lustre-discuss au nom de Hebenstreit, Michael via lustre-discuss » a écrit : CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. Some additional info. I extracted the make command and ran it against the 2 kernel versions. Old kernel works, new kernel fails $ make _module_/tmp/lustre-2.12.5/build LUSTRE_KERNEL_TEST=conftest.i LDFLAGS=' LD=/usr/bin/ld -m elf_x86_64' CC=gcc -f /tmp/lustre-2.12.5/build/Makefile LUSTRE_LINUX_CONFIG=/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//.config LINUXINCLUDE='-I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//arch/x86/include -Iinclude -Iarch/x86/include/generated -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include -Iinclude2 -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include/uapi -Iinclude/generated -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include/uapi -Iinclude/generated/uapi -include /admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib//include/linux/kconfig.h' -o tmp_include_depends -o scripts -o include/config/MARKER -C /admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib/ EXTRA_CFLAGS='-Werror-implicit-function-declaration -g -I/tmp/lustre-2.12.5/libcfs/include -I/tmp/lustre-2.12.5/lnet/include -I/tmp/lustre-2.12.5/lustre/include/uapi -I/tmp/lustre-2.12.5/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow' M=/tmp/lustre-2.12.5/build make: Entering directory '/global/panfs01/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib' CC [M] /tmp/lustre-2.12.5/build/conftest.o CPP [M] /tmp/lustre-2.12.5/build/conftest.i make: Leaving directory '/global/panfs01/admin/src/4.18.0-240.22.1.el8_3.crt6.x86_64.withib' $ touch /tmp/lustre-2.12.5/build/conftest.c $ make _module_/tmp/lustre-2.12.5/build LUSTRE_KERNEL_TEST=conftest.i LDFLAGS=' LD=/usr/bin/ld -m elf_x86_64' CC=gcc -f /tmp/lustre-2.12.5/build/Makefile LUSTRE_LINUX_CONFIG=/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/.config LINUXINCLUDE='-I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/arch/x86/include -Iinclude -Iarch/x86/include/generated -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include -Iinclude2 -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include/uapi -Iinclude/generated -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include/uapi -Iinclude/generated/uapi -include /global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64/include/linux/kconfig.h' -o tmp_include_depends -o scripts -o include/config/MARKER -C /global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64 EXTRA_CFLAGS='-Werror-implicit-function-declaration -g -I/tmp/lustre-2.12.5/libcfs/include -I/tmp/lustre-2.12.5/lnet/include -I/tmp/lustre-2.12.5/lustre/include/uapi -I/tmp/lustre-2.12.5/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow' M=/tmp/lustre-2.12.5/build make: Entering directory '/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64' make: *** No rule to make target '_module_/tmp/lustre-2.12.5/build'. Stop. make: Leaving directory '/global/panfs01/admin/src/5.15.0-spr.bkc.pc.1.21.0.x86_64' -Original Message- From: lustre-discuss On Behalf Of Hebenstreit, Michael via lustre-discuss Sent: Thursday, December 30, 2021 5:07 PM To: lustre-discuss@lists.lustre.org Subject: [lustre-discuss] build help with 5.15 kernel Hello I'm trying to build the Lustre 2.12.8 client on a 5.15 kernel and already failing in the configure step. Looks to me like something in the build process has changed. The failure occurs in configure line 14390. From the log: configure:14390: cp conftest.c build && make -d _module_/tmp/lustre-2.12.8/build LUSTRE_KERNEL_TEST=co