Bug 1808821

Summary: use of -fstrict-aliasing breaks lzo
Product: [Fedora] Fedora Reporter: Julian Sikorski <belegdol>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: aoliva, avi.kivity, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-01 15:01:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Julian Sikorski 2020-03-01 12:32:00 UTC
Description of problem:
lzo tests fail when lzo-2.10-1.fc32 is compiled with make check tests line re-enabled

Version-Release number of selected component (if applicable):
10.0.1-0.8.fc32

How reproducible:
always

Steps to Reproduce:
1. fedpkg clone lzo
2. cd lzo
3. remove the # in row 37 of lzo.spec
4. make mockbuild

Actual results:
failure at %check stage

Expected results:
build completes successfully

Additional info:
I have narrowed the problem down to -fstrict-aliasing and attached a workaround to https://bugzilla.redhat.com/show_bug.cgi?id=1807737

Comment 1 Jeff Law 2020-03-01 15:01:13 UTC
That's because the LZO code is broken, in particular lzo_config_check's violates the ISO C aliasing rules.  This affects not just LZO, but also packages that embed LZO such as syslinux.