-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
MNT: Add support for osx-64 builds #2
base: main
Are you sure you want to change the base?
MNT: Add support for osx-64 builds #2
Conversation
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( I do have some suggestions for making it better though... For recipe/meta.yaml:
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12783159295. Examine the logs at this URL for more detail. |
618b21e
to
a2ea56b
Compare
+* default to the system directory | ||
+ path = '/usr/local/share/ff/' | ||
+ | ||
+ fullname = trim(path)//trim(name) |
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.
I don't think Fortran 90 code (like trim
) can be added to Fortran 77 .f
files. So will need to get an equivalent to trim
working.
* Add osx-64 builds. * Bump build number.
a2ea56b
to
0ff11f1
Compare
@conda-forge-admin, please rerender |
…onda-forge-pinning 2025.01.03.14.12.46
@conda-forge/staged-recipes I'm not sure if anyone with Fortran experience can offer advice here, but this recipe currently builds and runs as expected for Lines 33 to 34 in 7ad7719
However, when trying to add in support for
which does exist Lines 61 to 63 in 7ad7719
and instead reports failing to open the path
with
where I originally assumed that this had to come down to some strange difference in Can you offer any advice on how to attempt to debug this? |
The (I assume) relevant bits of the * first try - my home directory
path = '/Users/runner/miniforge3/conda-bld/ff_1736136218744/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/share/ff/ '
fullname = path(1:index(path,' ')-1)//name
open(ifile,file=fullname,status='OLD',err=30)
return
30 continue
* second try - the system directory
path = '/Users/runner/miniforge3/conda-bld/ff_1736136218744/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/share/ff/ '
fullname = path(1:index(path,' ')-1)//name
open(ifile,file=fullname,status='OLD',err=40)
return
* file could not be found
40 continue
print *,'ffopen: error: could not open ',fullname
print *,' adjust path in ffopen (ffinit.f)'
ier = -1
*###] ffopen: |
Maybe relevant environmental flags:
|
Looking at the full log for the I see now that the test program output
has the error
so it seems that for path = '/Users/runner/miniforge3/conda-bld/ff_1736136218744/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/share/ff/ '
fullname = path(1:index(path,' ')-1)//name
open(ifile,file=fullname,status='OLD',err=30) is somehow getting |
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.
OSX sed
command behaves differently than GNU sed when -i
is used.
Another solution is to add sed
as a build requirement to the recipe.
Thanks for your review, @martin-g. Lines 44 to 49 in 7ad7719
specifically to avoid the OS level pattern differences that you mention. I'm quite thankful that conda-forge |
Ah, sorry! I didn't check before typing ... Then it must be something else |
Change-fstack-protector
FFLAGS flag to-no-fstack-protector
forx86
osx
builds to allow for theshare/*.dat
files to be loaded properly.osx-arm64
sets-no-fstack-protector
, so this is mirroring that behavior.c.f. https://stackoverflow.com/questions/10712972/what-is-the-use-of-fno-stack-protector Having stack-protector enabled can break the ability to compile against non-standard userspace libraries, and can be considered harmful.Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)