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.
In conda-forge/staged-recipes#25506, the OSX build of pyrtools was failing because of a compilation error in the C code (which uses gcc in our deploy action here, but clang16 in the conda build).
I installed
clang=16
from conda-forge in a new conda environment, then ranCC=clang pip install .
in a clean version of the repo (which forced the compilation to use clang, see setuptools docs), and was able to reproduce the error (if uninstalling and reinstalling, in order to try possible solutions, must also delete thebuild/
directory that gets created by pip install; adding-vvv
will cause the output to include the compilation command, also useful for debugging).The issue was the
x_stop
andy_stop
did not have a type declared:parameter 'y_stop' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
I also removed unused
i,j
, which were raising a warning. There are many other warnings, largely about function definitions without prototypes, and I don't understand C well enough to fix them. Writing out these notes in case we need to come back and fix them at some point.