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

Bug 858503

Summary: dev-util/uftrace-0.15.2 fails to compile (lto): plthook.c:92:1: error: function uftrace___cyg_profile_func_exit redeclared as variable
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Guilherme Amadio <amadio>
Status: RESOLVED FIXED    
Severity: normal CC: neddyseagoon
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/namhyung/uftrace/issues/1343
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-07-17 07:59:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/uftrace-0.11 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-17 07:59:04 UTC
Created attachment 791843 [details]
build.log

build log and emerge --info
Comment 2 Guilherme Amadio gentoo-dev 2022-09-16 10:03:40 UTC
This bug exists upstream already: https://github.com/namhyung/uftrace/issues/1343, but the latest version (0.12) is still affected by this bug. When a patch becomes available I will apply in Gentoo. For now, please disable lto as a workaround.
Comment 3 Agostino Sarubbo gentoo-dev 2022-09-26 08:48:50 UTC
lto_tinderbox has reproduced this issue with version 0.12 - Updating summary.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-26 22:09:05 UTC
*** Bug 897694 has been marked as a duplicate of this bug. ***
Comment 5 Agostino Sarubbo gentoo-dev 2024-03-01 19:24:03 UTC
lto_tinderbox has reproduced this issue with version 0.15.2 - Updating summary.
Comment 6 Larry the Git Cow gentoo-dev 2024-03-05 06:54:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e262261bcff223146ce1e6c39966d89617d82d9e

commit e262261bcff223146ce1e6c39966d89617d82d9e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-05 06:54:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-05 06:54:04 +0000

    dev-util/uftrace: filter LTO
    
    There's an upstream bug not yet fixed. Filter LTO until it's fixed to avoid
    tinderbox failures.
    
    Closes: https://bugs.gentoo.org/858503
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/uftrace/uftrace-0.14.ebuild   | 5 ++++-
 dev-util/uftrace/uftrace-0.15.2.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)