-
Notifications
You must be signed in to change notification settings - Fork 59
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
Onboarding guide could suggest better configure flags #45
Comments
Thanks for the suggestion/feedback. Is that the standard way packages are installed on OSX? If so, indeed, it looks like we would need to provide more info as direct detection seems to not be working. |
There are two main package managers for MacOS, macports and homebrew, both in common usage. There is also fink but I think that is less well used. It is possible there is some quirk in my machine's configuration that made it harder for automake to track down the installed packages (in honesty I don't understand the innards of automake). But I haven't done anything unusual. It was very easily fixed by adding |
Ok, great. Then indeed we should squeeze this into the two pages. |
The less verbose way to find packages from an installation tree outside of the system directories would be to use
Or even better:
which on Linux would avoid needing to also define |
The paths used in the |
Isn't the option you suggest more complex for a user not familiar with these things? |
Not really, it is the easiest way to pull in a number of packages installed into a third party tree. Ideally you'd Note you can set these as environment variables and just run |
It didn't work for me to pass these in as environment variables -- I actually had to pass it to |
Thanks, it should work, although maybe I should have used |
Late to the party but just to add a few things:
|
Makes me realise I forgot to make these changes... |
What about this version: onboarding.pdf I have removed the part of the docs about |
Looks good to me. My only suggestion would be to include the fact that for HDF5 you need to point directly at |
Looks good to me. Strangely I found myself recompiling swift just a couple of days ago, and ran into a new problem. Specifically, when compiling, I received
I was able to compile by removing It might not be possible to do anything with this information, but I mention it just in case helpful. |
Thanks both. In this case, --enable-compiler-warnings is the trick to not edit the Makefile directly. We have seen this sincos issue on OSX before. We may not be detecting something correctly. |
I wouldn't guess I would imagine the issue is something to do with MacOS's preference for clang over gcc, but this was actually being compiled with gcc. Perhaps it was somehow finding the wrong |
It actually allows warnings by not turning them automatically into errors (which is our default). I think there is no standard convention for the name of the autotool flag enabling/disabling |
Regarding |
yes, that’s definitely what’s happening — just not sure why! |
Could you link here the config.log and config.h files that were generated? |
Overall the onboarding guide is very helpful. However, I found I had to specify paths to FFTW3 and GSL, even though these were both accessible via
pkg-config
. Moreover despite these being listed as essential requirements, the configure process did not complain but rather allowed me to compile a binary that was incapable of running the cosmological example.This was easily fixed but my onboarding experience could have been even smoother, and for inexperienced users it could be particularly useful to directly instruct them on the flags.
(In case relevant, this is on MacOS with macports-provided gcc/pkg-config/fftw3/gsl)
The text was updated successfully, but these errors were encountered: