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

BLD: Help raspian arm + clang 13 about __builtin_mul_overflow #22856

Merged
merged 1 commit into from Dec 21, 2022

Conversation

seberg
Copy link
Member

@seberg seberg commented Dec 21, 2022

It seems on raspian arm with clang 13 __builtin_mul_overflow is defined for int but doesn't work for ptrdiff_t (and maybe others). This checks for long long instead of int, which was reported to work-around the issue.

Closes gh-22811


@rgommers based on the comments in the issue, is this worth a shot/helpful?

It seems on raspian arm with clang 13 `__builtin_mul_overflow` is
defined for `int` but doesn't work for `ptrdiff_t` (and maybe others).
This checks for `ptrdiff_t` instead of int, which was reported to
work-around the issue.

Closes numpygh-22811
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Dec 21, 2022
@rgommers rgommers added this to the 1.25.0 release milestone Dec 21, 2022
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Looks like a good idea to me, thanks @seberg

@rgommers rgommers merged commit 1d2551e into numpy:main Dec 21, 2022
@seberg seberg deleted the issue-22811 branch December 21, 2022 15:19
@charris charris added 36 - Build Build related PR and removed 09 - Backport-Candidate PRs tagged should be backported labels Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
36 - Build Build related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to import with numpy 1.23.5 after compiling on raspbian arm with clang 13 for python 3.11
3 participants