Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858503 - dev-util/uftrace-0.15.2 fails to compile (lto): plthook.c:92:1: error: function uftrace___cyg_profile_func_exit redeclared as variable
Summary: dev-util/uftrace-0.15.2 fails to compile (lto): plthook.c:92:1: error: functi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Guilherme Amadio
URL:
Whiteboard:
Keywords:
: 897694 (view as bug list)
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-17 07:59 UTC by Agostino Sarubbo
Modified: 2024-03-05 06:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,156.68 KB, text/plain)
2022-07-17 07:59 UTC, Agostino Sarubbo
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-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(-)