xflouris / libpll

Phylogenetic Likelihood Library
GNU Affero General Public License v3.0
26 stars 6 forks source link

solution for POSIX systems #150

Open MGNute opened 5 years ago

MGNute commented 5 years ago

I just want to let you know that I appear to have gotten epa-ng compiled successfully on a POSIX system by using bison-3.3.2. I initially had 3.3 and got a bunch of errors like this:

/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y:164.1-14: error: POSIX Yacc does not support %error-verbose [-Werror=yacc]
 %error-verbose
 ^~~~~~~~~~~~~~
/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y:164.1-14: warning: deprecated directive, use '%define parse.error verbose' [-Wdeprecated]
 %error-verbose
 ^~~~~~~~~~~~~~
/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y:166.1-11: error: POSIX Yacc does not support %destructor [-Werror=yacc]
 %destructor { pll_utree_graph_destroy($$,NULL); } subtree
 ^~~~~~~~~~~
/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y:167.1-11: error: POSIX Yacc does not support %destructor [-Werror=yacc]
 %destructor { free($$); } STRING
 ^~~~~~~~~~~
/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y:168.1-11: error: POSIX Yacc does not support %destructor [-Werror=yacc]
 %destructor { free($$); } NUMBER
 ^~~~~~~~~~~
/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y:169.1-11: error: POSIX Yacc does not support %destructor [-Werror=yacc]
 %destructor { free($$); } label
 ^~~~~~~~~~~

I'm running on CentOS and the truth is I don't know if that is a POSIX system or not, but I'm guessing those errors are what you are referring to in the README about POSIX vs. GNU. Anyway, with bison-3.3.2 the same thing shows up but it re-runs with a fix, so it's followed by this line:

/projects/tallis/nute/code/epa-ng/libs/pll-modules/libs/libpll/src/parse_utree.y: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]

I was able to compile and run the test case successfully:

INFO 5000 Sequences done!
INFO 10000 Sequences done!
INFO Time spent placing: 3s
INFO Elapsed Time: 3s

I don't know how 3s stacks up against what you've seen, but I'll put it to the test early next week :-). Thanks so much!