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

Bug 942560

Summary: dev-python/pypy3_10-exe-7.3.17 - error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Product: Gentoo Linux Reporter: orbea <orbea>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: CONFIRMED ---    
Severity: normal CC: orbea
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: Build log.

Description orbea 2024-10-30 18:06:38 UTC
Fails with -Werror=strict-aliasing.

CompilationError: CompilationError(err="""
        In file included from /var/tmp/portage/dev-python/pypy3_10-exe-7.3.17/work/pypy3.10-v7.3.17-src/rpython/translator/c/src/thread.c:24:
        /var/tmp/portage/dev-python/pypy3_10-exe-7.3.17/work/pypy3.10-v7.3.17-src/rpython/translator/c/src/thread_pthread.c: In function 'RPyThreadStartEx':
        /var/tmp/portage/dev-python/pypy3_10-exe-7.3.17/work/pypy3.10-v7.3.17-src/rpython/translator/c/src/thread_pthread.c:134:34: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
          134 |                 return (Signed) *(Signed *) &th;
              |                                  ^~~~~~~~~~~~~~
        cc1: some warnings being treated as errors
        """)

Reproducible: Always
Comment 1 orbea 2024-10-30 18:07:57 UTC
Created attachment 907387 [details]
Build log.