Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858461 - dev-util/poke-2.4 fails to compile (lto): pvm.jitter:371:1: error: global register variable follows a function definition
Summary: dev-util/poke-2.4 fails to compile (lto): pvm.jitter:371:1: error: global reg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Arsen Arsenović
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-16 18:23 UTC by Agostino Sarubbo
Modified: 2022-11-22 08:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,647.12 KB, text/plain)
2022-07-16 18:23 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-16 18:23:23 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/poke-2.3 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-16 18:23:26 UTC
Created attachment 791798 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-09-26 08:47:32 UTC
lto_tinderbox has reproduced this issue with version 2.4 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2022-11-22 08:11:29 UTC
The bug has been closed via the following commit(s):

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

commit d5b9075eac011e16538cc6689d470d875434d803
Author:     Arsen Arsenović <arsen@aarsen.me>
AuthorDate: 2022-11-21 10:05:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-22 08:08:34 +0000

    dev-util/poke: filter out LTO
    
    On LTO'd systems, it was not possible to build poke due to an
    autogenerated file producing code that lto-wrapper is unable to process.
    We can just disable LTO in this case, until upstream gains support for
    filtering out LTO flags for that single file.
    
    Closes: https://bugs.gentoo.org/858461
    Signed-off-by: Arsen Arsenović <arsen@aarsen.me>
    Closes: https://github.com/gentoo/gentoo/pull/28362
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/poke/poke-2.4.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)