Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942560 - dev-python/pypy3_10-exe-7.3.17 - error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
Summary: dev-python/pypy3_10-exe-7.3.17 - error: dereferencing type-punned pointer wil...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-10-30 18:06 UTC by orbea
Modified: 2024-10-30 18:13 UTC (History)
1 user (show)

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


Attachments
Build log. (build.log,9.13 KB, text/x-log)
2024-10-30 18:07 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
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.