https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/libaio-0.3.113 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 789449 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: {standard input}: Error: invalid attempt to declare external version name as default in symbol `io_queue_wait@@LIBAIO_0.4' lto-wrapper: fatal error: make returned 2 exit status
Created attachment 800669 [details] Preposed ebuild As upstream have stated they don't plan to fix this as they can't see any benefit to LTO for this library then I think the best option is to just filter the -flto flag until that stance changes.
(In reply to immolo from comment #3) > Created attachment 800669 [details] > Preposed ebuild > > As upstream have stated they don't plan to fix this as they can't see any > benefit to LTO for this library then I think the best option is to just > filter the -flto flag until that stance changes. We need to use the new 'filter-lto' from flag-o-matic. Thanks, I'll commit that variant.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b086d2e0d5a106019ba96977e9d10aa81dae629 commit 1b086d2e0d5a106019ba96977e9d10aa81dae629 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-08-24 06:53:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-24 07:03:19 +0000 dev-libs/libaio: filter LTO Upstream aren't interested in supporting it & build fails. Thanks-to: immolo <immoloism@gmail.com> Closes: https://bugs.gentoo.org/855698 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/libaio/libaio-0.3.113.ebuild | 3 +++ dev-libs/libaio/libaio-9999.ebuild | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-)
Upstream patch that never got merged: https://marc.info/?l=linux-aio&m=164999309520544