Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New warning: assignment to ‘_PyInterpreterFrame *’ from incompatible pointer type ‘_Py_UopsSymbol *’ [-Wincompatible-pointer-types] #118343

Closed
Eclips4 opened this issue Apr 27, 2024 · 9 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@Eclips4
Copy link
Member

Eclips4 commented Apr 27, 2024

Bug report

Bug description:

Popped up in https://github.com/python/cpython/pull/118334/files and https://github.com/python/cpython/pull/118338/files

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

@Eclips4 Eclips4 added the type-bug An unexpected behavior, bug, or error label Apr 27, 2024
@sobolevn
Copy link
Member

Happens in Python/optimizer_cases.c.h

@nineteendo
Copy link
Contributor

Any updates on this?

@sobolevn
Copy link
Member

cc @markshannon 3e06c7f

@lysnikolaou
Copy link
Contributor

FWIW, for those with setups where warnings are treated as errors (my Fedora does this, not sure why the defaults are different), one can do CFLAGS="-Wno-error=incompatible-pointer-types" make as a work-around until this is solved.

@corona10
Copy link
Member

Python/optimizer_cases.c.h: In function ‘optimize_uops’:
Python/optimizer_cases.c.h:1444:23: error: assignment to ‘_PyInterpreterFrame *’ from incompatible pointer type ‘_Py_UopsSymbol *’ [-Wincompatible-pointer-types]
 1444 |             gen_frame = sym_new_not_null(ctx);
      |                       ^
make: *** [Makefile:3018: Python/optimizer_analysis.o] Error 1
make: *** Waiting for unfinished jobs....

Build failure with my Fedora 40.
(gcc14)

@corona10
Copy link
Member

@corona10
Copy link
Member

Now on the Fedora 40, I am able to build with gcc-14, @lysnikolaou is it still reproduced?

@nineteendo
Copy link
Contributor

Fixed for me too.

@corona10
Copy link
Member

Issue fixed by #118380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

5 participants