-
Notifications
You must be signed in to change notification settings - Fork 3
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
MacOS build linker warning #14
Comments
Thank you for reporting this. What version of R and Mac OSX do you run? I think it is more related to your local installation than to the package. Maybe you can try the suggestion at https://stackoverflow.com/a/36001449? |
Yes, this does seem like a local installation issue. I'll try installing the homebrew gcc and updating the R files. This should be mentioned in the documentation as a workaround. As an aside, if a separated installation of gcc and modification of |
Yes, added at the user's Makevars? Where do you suggest this is added? Readme? And then a new release? Or is that not necessary? |
My Makevars contained:
and I have updated it to contain:
I suggest adding a sub-heading under Installation called "For Mac OS users" or similar with a brief explanation:
and a brief set of instructions for novice users:
A new release is not necessary for this. I recommend waiting until all pre-publication changes are completed and then releasing a 0.0.3.1 (or even a 0.1 to celebrate acceptance!). The manuscript can be updated to match the correct version and DOI at that point. |
Thanks. I use |
The version of |
Ok, I have tried several different ways to solve this problem and I have managed to build successfully without linker errors. Unfortunately, I now get a segfault when running the tests. A detailed description of what I've done as well as output from the segfault follows. From what I can find online, it appears that the way to get the After that is installed, the
The build also completes successfully with only the To try to make sure that there wasn't a strange interaction with a dependency that was already built, I also removed all user installed packages using this script. I can build and load the package, but when I try to run the tests I get a segfault. I have successfully built the package at least five times with various permutations of the Do you have a suggestion for how to address this? Clearly it's something specific to my environment but I'm now well outside my area of expertise.
|
Thank you very much for this great effort. First of all. It runs on Mac OSX on Travis: https://travis-ci.org/mikldk/malan. But that's of course just one particular environment. So there seem to exist at least one Mac OSX environment where it works. For the segfault, can you try putting those commands in |
I have added instructions in e913b1c. I am not entirely sure why |
I have run Having done that, I decided to return to the conda install. While it still can't find the vignettes, I was able to get the tests running using the instructions as written and all tests completed successfully. It is now my recommendation that Mac users who need a workaround should consider installing Regardless of which workaround you suggest in the documentation, the instructions in e913b1c are not sufficient since they don't address the fortran library linking issue. I made that suggestion before I fully understood the nature of the problem. Sorry about that! |
I should add that I'm now satisfied that I can get the tests to run locally, and I'm not overly concerned with figuring out how I broke my installation. Once I've tested and verified the updated Mac OS workaround instructions, we can call it good. |
Thanks. What about replacing
with
? It is very vague, but I have no idea why you are having problems. The Travis Mac OSX runs fine (https://travis-ci.org/mikldk/malan/jobs/375073756). Do you have any suggestions on how I could narrow it down or debug it? |
I would change "(for example missing From what I can guess, there are some old object files left over from when I tried to compile the |
I get the following warning on Mac OS. It hasn't interfered with loading the package or running the beginning of the Introduction vignette so far. If there is a specific function or set of functions that rely on
gfortran
that I can test please let me know.The text was updated successfully, but these errors were encountered: