Skip to content

compilation error on Linux #185

Open
@aryx

Description

For context I tried to upgrade to tree-sitter 0.19.3, which means I modified package.json, but then it didn't work
so I reverted and just did
make setup
./script/rebuild-everything
but then got this error:

...
make[4]: Entering directory '/home/pad/github/ocaml-tree-sitter/tests/seq'
/home/pad/github/ocaml-tree-sitter/scripts/build-ocaml
    ocamlopt bin/Main.exe (exit 2)
(cd _build/default && /home/pad/.opam/4.09.1/bin/ocamlopt.opt -w @[email protected]@30..39@[email protected]@[email protected] -strict-sequence -strict-formats -short-paths -keep-locs -g -o bin/Main.exe /home/pad/.opam/4.09.1/lib/easy-format/easy_format.cmxa /home/pad/.opam/4.09.1/lib/biniou/biniou.cmxa /home/pad/.opam/4.09.1/lib/yojson/yojson.cmxa /home/pad/.opam/4.09.1/lib/atdgen-runtime/atdgen_runtime.cmxa /home/pad/.opam/4.09.1/lib/ocaml/unix.cmxa -I /home/pad/.opam/4.09.1/lib/ocaml /home/pad/.opam/4.09.1/lib/ANSITerminal/ANSITerminal.cmxa -I /home/pad/.opam/4.09.1/lib/ANSITerminal /home/pad/.opam/4.09.1/lib/cmdliner/cmdliner.cmxa /home/pad/.opam/4.09.1/lib/ocaml/bigarray.cmxa -I /home/pad/.opam/4.09.1/lib/ocaml /home/pad/.opam/4.09.1/lib/sexplib0/sexplib0.cmxa /home/pad/.opam/4.09.1/lib/base/caml/caml.cmxa /home/pad/.opam/4.09.1/lib/parsexp/parsexp.cmxa /home/pad/.opam/4.09.1/lib/sexplib/sexplib.cmxa /home/pad/.opam/4.09.1/lib/ocaml/str.cmxa -I /home/pad/.opam/4.09.1/lib/ocaml /home/pad/.opam/4.09.1/lib/containers/monomorphic/containers_monomorphic.cmxa /home/pad/.opam/4.09.1/lib/containers/containers.cmxa /home/pad/.opam/4.09.1/lib/tsort/tsort.cmxa /home/pad/.opam/4.09.1/lib/result/result.cmxa /home/pad/.opam/4.09.1/lib/ppx_deriving/runtime/ppx_deriving_runtime.cmxa /home/pad/.opam/4.09.1/lib/tree-sitter/gen/tree_sitter_gen.cmxa /home/pad/.opam/4.09.1/lib/tree-sitter/bindings/tree_sitter_bindings.cmxa -I /home/pad/.opam/4.09.1/lib/tree-sitter/bindings /home/pad/.opam/4.09.1/lib/ppx_sexp_conv/runtime-lib/ppx_sexp_conv_lib.cmxa /home/pad/.opam/4.09.1/lib/tree-sitter/run/tree_sitter_run.cmxa lib/tree_sitter_seq.cmxa -I lib bin/.Main.eobjs/native/dune__exe__Main.cmx)
gcc: error: ": No such file or directory
File "caml_startup", line 1:
Error: Error during linking
    ocamlopt lib/tree_sitter_seq.cmxs (exit 2)
(cd _build/default && /home/pad/.opam/4.09.1/bin/ocamlopt.opt -w @[email protected]@30..39@[email protected]@[email protected] -strict-sequence -strict-formats -short-paths -keep-locs -g -shared -linkall -I lib -o lib/tree_sitter_seq.cmxs lib/tree_sitter_seq.cmxa)
gcc: error: ": No such file or directory
File "caml_startup", line 1:
Error: Error during linking
make[4]: *** [Makefile:60: build-ocaml] Error 1
make[4]: Leaving directory '/home/pad/github/ocaml-tree-sitter/tests/seq'
make[3]: *** [Makefile:20: build] Error 2
make[3]: Leaving directory '/home/pad/github/ocaml-tree-sitter/tests/seq'
make[2]: *** [Makefile:22: test] Error 2
make[2]: Leaving directory '/home/pad/github/ocaml-tree-sitter/tests'
make[1]: *** [Makefile:61: e2e] Error 2
make[1]: Leaving directory '/home/pad/github/ocaml-tree-sitter'
make: *** [Makefile:51: test] Error 2

Metadata

Assignees

Labels

bugSomething isn't workingneed-more-infoneeds more information from the reporterpriority:lownot on the roadmap for now

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions