Skip to content

esy build fails: esy-build-package: Error: exception Sys_error("/usr/lib/ocaml/METAS: No such file or directory") #14

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

Closed
ambientlight opened this issue Nov 5, 2019 · 1 comment

Comments

@ambientlight
Copy link

Because of #9, had to go with an own build on ubuntu, though got esy build failing with

info esy build 0.5.8 (using esy.json)
info building @opam/cppo@opam:1.6.6@f4f83858
info building @opam/ppx_derivers@opam:1.2.1@ecf0aa45
info building @opam/result@opam:1.4@dc720aef
info building @opam/seq@opam:0.2@35c16df8
info building @opam/stdlib-shims@opam:0.1.0@d957c903
info building @opam/easy-format@opam:1.3.1@54402780
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @opam/cppo@opam:1.6.6
    # esy-build-package: pwd: /home/hlegacy/.esy/3__________________________________________________________________/b/opam__s__cppo-opam__c__1.6.6-4890b2aa
    # esy-build-package: running: 'dune' 'build' '-p' 'cppo' '-j' '4'
    Error: exception Sys_error("/usr/lib/ocaml/METAS: No such file or directory")
    Backtrace:
    Raised by primitive operation at file "src/stdune/path.ml", line 878, characters 25-50
    Called from file "src/findlib.ml", line 441, characters 6-31
    Called from file "list.ml", line 93, characters 22-25
    Called from file "src/stdune/list.ml" (inlined), line 5, characters 19-33
    Called from file "src/stdune/list.ml", line 39, characters 29-39
    Called from file "src/findlib.ml", line 440, characters 4-265
    Called from file "src/findlib.ml", line 453, characters 20-37
    Called from file "src/findlib.ml", line 457, characters 2-21
    Called from file "src/lib.ml", line 1334, characters 6-34
    Called from file "src/super_context.ml", line 288, characters 4-70
    Called from file "src/gen_rules.ml", line 327, characters 6-161
    Called from file "src/fiber/fiber.ml", line 99, characters 6-13
    
    I must not segfault.  Uncertainty is the mind-killer.  Exceptions are
    the little-death that brings total obliteration.  I will fully express
    my cases.  Execution will pass over me and through me.  And when it
    has gone past, I will unwind the stack along its path.  Where the
    cases are handled there will be nothing.  Only I will remain.
    error: command failed: 'dune' 'build' '-p' 'cppo' '-j' '4' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building @opam/cppo@opam:1.6.6
esy: exiting due to errors above

Not familiar with esy, but I have 4.05.0 ocaml compiler installed with opam, any suggestions here?

@ambientlight
Copy link
Author

surprisingly, manually creating empty METAS folder made it work.
I also needed to add "@opam/merlin-extend": "0.4", into devDependencies intoesy.json` for build to go through.

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

1 participant