onivim / oni2

Native, lightweight modal code editor
https://v2.onivim.io
MIT License
7.83k stars 282 forks source link

esy bootstrap error - command failed: 'refmterr' 'dune' 'build' '-p' 'revery-terminal' on Linux Mint 20 #2671

Closed vikrant17 closed 3 years ago

vikrant17 commented 3 years ago

OS - Linux Mint 20

sudo esy install runs succesfully. But on executing sudo esy bootstrap in the terminal I get the following error:

info building revery-terminal@github:revery-ui/revery-terminal#a9cb168@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: revery-terminal@github:revery-ui/revery-terminal#a9cb168
    # esy-build-package: pwd: /root/.esy/source/i/revery_terminal__1bc20a82
    # esy-build-package: running: 'refmterr' 'dune' 'build' '-p' 'revery-terminal'
        ocamlopt src/bin/App.exe (exit 2)
    (cd /root/.esy/3/b/revery_terminal-1ef04efa/default && /root/.esy/3/i/ocaml-4.10.0-e4568572/bin/ocamlopt.opt -w -40 -g -o src/bin/App.exe /root/.esy/3/i/isolinear-f622b40e/lib/isolinear/isolinear.cmxa src/vterm/vterm.cmxa -I src/vterm /root/.esy/3/i/reason_native__s__console-0.1.0-8d8459b9/lib/console/lib/Console.cmxa -I /root/.esy/3/i/reason_native__s__console-0.1.0-8d8459b9/lib/console/lib /root/.esy/3/i/opam__s__result-opam__c__1.5-14855ada/lib/result/result.cmxa /root/.esy/3/i/opam__s__lwt-opam__c__4.5.0-bec924d6/lib/lwt/lwt.cmxa /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml/unix.cmxa -I /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml/bigarray.cmxa -I /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml /root/.esy/3/i/opam__s__mmap-opam__c__1.1.0-2b08f52e/lib/mmap/mmap.cmxa /root/.esy/3/i/opam__s__ocplib_endian-opam__c__1.1-a6f8da74/lib/ocplib-endian/ocplib_endian.cmxa /root/.esy/3/i/opam__s__ocplib_endian-opam__c__1.1-a6f8da74/lib/ocplib-endian/bigstring/ocplib_endian_bigstring.cmxa /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml/threads/threads.cmxa -I /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml /root/.esy/3/i/opam__s__lwt-opam__c__4.5.0-bec924d6/lib/lwt/unix/lwt_unix.cmxa -I /root/.esy/3/i/opam__s__lwt-opam__c__4.5.0-bec924d6/lib/lwt/unix /root/.esy/3/i/revery-28d1b3ef/lib/reason-sdl2/sdl2.cmxa -I /root/.esy/3/i/revery-28d1b3ef/lib/reason-sdl2 /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml/str.cmxa -I /root/.esy/3/i/ocaml-4.10.0-e4568572/lib/ocaml /root/.esy/3/i/opam__s__integers-opam__c__0.4.0-71ac34c4/lib/integers/integers.cmxa -I /root/.esy/3/i/opam__s__integers-opam__c__0.4.0-71ac34c4/lib/integers /root/.esy/3/i/opam__s__ctypes-opam__c__0.15.1-65c3a0a5/lib/ctypes/ctypes.cmxa -I /root/.esy/3/i/opam__s__ctypes-opam__c__0.15.1-65c3a0a5/lib/ctypes /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/wrapped/types/SkiaWrappedTypes.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/wrapped/c/skia_wrapped_c.cmxa -I /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/wrapped/c /root/.esy/3/i/opam__s__ctypes-opam__c__0.15.1-65c3a0a5/lib/ctypes/cstubs.cmxa -I /root/.esy/3/i/opam__s__ctypes-opam__c__0.15.1-65c3a0a5/lib/ctypes /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/wrapped/bindings/SkiaWrappedBindings.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/wrapped/SkiaWrapped.cmxa -I /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/wrapped /root/.esy/3/i/revery-28d1b3ef/lib/reason-skia/skia.cmxa /root/.esy/3/i/flex-2b453f37/lib/flex/Flex.cmxa /root/.esy/3/i/opam__s__astring-opam__c__0.8.5-7fc5c6d0/lib/astring/astring.cmxa /root/.esy/3/i/opam__s__fpath-opam__c__0.7.3-8c83030a/lib/fpath/fpath.cmxa /root/.esy/3/i/rench-a465bdcf/lib/Rench/Rench.cmxa -I /root/.esy/3/i/rench-a465bdcf/lib/Rench /root/.esy/3/i/opam__s__re-opam__c__1.9.0-55ce3a29/lib/re/re.cmxa /root/.esy/3/i/opam__s__psq-opam__c__0.2.0-b6e40ed7/lib/psq/psq.cmxa /root/.esy/3/i/opam__s__lru-5a5af5f1/lib/lru/lru.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Native/Revery_Native.cmxa -I /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Native /root/.esy/3/i/opam__s__react-opam__c__1.2.1-a898a9e6/lib/react/react.cmxa /root/.esy/3/i/opam__s__uucp-opam__c__13.0.0-f2691b32/lib/uucp/uucp.cmxa /root/.esy/3/i/opam__s__uutf-opam__c__1.0.2-e0c0aa99/lib/uutf/uutf.cmxa /root/.esy/3/i/opam__s__camomile-opam__c__1.0.2-56397dc6/lib/camomile/default_config/camomileDefaultConfig.cmxa /root/.esy/3/i/opam__s__camomile-opam__c__1.0.2-56397dc6/lib/camomile/library/camomileLibrary.cmxa /root/.esy/3/i/opam__s__camomile-opam__c__1.0.2-56397dc6/lib/camomile/lib_default/camomileLibraryDefault.cmxa /root/.esy/3/i/opam__s__camomile-opam__c__1.0.2-56397dc6/lib/camomile/dyn/camomileLibraryDyn.cmxa /root/.esy/3/i/opam__s__camomile-opam__c__1.0.2-56397dc6/lib/camomile/camomile_yuge.cmxa /root/.esy/3/i/opam__s__charinfo__width-opam__c__1.1.0-52f83714/lib/charInfo_width/charInfo_width.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/zed/Revery_Zed.cmxa /root/.esy/3/i/opam__s__stdlib_shims-opam__c__0.1.0-7f2b1f9f/lib/stdlib-shims/stdlib_shims.cmxa /root/.esy/3/i/opam__s__fmt-opam__c__0.8.9-e6df8ac9/lib/fmt/fmt.cmxa /root/.esy/3/i/opam__s__fmt-opam__c__0.8.9-e6df8ac9/lib/fmt/fmt_tty.cmxa /root/.esy/3/i/opam__s__logs-opam__c__0.7.0-19f5ca51/lib/logs/logs.cmxa /root/.esy/3/i/opam__s__logs-opam__c__0.7.0-19f5ca51/lib/logs/logs_fmt.cmxa /root/.esy/3/i/revery__s__timber-2.0.0-937d6414/lib/timber/Timber.cmxa -I /root/.esy/3/i/revery__s__timber-2.0.0-937d6414/lib/timber /root/.esy/3/i/revery-28d1b3ef/lib/Revery/text-wrap/Revery_TextWrap.cmxa /root/.esy/3/i/opam__s__ppx__deriving-opam__c__4.5-08cdf1ec/lib/ppx_deriving/runtime/ppx_deriving_runtime.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Core/Revery_Core.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/reason-harfbuzz/harfbuzz.cmxa -I /root/.esy/3/i/revery-28d1b3ef/lib/reason-harfbuzz /root/.esy/3/i/rebez-a235f382/lib/rebez/lib/Rebez.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Math/Revery_Math.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Font/Revery_Font.cmxa /root/.esy/3/i/brisk__s__brisk_reconciler-9f67378f/lib/brisk-reconciler/brisk_reconciler.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Draw/Revery_Draw.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/UI/Revery_UI.cmxa /root/.esy/3/i/opam__s__omd-e1ec5920/lib/omd/omd.cmxa /root/.esy/3/i/opam__s__rresult-opam__c__0.6.0-b3064790/lib/rresult/rresult.cmxa /root/.esy/3/i/opam__s__bos-opam__c__0.2.0-17320b34/lib/bos/bos.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/IO/Revery_IO.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/UI_Primitives/Revery_UI_Primitives.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/UI_Hooks/Revery_UI_Hooks.cmxa /root/.esy/3/i/opam__s__markup-opam__c__0.8.2-40b68e17/lib/markup/markup.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/SVG/Revery_SVG.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/UI_Components/Revery_UI_Components.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Utility/Revery_Utility.cmxa /root/.esy/3/i/revery-28d1b3ef/lib/Revery/Revery.cmxa src/lib/ReveryTerminal.cmxa src/pty/Pty.cmxa -I src/pty src/bin/.App.eobjs/native/terminal.cmx src/bin/.App.eobjs/native/model.cmx src/bin/.App.eobjs/native/app.cmx)
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ft_face_create'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_glib_script_from_script'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgtk-3.so: undefined reference to `hb_ft_font_create'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_glib_script_to_script'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgtk-3.so: undefined reference to `hb_ft_font_set_funcs'
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'refmterr' 'dune' 'build' '-p' 'revery-terminal' (exited with 1)
    esy-build-package: exiting with errors above...

  building revery-terminal@github:revery-ui/revery-terminal#a9cb168
esy: exiting due to errors above
adwhit commented 3 years ago

FYI I'm getting this too, on stock Ubuntu 19.10

enieber commented 3 years ago

after I run again with sudo it worked for me...

bryphe commented 3 years ago

revery-terminal is no longer a dependency with https://github.com/onivim/oni2/pull/3555