Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pythoncapi_compat: don't define Py_NULL if it is already defined#18699

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hauntsaninja merged 1 commit intopython:masterfrommr-c:gcc_15_py3.12
Feb 17, 2025

Conversation

@mr-c
Copy link
Contributor

Fixes:#18698

This is a naive fix for the gcc 15 error when compiling for Python 3.12

Copy link
Collaborator

@hauntsaninjahauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for the fix!

mr-c reacted with heart emoji
@hauntsaninjahauntsaninja merged commit0808624 intopython:masterFeb 17, 2025
12 checks passed
@mr-cmr-c deleted the gcc_15_py3.12 branchFebruary 18, 2025 00:01
@cdce8p
Copy link
Collaborator

Thanks@mr-c!pythoncapi_compat.h is usually just a copy fromhttps://github.com/python/pythoncapi-compat. It would be awesome if you could do the fix upstream as well.

/CC@vstinner

mr-c reacted with heart emoji

@vstinner
Copy link
Member

Thanks@mr-c! pythoncapi_compat.h is usually just a copy fromhttps://github.com/python/pythoncapi-compat. It would be awesome if you could do the fix upstream as well.

I fixed the issue upstream:python/pythoncapi-compat#138.

I'm surprised that nobody reported the issue earlier. I didn't notice that the macro is redefined.

mr-c reacted with heart emoji

@cdce8p
Copy link
Collaborator

I fixed the issue upstream:python/pythoncapi-compat#138.

Thanks@vstinner!

vstinner reacted with hooray emoji

x612skm pushed a commit to x612skm/mypy-dev that referenced this pull requestFeb 24, 2025
…hon#18699)Fixes:python#18698 This is a naive fix for the gcc 15 error when compiling for Python 3.12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Compilation failure with GCC 15 + Python 3.12:mypyc/lib-rt/pythoncapi_compat.h:41:11: error: ‘_Py_NULL’ redefined [-Werror]

4 participants

@mr-c@cdce8p@vstinner@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp