-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot install VAST on M1 Mac running Monterey (OS 12.1) due to TMB error #316
Comments
Hey @afredston -- I have been working on a similar issue (same error message too) and this is what fixed it for me. It looks like Monterey installs packages here: usr/local (maybe that is different from older versions?) but they need to be in usr/bin so after changing Makevars to this: CC=/usr/bin/clang VAST and TMB examples work. |
Thanks @afredston for flagging the topic, and @genoa-sullaway for a solution! As I've probably said, I've never owned a Mac and am generally baffled about the differences. Do either of you have any insight why the issue isn't detected by my current MacOS "GitHub Actions" Continuous Integration feature here? I'm closing this for now, but @afredston please do update if that solution works for you, and re-open if it doesn't! |
Hi @afredston and @genoa-sullaway, I have encountered the same error on my new M1 Mac. Unfortunately adding "CC=/usr/bin/clang , CXX=/usr/bin/clang++" does not fix the issue for me. Could you please share your Makevars files as this seems to be where the issue is coming from. Many thanks, Beau |
Hi @BeauJarvisChild et al., I'm sorry to say that I actually never got VAST to work on this machine. I was mostly coding on a remote server at Rutgers where VAST was installed so I just used that. I'm setting up a new M2 machine in the next month or so, so I'll report back if I can get VAST working on there. Maybe worth asking the VAST Slack if anyone has gotten it to work on an M1 machine? Not really a solution but a workaround could be trying to install VAST on RStudio Cloud. |
Hi all, I went back and forth with @BeauJarvisChild a bit and I think we might have gotten to the bottom of things. It looks like this error comes back to line 153 in Admittedly, I have absolutely no clue how important the flags are to the compiling and what would be lost if |
oh man, that's annoying. I don't even remember now why those flags are there ... there's been different flags needed over time to get TMB to play nicely with different compilers. Hmm. I'll explore more but thanks for tracking it down! Does anyone on this thread need me to do this, or are people able to make their own local version of make_data and fit_model? |
Hi Jim, Local version is sweet for now. If anyone else needs a hand with this part please get in touch and I can share the code we used to edit make_model. Also want to note for the record that, as Andrew suggested on slack, the process outlined here https://stackoverflow.com/questions/70638118/configuring-compilers-on-mac-m1-big-sur-monterey-for-rcpp-and-other-tools/70664229#70664229 is also likely necessary for setting up the M1 macs. |
I got a new machine in 2021 and have never been able to get VAST up and running on it. I had extensive issues getting R to find the compiler which I think I've resolved. I've installed VAST and TMB but still get this error when running the basic VAST example (after getting messages about the locator, mesh, etc., indicating that VAST seems to be running):
Based on the message, I'm wondering if the issue is my Makevars file, which I edited extensively to get R to be able to find gfortran when trying to set up compiler tools on this machine. Here's my ~/.R/Makevars file:
Sorry if this is a duplicate of other questions on here or beyond the scope of Issues for VAST. I didn't see anyone else encountering this issue, and I didn't encounter it either when running basic checks that Rcpp works. TMB::runExample(all=TRUE) also runs without errors. Here's my session info:
The text was updated successfully, but these errors were encountered: