Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920517

Summary: sys-kernel/*-kernel* fails to build with -flto
Product: Gentoo Linux Reporter: om3i <r9ku1q>
Component: Current packagesAssignee: Distribution Kernel Project <dist-kernel>
Status: UNCONFIRMED ---    
Severity: normal CC: r9ku1q
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
work/modprep/.config
build.log 6.6.9
emerge --info

Description om3i 2023-12-22 04:56:25 UTC
The error is as follows:
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: /dev/shm/portage/sys-kernel/vanilla-kernel-6.6.8/temp/ccXEQarz.ltrans0.ltrans.o: in function `main':
/dev/shm/portage/sys-kernel/vanilla-kernel-6.6.8/work/linux-6.6.8/tools/objtool/objtool.c:149:(.text.startup+0x2b): undefined reference to `objtool_run'

Reproducible: Always
Comment 1 om3i 2023-12-22 04:57:02 UTC
Created attachment 880201 [details]
Build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-23 18:45:02 UTC
Could you upload /dev/shm/portage/sys-kernel/vanilla-kernel-6.6.8/work/modprep/.config?
Comment 3 om3i 2023-12-24 19:48:18 UTC
Created attachment 880287 [details]
work/modprep/.config

Sure
Comment 4 om3i 2023-12-26 09:12:44 UTC
That was fixed by --changed-deps (or one of the updates).
Comment 5 om3i 2024-01-02 07:24:13 UTC
Created attachment 881247 [details]
build.log 6.6.9

The problem reappeared with 6.6.9. It appears to be transient.
Comment 6 om3i 2024-01-02 07:24:48 UTC
Created attachment 881248 [details]
emerge --info
Comment 7 om3i 2024-01-15 20:30:01 UTC
The same issue exists with sys-kernel/gentoo-kernel-bin.