GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BLD: use ``-ftrapping-math`` with Clang on macOS in Meson build by rgommers · Pull Request #24060 · numpy/numpy

Conversation

@rgommers

@rgommers rgommers commented Jun 27, 2023

Copy link
Copy Markdown
Member

The distutils build also uses this flag, and it avoids some problems with floor_divide and similar functions (xref gh-19479).

For older macOS arm64 Clang versions, the flag does get accepted, but then gets overridden because it's not actually supported - which yields these warnings:

warning: overriding currently unsupported use of floating point exceptions on this target [-Wunsupported-floating-point-opt]

Since they're a little annoying to suppress (at least without completely disabling those warnings, which doesn't seem desirable) and will go away when updating to the latest XCode version, we'll ignore these warnings.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

seberg reacted with rocket emoji
All reactions
  • 🚀 1 reaction
@rgommers
BLD: use -ftrapping-math with Clang on macOS
928cd74
The distutils build also uses this flag, and it avoids some problems
with `floor_divide` and similar functions (xref numpygh-19479).

For older macOS arm64 Clang versions, the flag does get accepted, but then
gets overridden because it's not actually supported - which yields these
warnings:
```
warning: overriding currently unsupported use of floating point exceptions on this target [-Wunsupported-floating-point-opt]
```
Since they're a little annoying to suppress and will go away when updating to
the latest XCode version, we'll ignore these warnings.
@rgommers rgommers added 36 - Build Build related PR Meson Items related to the introduction of Meson as the new build system for NumPy labels Jun 27, 2023
@mattip

mattip commented Jun 27, 2023

Copy link
Copy Markdown
Member

Do builds on cirrus, github, conda-forge all use XCode 14.3+?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Jun 27, 2023

Copy link
Copy Markdown
Member Author

Do builds on cirrus, github, conda-forge all use XCode 14.3+?

No, but they don't need to, this still works - it's just a build warning. We can suppress them with -Wno-unsupported-floating-point-opt I think, but that will then also potentially suppress other warnings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

seberg
seberg approved these changes Jun 27, 2023
View reviewed changes

@seberg seberg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks like this adopts the status-quo to meson. It would be nice to hide the warnings, but I don't think we should worry about it.

It's great that the new XCode should finally fix the missing option, hopefully we can remove quite a few hacks eventually...

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seberg
seberg merged commit 85385d6 into numpy:main Jun 27, 2023
@rgommers
rgommers deleted the clang-floatingpoint-flags branch June 27, 2023 14:09
@rgommers rgommers added this to the 2.0.0 release milestone Jun 27, 2023
@rgommers rgommers added the 09 - Backport-Candidate PRs tagged should be backported label Jun 27, 2023
@charris charris modified the milestones: 2.0.0 release, 1.25.2 release Jul 5, 2023
@charris charris changed the title BLD: use -ftrapping-math with Clang on macOS in Meson build BLD: use -ftrapping-math with Clang on macOS in Meson build Jul 14, 2023
@charris charris mentioned this pull request Jul 14, 2023
BLD: use -ftrapping-math with Clang on macOS #24182
Merged
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jul 14, 2023
@charris charris removed this from the 1.25.2 release milestone Jul 14, 2023
@larsoner larsoner mentioned this pull request Jul 18, 2023
BUG: BLAS setup can silently fail and not be reported in show_config() #24200
Closed
@gerlero gerlero mentioned this pull request Aug 1, 2023
Tutorial case backwardFacingStep2D hangs forever after compiling with Xcode CLT >= 14.3 BrushXue/OpenFOAM-AppleM1#8
Closed
@mattip mattip mentioned this pull request Jul 3, 2025
BLD: use github to build macos-arm64 wheels with OpenBLAS and update to 0.3.30 #29069
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@seberg seberg seberg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

36 - Build Build related PR Meson Items related to the introduction of Meson as the new build system for NumPy

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@rgommers @mattip @seberg @charris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.