Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855698 - dev-libs/libaio-0.3.113 fails to compile (lto): Error: invalid attempt to declare external version name as default in symbol io_queue_wait@@LIBAIO_0.4
Summary: dev-libs/libaio-0.3.113 fails to compile (lto): Error: invalid attempt to dec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://pagure.io/libaio/issue/10
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-02 09:35 UTC by Agostino Sarubbo
Modified: 2022-08-24 07:04 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,46.03 KB, text/plain)
2022-07-02 09:35 UTC, Agostino Sarubbo
Details
Preposed ebuild (libaio-0.3.113-r1.ebuild,2.26 KB, text/plain)
2022-08-23 19:53 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-02 09:35:09 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-02 09:35:12 UTC
Created attachment 789449 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-02 09:35:14 UTC
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
Comment 3 immolo 2022-08-23 19:53:33 UTC
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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-24 06:54:05 UTC
(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.
Comment 5 Larry the Git Cow gentoo-dev 2022-08-24 07:04:03 UTC
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(-)