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

Bug 854051

Summary: app-accessibility/speech-tools-2.5.0 fails to compile (lto): esps_utils.cc:985:28: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Accessibility Team <accessibility>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph, sound
Priority: Normal Keywords: PATCH
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-06-24 09:31:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-accessibility/speech-tools-2.5.0 fails to compile (lto).
Discovered on: amd64 (internal ref: 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-06-24 09:31:04 UTC
Created attachment 787319 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-24 09:35:14 UTC
(In reply to Agostino Sarubbo from comment #0)
> Discovered on: amd64 (internal ref: tinderbox)

internal ref is: lto_tinderbox
Comment 5 Larry the Git Cow gentoo-dev 2022-06-24 23:54:32 UTC
The bug has been closed via the following commit(s):

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

commit aa9db8863d577f8e34d67a19dd57c8596c9a5b80
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-24 23:40:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-24 23:40:26 +0000

    app-accessibility/speech-tools: fix build w/ newer ncurses; fix strict-aliasing
    
    Closes: https://bugs.gentoo.org/837800
    Closes: https://bugs.gentoo.org/854051
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/speech-tools-2.5.0-drop-curses.patch     |  43 ++++++
 .../files/speech-tools-2.5.0-warnings.patch        |  35 +++++
 .../speech-tools/speech-tools-2.5.0-r1.ebuild      | 150 +++++++++++++++++++++
 3 files changed, 228 insertions(+)