Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866422 - sys-devel/binutils: strip command does not support lto archives
Summary: sys-devel/binutils: strip command does not support lto archives
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 866416 866419 866500 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-24 22:14 UTC by Kostadin Shishmanov
Modified: 2024-03-04 03:42 UTC (History)
0 users

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


Attachments
buildlog (sys-libs:binutils-libs-2.38-r2:20220824-221135.log,517.35 KB, text/x-log)
2022-08-24 22:14 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2022-08-24 22:14:19 UTC
Created attachment 800899 [details]
buildlog

sys-libs/binutils-libs-2.38-r2: finishes the strip stage with
x86_64-pc-linux-gnu-strip: /var/tmp/portage/sys-libs/binutils-libs-2.38-r2/image/usr/lib64/stIEIWxU/regex.o: plugin needed to handle lto object

can be solved by adding -ffat-lto-objects to the compiler flags
Comment 1 Mike Gilbert gentoo-dev 2022-08-25 17:16:48 UTC
*** Bug 866416 has been marked as a duplicate of this bug. ***
Comment 2 Mike Gilbert gentoo-dev 2022-08-25 17:16:52 UTC
*** Bug 866419 has been marked as a duplicate of this bug. ***
Comment 3 Mike Gilbert gentoo-dev 2022-08-25 17:16:57 UTC
*** Bug 866500 has been marked as a duplicate of this bug. ***
Comment 4 Arfrever Frehtes Taifersar Arahesis 2022-08-25 20:10:16 UTC
"plugin needed to handle lto object" message should now be completely harmless.

Workaround (calling ranlib on archive) was added to Portage over 3 years ago for bug #603594:
https://gitweb.gentoo.org/proj/portage.git/commit/?id=2404ddca9d5db7992bf6853cbde8ca944224560c

See also:
https://sourceware.org/bugzilla/show_bug.cgi?id=21479
https://github.com/InBetweenNames/gentooLTO/issues/49
Comment 5 Kostadin Shishmanov 2022-08-26 09:53:44 UTC
I suppose we can close this then?
Comment 6 Mike Gilbert gentoo-dev 2022-08-26 15:58:37 UTC
Let's keep this open in case someone runs into it again.
Comment 7 zurabid2016 2023-07-07 11:04:13 UTC
Hey, just wanted to open a new bug for this issue. It occurs to any package built with LTO with USE="static-libs". Are you sure it's harmless?
Comment 8 Kostadin Shishmanov 2023-07-07 11:11:31 UTC
(In reply to zurabid2016 from comment #7)
> Hey, just wanted to open a new bug for this issue. It occurs to any package
> built with LTO with USE="static-libs". Are you sure it's harmless?

I've had kde-frameworks/kwayland fail to build with -fno-lto if dev-qt/qtgui:5 wasn't built with -ffat-lto-objects, but that's only happened when using the mold linker.