Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920517 - sys-kernel/*-kernel* fails to build with -flto
Summary: sys-kernel/*-kernel* fails to build with -flto
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-22 04:56 UTC by om3i
Modified: 2024-01-15 20:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log.gz,2.12 KB, application/gzip)
2023-12-22 04:57 UTC, om3i
Details
work/modprep/.config (config.gz,21.10 KB, application/gzip)
2023-12-24 19:48 UTC, om3i
Details
build.log 6.6.9 (build.log,20.67 KB, application/octet-stream)
2024-01-02 07:24 UTC, om3i
Details
emerge --info (emerge_info.txt,3.98 KB, text/plain)
2024-01-02 07:24 UTC, om3i
Details

Note You need to log in before you can comment on or make changes to this bug.
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.