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

Bug 927675

Summary: sci-mathematics/singular-4.3.2_p16 fails to compile: countedref.cc:111:91: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Michael Orlitzky <mjo>
Status: RESOLVED FIXED    
Severity: normal CC: frp.bissey, mjo, proxy-maint, sci-mathematics
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/Singular/Singular/issues/1212
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-03-24 10:12:05 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-mathematics/singular-4.3.2_p16 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-03-24 10:12:07 UTC
Created attachment 888377 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-03-31 23:37:34 UTC
The bug has been closed via the following commit(s):

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

commit 8ac4844ebd25817fc82f7faaa47e5d1115e1ff79
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-31 20:29:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-31 23:33:49 +0000

    sci-mathematics/singular: mark as LTO-unsafe, strict-aliasing unsafe
    
    Closes: https://bugs.gentoo.org/927675
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-mathematics/singular/singular-4.3.2_p10.ebuild | 10 +++++++++-
 sci-mathematics/singular/singular-4.3.2_p16.ebuild | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-04-02 15:22:23 UTC
The bug has been referenced in the following commit(s):

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

commit 7876a356f737310c0cdda056fb77ebcbab866f3d
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-04-02 15:08:51 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-04-02 15:09:40 +0000

    sci-mathematics/singular: backport strict-aliasing/lto fix
    
    Bug: https://bugs.gentoo.org/927675
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../singular/files/singular-4.3.2_p16-lto.patch        | 18 ++++++++++++++++++
 sci-mathematics/singular/singular-4.3.2_p16.ebuild     | 11 ++---------
 2 files changed, 20 insertions(+), 9 deletions(-)