phyml
phyml copied to clipboard
phytime fails to compile
Hello, we discussed this in #157, so I just report that PhyTime in Spring 2022 release fails (Winter 2021 release worked well).
I also got this error. Looking at the source, cur_lnL_loc and new_lnL_loc are only defined within #ifdef PHYREX, but I believe you forgot to add this to line 1482 of mcmc.c. I'm attaching a (zipped) patch to make it compile. phyml-3.3.20220408-phytime.patch.zip
Compilation error messages:
mcmc.c: In function 'MCMC_Root_Time': mcmc.c:1482:24: error: 'cur_lnL_loc' undeclared (first use in this function); did you mean 'cur_lnL_seq'? 1482 | cur_lnL_loc,new_lnL_loc,tree->eval_glnL, | ^~~~~~~~~~~ | cur_lnL_seq mcmc.c:1482:24: note: each undeclared identifier is reported only once for each function it appears in mcmc.c:1482:36: error: 'new_lnL_loc' undeclared (first use in this function); did you mean 'new_lnL_seq'? 1482 | cur_lnL_loc,new_lnL_loc,tree->eval_glnL, | ^~~~~~~~~~~ | new_lnL_seq make[2]: *** [Makefile:1216: mcmc.o] Error 1
make[2]: Leaving directory '/root/rpmbuild/BUILD/phyml-3.3.20220408/src'
Hello there, I am hitting the same error when try to build PhyML --enable-phytime. The patch from ntakebay works, thank you!