Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930966

Summary: dev-lang/gdl-1.0.4-r1 fails to compile: saverestore.cpp:465:14: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: eschwartz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gnudatalanguage/gdl/issues/1852
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-04-30 07:19:40 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/gdl-1.0.4-r1 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-30 07:19:41 UTC
Created attachment 891999 [details]
build.log

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


FAILED: src/CMakeFiles/gdl.dir/saverestore.cpp.o 
/var/tmp/portage/dev-lang/gdl-1.0.4-r1/work/gdl-v1.0.4/src/saverestore.cpp:465:14: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Comment 3 Larry the Git Cow gentoo-dev 2024-07-11 16:29:53 UTC
The bug has been closed via the following commit(s):

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

commit 4200dd6f56df960800718dae10d37ef5c04e972c
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-07-11 03:57:12 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-07-11 16:28:29 +0000

    dev-lang/gdl: mark as LTO-unsafe, strict-aliasing unsafe
    
    Closes: https://bugs.gentoo.org/930966
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 dev-lang/gdl/gdl-1.0.4-r1.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)