Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858506 - dev-util/unicorn-2.0.0 fails to compile (lto): cpu.h:1264:6: error: type of store_booke_tsr does not match original declaration [-Werror=lto-type-mismatch]
Summary: dev-util/unicorn-2.0.0 fails to compile (lto): cpu.h:1264:6: error: type of s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: mario.haustein
URL:
Whiteboard:
Keywords: PullRequest
: 872998 (view as bug list)
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-17 07:59 UTC by Agostino Sarubbo
Modified: 2022-10-01 06:30 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,812.79 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:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/unicorn-2.0.0 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:09 UTC
Created attachment 791846 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-17 07:59:11 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: libunicorn.so.2 
/var/tmp/portage/dev-util/unicorn-2.0.0/work/unicorn-2.0.0/qemu/target/ppc/cpu.h:1264:6: error: type of ‘store_booke_tsr’ does not match original declaration [-Werror=lto-type-mismatch]
Comment 3 mario.haustein 2022-07-21 21:02:05 UTC
No idea how to fix it. Reported upstream: https://github.com/unicorn-engine/unicorn/issues/1662 Hopefully they can fix it.
Comment 4 mario.haustein 2022-07-24 06:36:05 UTC
Fixed upstream. Expected to be included in the next release.
Comment 5 Larry the Git Cow gentoo-dev 2022-10-01 03:16:43 UTC
The bug has been closed via the following commit(s):

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

commit 57caf57304f4f4568c86886b0498b6707ea747f1
Author:     Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
AuthorDate: 2022-09-26 21:57:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-01 03:15:34 +0000

    dev-util/unicorn: fix lto type mismatch
    
    Closes: https://bugs.gentoo.org/858506
    Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
    Closes: https://github.com/gentoo/gentoo/pull/27484
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/unicorn/files/unicorn-2.0.0-lto.patch | 62 ++++++++++++++++++++++++++
 dev-util/unicorn/unicorn-2.0.0.ebuild          |  4 ++
 2 files changed, 66 insertions(+)
Comment 6 mario.haustein 2022-10-01 06:30:22 UTC
*** Bug 872998 has been marked as a duplicate of this bug. ***