Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855671 - dev-libs/OpenNI-1.5.7.10-r2 fails to compile (lto): XnNode.h:50:43: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: dev-libs/OpenNI-1.5.7.10-r2 fails to compile (lto): XnNode.h:50:43: error: de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-02 07:22 UTC by Agostino Sarubbo
Modified: 2022-07-17 15:39 UTC (History)
0 users

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


Attachments
build.log (build.log,60.50 KB, text/plain)
2022-07-02 07:22 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-02 07:22:06 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/OpenNI-1.5.7.10-r2 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 07:22:09 UTC
Created attachment 789437 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2022-07-17 15:39:39 UTC
The bug has been closed via the following commit(s):

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

commit fac3d0202ece002c52b02a95d0cf0476d1dc446f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-17 15:33:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-17 15:34:35 +0000

    dev-libs/OpenNI: force -fno-strict-aliasing
    
    Closes: https://bugs.gentoo.org/855671
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{OpenNI-1.5.7.10-r2.ebuild => OpenNI-1.5.7.10-r3.ebuild}  |  9 ++++++---
 dev-libs/OpenNI/OpenNI-9999.ebuild                            | 11 +++++++----
 2 files changed, 13 insertions(+), 7 deletions(-)