#1151449 openafs-modules-dkms: module fails to build for Linux 7.3: configure: error: cannot find way to set linux kbuild cflags

#1151449#5
Date:
2026-10-20 18:55:20 UTC
From:
To:
Hi,

openafs-modules-dkms fails to build a module for Linux 7.3 in
experimental:

DKMS (dkms-3.2.2) make.log for openafs/1.8.17pre1 for kernel 7.3-amd64 (x86_64)
Sun Oct 18 18:40:48 UTC 2026

Building module(s)
# command: (./configure --disable-linux-syscall-probing --with-linux-kernel-packaging --with-linux-kernel-headers=/lib/modules/7.3-amd64/build && make && mv src/libafs/MODLOAD-*/openafs.ko .)
checking for gcc... x86_64-linux-gnu-gcc-16
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-linux-gnu-gcc-16 accepts -g... yes
checking for x86_64-linux-gnu-gcc-16 option to enable C23 features... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-linux-gnu-gcc-16... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from x86_64-linux-gnu-gcc-16 object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for x86_64-linux-gnu-gcc-16 options to detect undeclared functions... none needed
checking for x86_64-linux-gnu-gcc-16 options to ignore future-version functions... none needed
checking how to run the C preprocessor... x86_64-linux-gnu-gcc-16 -E
checking for egrep -e... (cached) /usr/bin/grep -E
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxslt... no
checking for saxon... no
checking for xalan-j... no
checking for xsltproc... no
checking for fop... no
checking for dblatex... no
checking for docbook2pdf... no
configure: WARNING: Docbook stylesheets not found; some documentation can't be built
checking for kindlegen... no
checking for doxygen... no
checking for dot... no
checking for library containing strerror... none required
checking for pid_t... yes
checking for size_t... yes
checking whether ln -s works... yes
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking if lex is flex... yes
checking whether byte order is known at compile time... yes
checking whether byte ordering is bigendian... no
checking whether printf understands the %z length modifier... yes
checking your OS... linux
checking your AFS sysname... amd64_linux26
checking for as... as
checking for mv... mv -f
checking for rm... rm -f
checking for ld... /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64
checking for cp... cp -f
checking for gencat... gencat
checking which variant of shared library versioning to provide... (default) aix
checking for objdir... .libs
checking if x86_64-linux-gnu-gcc-16 supports -fno-rtti -fno-exceptions... no
checking for x86_64-linux-gnu-gcc-16 option to produce PIC... -fPIC -DPIC
checking if x86_64-linux-gnu-gcc-16 PIC flag -fPIC -DPIC works... yes
checking if x86_64-linux-gnu-gcc-16 static flag -static works... yes
checking if x86_64-linux-gnu-gcc-16 supports -c -o file.o... yes
checking if x86_64-linux-gnu-gcc-16 supports -c -o file.o... (cached) yes
checking whether the x86_64-linux-gnu-gcc-16 linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether C compiler accepts -Wno-cast-function-type... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -fno-strength-reduce... yes
checking whether C compiler accepts -fno-common... yes
checking whether C compiler accepts -pipe... yes
checking how to set cflags for linux kbuild... configure: error: cannot find way to set linux kbuild cflags

# exit code: 1
# elapsed time: 00:00:10
----------------------------------------------------------------

Andreas