Skip to content
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

Compilation error #359

Open
cmzmasek opened this issue May 1, 2017 · 2 comments
Open

Compilation error #359

cmzmasek opened this issue May 1, 2017 · 2 comments

Comments

@cmzmasek
Copy link

cmzmasek commented May 1, 2017

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

  • /usr/bin/ocamlc.opt unix.cma -I /usr/lib64/ocaml/ocamlbuild /usr/lib64/ocaml/ocamlbuild/ocamlbuildlib.cma myocamlbuild.ml /usr/lib64/ocaml/ocamlbuild/ocamlbuild.cmo -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.
    Makefile:21: recipe for target 'pplacer.native' failed
    make[1]: *** [pplacer.native] Error 10
    make[1]: Leaving directory '/home/zma/git/pplacer'
    Makefile:15: recipe for target 'pplacer' failed
    make: *** [pplacer] Error 2

My system is openSUSE Leap version 42.2.20161212 (64bit)

-Christian-

@samfux84
Copy link

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
Copy link

boegel commented Feb 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants