Skip to content

BUG: Fix GCC error during build configuration#21534

Merged
seberg merged 1 commit intonumpy:mainfrom
charris:fix-gcc-config-error
May 18, 2022
Merged

BUG: Fix GCC error during build configuration#21534
seberg merged 1 commit intonumpy:mainfrom
charris:fix-gcc-config-error

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented May 18, 2022

GCC 11 fails the configuration test for detecting strtold_l when the
-Wall flag is present because -Werror=nonnull is activated. The fix
is to add a pragma to numpy/core/feature_detection_locale.h to ignore
that error.

Closes #21529.

GCC 11 fails the configuration test for detecting `strtold_l` when the
`-Wall` flag is present because `-Werror=nonnull` is activated. The fix
is to add a pragma to `numpy/core/feature_detection_locale.h` to ignore
that error.

Closes numpy#21529.
@charris charris added 00 - Bug 09 - Backport-Candidate PRs tagged should be backported 36 - Build Build related PR labels May 18, 2022
@charris charris added this to the 1.22.4 release milestone May 18, 2022
@seberg
Copy link
Copy Markdown
Member

seberg commented May 18, 2022

OK, lets just do it. It seems plausible that clang also understands the pragma, and at least for long double MSVC should be a non-issue. Thanks Chuck!

@seberg seberg merged commit ad10968 into numpy:main May 18, 2022
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label May 18, 2022
@charris charris removed this from the 1.22.4 release milestone May 18, 2022
@charris charris deleted the fix-gcc-config-error branch May 18, 2022 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 36 - Build Build related PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local build testing broken on Fedora 35 by #21154.

2 participants