revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

Ubuntu 18.10 / 19.04: @opam/ocamlfind@opam:1.8.1 build failed #1015

Closed jericdeleon closed 3 years ago

jericdeleon commented 3 years ago

Tried to follow the Building and Installing steps using a plain vagrant box with generic/ubuntu1810, encountered different issues. Tried it again on a generic/ubuntu1904 box, same issues.

CrossR commented 3 years ago

Its possible we need to update the build dependencies again. I did a round of updates to the Fedora ones a few weeks ago, as someone was hitting issues there, but it may be that the Ubuntu ones are now also out of date (and we are being saved by the pre-installed deps in the CI).

marcinkoziej commented 3 years ago
    Detecting compiler arguments: (extractor built) FAILED (see the file ocargs.log for details)

Can you post the content of ocargs.log mentioned?

glennsl commented 3 years ago

I just came across this as well. Most likely it's caused by this bug: https://github.com/esy/esy/issues/1171

There's a couple ways to work around this:

  1. Pin the OCaml dependency to 4.10.0
  2. Install and use @esy-nightly/esy instead. Unfortunately that will trigger another bug in esy-harfbuzz, being addressed here: https://github.com/revery-ui/esy-harfbuzz/pull/6
jericdeleon commented 3 years ago

@marcinkoziej Reran on a new VM, this is the only ocargs.log file I could find on the system afterwards:

.esy/3/b/opam__s__ocamlfind-opam__c__1.8.1-c62bd863/ocargs.log

ocamlc -o extract_args str.cma extract_args.ml
tools/extract_args/extract_args: 2: tools/extract_args/extract_args: Syntax error: word unexpected (expecting ")")
jericdeleon commented 3 years ago

Closing due to age.