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 on Linux #185

Open
aryx opened this issue Apr 12, 2021 · 4 comments
Open

compilation error on Linux #185

aryx opened this issue Apr 12, 2021 · 4 comments
Assignees
Labels
bug Something isn't working need-more-info needs more information from the reporter priority:low not on the roadmap for now

Comments

@aryx
Copy link
Collaborator

aryx commented Apr 12, 2021

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

@aryx
Copy link
Collaborator Author

aryx commented Apr 12, 2021

did git clean -dfx, and same error after

./configure
make setup
./script/rebuild-everything

@aryx
Copy link
Collaborator Author

aryx commented Apr 12, 2021

Also

$ dune clean
$ make
File "dune", line 1, characters 0-0:
Error: File unavailable: bin
make: *** [Makefile:15: build] Error 1

@aryx
Copy link
Collaborator Author

aryx commented Apr 12, 2021

ok, make clean fixed the previous issue about "bin", but
still got the same linking error in tests/seq/

@mjambon
Copy link
Member

mjambon commented Apr 14, 2021

gcc: error: ": No such file or directory

is a strange error message. Do you have a file named " (a double quote)?

@mjambon mjambon added need-more-info needs more information from the reporter priority:medium to do, not blocking users priority:low not on the roadmap for now bug Something isn't working and removed priority:medium to do, not blocking users labels May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-more-info needs more information from the reporter priority:low not on the roadmap for now
Projects
None yet
Development

No branches or pull requests

2 participants