Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854528 - app-emulation/pcem-17-r1 fails to compile (lto): x87_ops_arith.h:180:14: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: app-emulation/pcem-17-r1 fails to compile (lto): x87_ops_arith.h:180:14: erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-06-27 06:14 UTC by Agostino Sarubbo
Modified: 2022-07-16 20:45 UTC (History)
0 users

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


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

Issue: app-emulation/pcem-17-r1 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-06-27 06:14:29 UTC
Created attachment 787886 [details]
build.log

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


./configure: line 5198: CXXFLAGS?=-O3 -fcommon: command not found
checking whether to enable debugging... ./configure: line 5197: CFLAGS?=-O3 -fcommon: command not found
x87_ops_arith.h:180:14: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-aliasing]]
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-27 06:24:45 UTC
Upstream now force no strict aliasing: https://github.com/sarah-walker-pcem/pcem/commit/85e1ef3ee4b5b1598957bfa95312f42a1eaef6e6
Comment 4 Larry the Git Cow gentoo-dev 2022-07-16 20:41:10 UTC
The bug has been closed via the following commit(s):

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

commit d1b92480a177be6170a1d850d9066bb12c28f06a
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-07-16 19:46:10 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-07-16 20:40:50 +0000

    app-emulation/pcem: filter LTO
    
    Closes: https://bugs.gentoo.org/854528
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 app-emulation/pcem/pcem-17-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-16 20:42:05 UTC
FWIW this one needs -fno-strict-aliasing appended too.
Comment 6 Conrad Kostecki gentoo-dev 2022-07-16 20:45:15 UTC
(In reply to Sam James from comment #5)
> FWIW this one needs -fno-strict-aliasing appended too.

Is this with filter-lto really needed?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-16 20:45:55 UTC
(In reply to Conrad Kostecki from comment #6)
> (In reply to Sam James from comment #5)
> > FWIW this one needs -fno-strict-aliasing appended too.
> 
> Is this with filter-lto really needed?

yes, because if it's not strict aliasing compliant, it'll break anyway (-O2 enables -fstrict-aliasing)