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 <[email protected]> On Behalf Of Hebenstreit, Michael via lustre-discuss Sent: Thursday, December 30, 2021 5:07 PM To: [email protected] 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 longer work (it works on same OS with 4.18 RH8.3 kernel). If I replace it with something like "make -d modules .." It works, modules are build, but the subsequent test for ${PWD}/conftest.i fails Any help appreciated Happy new year Michael ------------------------------------------------------------------------ Michael Hebenstreit Senior Cluster Architect Intel Corporation, MS: RR1-105/H14 TSACG 1600 Rio Rancho Blvd SE Tel.: +1 505-794-3144 Rio Rancho, NM 87124 UNITED STATES E-mail: [email protected] _______________________________________________ lustre-discuss mailing list [email protected] http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org _______________________________________________ lustre-discuss mailing list [email protected] http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
