Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858719 - games-engines/love-11.4 fails to compile with -Werror=strict-aliasing
Summary: games-engines/love-11.4 fails to compile with -Werror=strict-aliasing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-18 06:49 UTC by Agostino Sarubbo
Modified: 2022-07-26 08:50 UTC (History)
0 users

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


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

Issue: games-engines/love-11.4 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-07-18 06:49:11 UTC
Created attachment 792077 [details]
build.log

build log and emerge --info
Comment 2 Marek Szuba (RETIRED) archtester gentoo-dev 2022-07-25 22:08:44 UTC
This is triggered by the presence of -Werror=strict-aliasing in CFLAGS, regardless of whether LTO has been enabled or not. Oh, and just to keep track of things - as of a few minutes ago, the live ebuild still suffers from this as well.
Comment 3 Marek Szuba (RETIRED) archtester gentoo-dev 2022-07-26 08:36:39 UTC
Oh, and interestingly enough I am unable to reproduce this error on one of my machines in spite of all of them being up to date on the stable profiles. In light of which I don't think I'll even bother reporting this upstream.
Comment 4 Larry the Git Cow gentoo-dev 2022-07-26 08:50:19 UTC
The bug has been closed via the following commit(s):

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

commit fadc1ef674faec877bbfd0967726553c537e8334
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-07-26 08:42:56 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-07-26 08:50:11 +0000

    games-engines/love: disable strict aliasing
    
    -fstrict-aliasing triggers build-time warnings on some (but not all)
    systems so let's keep it consistent.
    
    Closes: https://bugs.gentoo.org/858719
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 games-engines/love/love-11.4.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)