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

Fix some minor issues and warnings in the Meson build config #253

Merged
merged 4 commits into from
May 13, 2024

Conversation

rgommers
Copy link
Contributor

Triggered by gh-249. I can't reproduce that issue, but this PR should at least help make such issues easier to diagnose. Changes:

  • don't explicitly call python3, because that may not work on Windows or when python3 is not the interpreter that clawpack is being built for
  • add --quiet to the f2py calls to remove a lot of noise in the build logs (not 100% quiet, look like something needs fixing in f2py as well)
  • add -Wl,-no_compact_unwind to avoid a lot more build warnings (see the commit message for details)
  • add the f2py version number to the build log (helps diagnose build-related bug reports)

This tends to not work well in situations where `python3` is an executable
that doesn't match the Python interpreter we are building for. Happens
in particular in distro setups with multiple Python versions installed
under /usr/bin/.
A ton of these are visible at least on macOS:
```
ld: warning: could not create compact unwind for ___workspace_MOD_alloc_workspace: registers 27 and 28 not saved contiguously in frame
ld: warning: could not create compact unwind for _flux1_: registers 72 and 73 not saved contiguously in frame
```

The alternative solution may be to add `-fno-omit-frame-pointer`, see
https://onexception.dev/news/1123392/xcode-15-upgrade-warnings-with-react-native-v0-72-4-on-m1-mac
@mandli mandli merged commit f14729a into clawpack:master May 13, 2024
@rgommers rgommers deleted the build-fixes branch May 14, 2024 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants