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

Bug 855671

Summary: 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]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

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(-)