Created attachment 928971 [details] emerge --info sys-devel/gcc dev-lang/rust-bin dev-build/make While building/updating the kernel from my current configuration, as done before for a while, building kernel (see compilation log just below) fails: `error: implicit declaration of function ‘get_kernel_nofault’ [-Wimplicit-function-declaration]` ``` # make -j1 bzImage CALL scripts/checksyscalls.sh DESCEND objtool INSTALL libsubcmd_headers CC init/main.o UPD init/utsversion-tmp.h CC init/version.o CC init/do_mounts.o CC init/do_mounts_rd.o CC init/do_mounts_initrd.o CC init/initramfs.o CC init/calibrate.o CC init/init_task.o AR init/built-in.a HOSTCC usr/gen_init_cpio GEN usr/initramfs_data.cpio COPY usr/initramfs_inc_data AS usr/initramfs_data.o AR usr/built-in.a CC arch/x86/coco/core.o CC arch/x86/coco/sev/core.o AR arch/x86/coco/sev/built-in.a AR arch/x86/coco/built-in.a AS arch/x86/entry/entry.o In file included from ./arch/x86/include/asm/asm-prototypes.h:2, from <stdin>:3: ./arch/x86/include/asm/ftrace.h: In function ‘arch_ftrace_get_symaddr’: ./arch/x86/include/asm/ftrace.h:46:21: error: implicit declaration of function ‘get_kernel_nofault’ [-Wimplicit-function-declaration] 46 | if (get_kernel_nofault(instr, (u32 *)(fentry_ip - ENDBR_INSN_SIZE))) | ^~~~~~~~~~~~~~~~~~ make[4]: *** [scripts/Makefile.build:339: arch/x86/entry/entry.o] Error 1 make[4]: *** Deleting file 'arch/x86/entry/entry.o' make[3]: *** [scripts/Makefile.build:465: arch/x86/entry] Error 2 make[2]: *** [scripts/Makefile.build:465: arch/x86] Error 2 make[1]: *** [/usr/src/linux-6.14.6-gentoo/Makefile:1997: .] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ``` See attachment for emerge --info and packages versions Steps to reproduce: - emerge sys-kernel/gentoo-sources:6.14.6 and its dependencies as sys-kernel/linux-headers:6.14 - update /usr/src/linux symlink through `eselect kernel set linux-6.14.6-gentoo` - apply .config file from previous kernel or updated configuration (for me, it’s `zcat /path/to/previous.config.gz > .config`) - run `make modules_prepare`, follow updating process instructions if necessary (and save this configuration to avoid losing time reproducing this step in case you need to restart) - launch compilation: make -j1 bzImage (jobs at 1 so it can leave as soon as possible while keeping errors outputs in orders)
(In reply to Thibaud CANALE from comment #0) > - apply .config file from previous kernel or updated configuration (for me, > it’s `zcat /path/to/previous.config.gz > .config`) It's unlikely it's generic to any config. Please share yours?
Created attachment 928982 [details] config linux-6.14.6 with linux-hardened options (In reply to Sam James from comment #1) > (In reply to Thibaud CANALE from comment #0) > > - apply .config file from previous kernel or updated configuration (for me, > > it’s `zcat /path/to/previous.config.gz > .config`) > > It's unlikely it's generic to any config. Please share yours? See attachment, here my config saved after updated from `make modules_prepare`, from current kernel 6.13.11. It has options from linux-hardened patches (stored under /etc/portage/patches), link for the target release: https://github.com/anthraxx/linux-hardened/releases/tag/v6.14.6-hardened1 But I also tried without those patches, plain sys-kernel/gentoo-sources-6.14.6, did run another `make modules_prepare` before building bzImage, same issue.