matsen / pplacer

Phylogenetic placement and downstream analysis
http://matsen.fredhutch.org/pplacer/
GNU General Public License v3.0
72 stars 17 forks source link

Compilation error #359

Open cmzmasek opened 7 years ago

cmzmasek commented 7 years ago

Hi:

After gathering all the require libraries, I attempted to build pplacer (cloned from github) with make. Unfortunately, I am getting this error:

if [ ! -e bin ]; then mkdir bin; fi make pplacer.native make[1]: Entering directory '/home/zma/git/pplacer' ocamlbuild pplacer.native Warning: Won't be able to compile a native plugin

My system is openSUSE Leap version 42.2.20161212 (64bit)

-Christian-

samfux84 commented 5 years ago

Similar problem over here:


[sfux@eu-c7-049-04 1.1.alpha19]$ make
if [ ! -e bin ]; then mkdir bin; fi
make pplacer.native
make[1]: Entering directory `/cluster/apps/gdc/pplacer/1.1.alpha19'
ocamlbuild pplacer.native
+ /cluster/apps/gdc/opam/opam-full-1.2.2/bootstrap/ocaml-4.02.1/../ocaml/bin/ocamlopt unix.cmxa -I /cluster/apps/gdc/opam/opam-full-1.2.2/bootstrap/ocaml-4.02.1/../ocaml/lib/ocaml/ocamlbuild /cluster/apps/gdc/opam/opam-full-1.2.2/bootstrap/ocaml-4.02.1/../ocaml/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /cluster/apps/gdc/opam/opam-full-1.2.2/bootstrap/ocaml-4.02.1/../ocaml/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File "myocamlbuild.ml", line 24, characters 6-78:
Error: This expression has type Lexing.lexbuf
       but an expression was expected of type
         Ocamlbuild_pack.Loc.source = string
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
make[1]: *** [pplacer.native] Error 10
make[1]: Leaving directory `/cluster/apps/gdc/pplacer/1.1.alpha19'
make: *** [pplacer] Error 2
[sfux@eu-c7-049-04 1.1.alpha19]$
boegel commented 5 years ago

The problem is probably that pplacer requires the (now ancient) OCaml 4.01.0? See also http://matsen.github.io/pplacer/compiling.html