Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858710 - games-emulation/melonds-0.9.4_p1-r1 fails to compile (lto): DSi_SD.cpp:272:6: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: games-emulation/melonds-0.9.4_p1-r1 fails to compile (lto): DSi_SD.cpp:272:6:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-18 06:45 UTC by Agostino Sarubbo
Modified: 2022-07-24 16:24 UTC (History)
0 users

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


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

Issue: games-emulation/melonds-0.9.4_p1-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-07-18 06:45:02 UTC
Created attachment 792068 [details]
build.log

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


FAILED: src/CMakeFiles/core.dir/DSi_SD.cpp.o 
FAILED: src/CMakeFiles/core.dir/GPU2D_Soft.cpp.o 
FAILED: src/CMakeFiles/core.dir/NDS.cpp.o 
/var/tmp/portage/games-emulation/melonds-0.9.4_p1-r1/work/melonDS-0.9.4/src/DSi_SD.cpp:272:6: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Comment 3 Larry the Git Cow gentoo-dev 2022-07-23 17:51:19 UTC
The bug has been closed via the following commit(s):

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

commit 9d86757bf63ca43fc97c236c616d0dfd8d8b4912
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-07-23 17:50:54 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-07-23 17:50:54 +0000

    games-emulation/melonds: filter lto
    
    Closes: https://bugs.gentoo.org/858710
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 games-emulation/melonds/melonds-0.9.3-r2.ebuild    | 3 ++-
 games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild | 3 ++-
 games-emulation/melonds/melonds-9999.ebuild        | 7 ++++++-
 3 files changed, 10 insertions(+), 3 deletions(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-23 19:39:05 UTC
Needs -fno-strict-aliasing.
Comment 5 Larry the Git Cow gentoo-dev 2022-07-24 16:24:17 UTC
The bug has been referenced in the following commit(s):

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

commit 65321f59f7f8ae5756dfc2685b942449152f31ad
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-24 01:56:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-24 16:24:00 +0000

    games-emulation/melonds: disable strict aliasing
    
    Bug: https://bugs.gentoo.org/858710
    Signed-off-by: Sam James <sam@gentoo.org>

 games-emulation/melonds/melonds-0.9.3-r2.ebuild    | 2 ++
 games-emulation/melonds/melonds-0.9.4_p1-r1.ebuild | 2 ++
 games-emulation/melonds/melonds-9999.ebuild        | 4 +++-
 3 files changed, 7 insertions(+), 1 deletion(-)