Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854051 - app-accessibility/speech-tools-2.5.0 fails to compile (lto): error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: app-accessibility/speech-tools-2.5.0 fails to compile (lto):
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Accessibility Team
Keywords: PATCH
Depends on:
Blocks: lto
  Show dependency tree
Reported: 2022-06-24 09:31 UTC by Agostino Sarubbo
Modified: 2022-06-24 23:54 UTC (History)
2 users (show)

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

build.log (build.log,116.74 KB, text/plain)
2022-06-24 09:31 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-06-24 09:31:02 UTC

Issue: app-accessibility/speech-tools-2.5.0 fails to compile (lto).
Discovered on: amd64 (internal ref: tinderbox)

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

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

    app-accessibility/speech-tools: fix build w/ newer ncurses; fix strict-aliasing
    Signed-off-by: Sam James <>

 .../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(+)