Open mintoc opened 5 years ago
Cóilín/Jim - I'm having the same problem on Ubuntu with gcc 7.3.0. I've also had problems trying to compile the simple TMB sam.cpp example....
Might not be the best solution, but as a workround I've just got VAST 5.3.0 to compile by stepping back gcc versions... i.e. in your/or create a ~/.R/Makevar add:
CXX = gcc-5
(or whatever flavour you have installed).
Paul and Coilin,
are you willing to post the issues you've seen to the TMB issue tracker for someone else who understands compiler-specific issues to look at? I'm also happy to reach out to Kasper myself, but don't feel like I have enough information right now.
Jim
This should be resolved by kaskr/adcomp#298.
John,
can you help me understand this? I can see in their error message report that it involves isfinite
and I gather that Kasper has now repaired something about that function. But do you know where it was being used in VAST -- perhaps its buried somewhere in the statement vector< std::complex<Type> > eigenvalues_B_ff = B_ff.eigenvalues();
of somewhere else involving the eigendecomposition of B_ff
? And do you know if users then must update their TMB package to access this fix?
I could never replicate the problem so I'm not sure how to double-check that its fixed ;)
I'm honestly not sure what's happening here. I suspect you're right and it's called somewhere in the eigenvalue code. Something changed in the standard libraries and CppAD lost the definitions of these functions, but that's as much as I've been able to figure out.
Until a new version of TMB (> v1.7.15) is released on CRAN, users who encounter this will want to update TMB to master
using devtools::install_github("kaskr/admcomp/TMB")
. Only Mac and Linux users should be affected right now. Windows users will typically be using RTools, which is distributed with gcc v4 (which is why you weren't able to replicate). This compiler (and gcc v5, per above) aren't affected, but gcc v6 and later are.
Super, thanks John - to confirm that works fine now on my Linux machine.
Apologies for not picking up on all this earlier following the original issue, slipped by me...
Great, thanks for the confirmation Paul! I'm just happy Kasper was able to work his magic so quickly.
Jim, I feel pretty confident that this is taken care of on Linux. Other checks you might consider:
master
(I'd be surprised if this is a problem)I still had problems with macOS compilation for VAST 8.2 as described here, with workaround https://github.com/kaskr/adcomp/issues/297#issuecomment-518698659
On Ubuntu 18.04 and using gcc version 7.3.0 I can compile up to VAST_v4_4_0.cpp but can't compile more recent versions (sessionInfo() pasted below).
Using the R code
I get lots of messages but two main errors:
I tried a diff on VAST_v4_4_0 and VAST_v5_0_0 and see there are a good many changes to the eigenvalue code, perhaps the errors arise there?
Thanks for your help.