Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854507 - app-emulation/86Box-3.5 fails to compile (lto): codegen_ops_fpu.h:627:32: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: app-emulation/86Box-3.5 fails to compile (lto): codegen_ops_fpu.h:627:32: err...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
Depends on:
Blocks: lto
  Show dependency tree
Reported: 2022-06-27 06:13 UTC by Agostino Sarubbo
Modified: 2022-07-16 20:42 UTC (History)
0 users

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

build.log (build.log,246.85 KB, text/plain)
2022-06-27 06:13 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-27 06:13:51 UTC

Issue: app-emulation/86Box-3.5 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_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-27 06:13:53 UTC
Created attachment 787862 [details]

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

-- Could NOT find ECM (missing: ECM_DIR)
FAILED: src/codegen/CMakeFiles/dynarec.dir/codegen_ops.c.o 
/var/tmp/portage/app-emulation/86Box-3.5/work/86Box-3.5/src/codegen/codegen_ops_fpu.h:627:32: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Comment 3 Larry the Git Cow gentoo-dev 2022-07-16 20:41:08 UTC
The bug has been closed via the following commit(s):

commit a3c20be17f9819a3a50a73627224eaa6aca694b1
Author:     Conrad Kostecki <>
AuthorDate: 2022-07-16 19:52:48 +0000
Commit:     Conrad Kostecki <>
CommitDate: 2022-07-16 20:40:51 +0000

    app-emulation/86Box: filter lto
    Signed-off-by: Conrad Kostecki <>

 app-emulation/86Box/86Box-3.6.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-16 20:42:12 UTC
FWIW this one needs -fno-strict-aliasing appended too.