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

Not building on linux ubuntu 20.04, linker missing harfbuzz references #1995

Closed
MichaelBelousov opened this issue Jun 24, 2020 · 3 comments
Closed
Labels
A-technical Area: Technical issues, like platform support and issues that don't affect most users directly bug Something isn't working

Comments

@MichaelBelousov
Copy link
Contributor

MichaelBelousov commented Jun 24, 2020

Failing to build on Ubuntu 20.04 after following build instructions. Seems to be undefined libharfbuzz references while linking.
Output on esy bootstrap which is the failing step:

info building revery@github:revery-ui/revery#464c5b7@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: revery@github:revery-ui/revery#464c5b7
    # esy-build-package: pwd: /home/mike/.esy/source/i/revery__3e8a6baf
    # esy-build-package: running: 'dune' 'build' '-p' 'font-manager,harfbuzz,skia,Revery' '-j4'
        discover src/reason-sdl2/c_flags.sexp,src/reason-sdl2/c_library_flags.sexp,src/reason-sdl2/cxx_flags.sexp,src/reason-sdl2/flags.sexp
    SDL2 Library Folder Path: /home/mike/.esy/3_____________________________________________________________________/i/esy_sdl2-2.0.10008-c1b32b3d/lib
             gcc src/reason-skia/wrapped/c/c_stubs.o
    c_stubs.c: In function 'reason_skia_make_sdl2_interface':
    c_stubs.c:30:53: warning: passing argument 2 of 'gr_glinterface_assemble_gl_interface' from incompatible pointer type [-Wincompatible-pointer-types]
       30 |             gr_glinterface_assemble_gl_interface(0, reason_skia_sdl2_get);
          |                                                     ^~~~~~~~~~~~~~~~~~~~
          |                                                     |
          |                                                     void * (*)(void *, const char *)
    In file included from c_stubs.h:1,
                     from c_stubs.c:6:
    /home/mike/.esy/3_____________________________________________________________________/i/esy_skia-60154dfe/include/c/gr_context.h:40:34: note: expected 'gr_gl_get_proc' {aka 'void (* (*)(void *, const char *))(void)'} but argument is of type 'void * (*)(void *, const char *)'
       40 | SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gl_interface(void* ctx, gr_gl_get_proc get);
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    c_stubs.c:30:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       30 |             gr_glinterface_assemble_gl_interface(0, reason_skia_sdl2_get);
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          ocamlc src/reason-skia/wrapped/bindings/.SkiaWrappedBindings.objs/byte/skiaWrappedBindings__Skia_generated_type_stubs.{cmi,cmo,cmt}
    File "src/reason-skia/wrapped/bindings/skia_generated_type_stubs.ml", line 91, characters 4-63:
    91 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fMaxCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11: this match case is unused.
    File "src/reason-skia/wrapped/bindings/skia_generated_type_stubs.ml", line 94, characters 4-63:
    94 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fAvgCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11: this match case is unused.
    File "src/reason-skia/wrapped/bindings/skia_generated_type_stubs.ml", line 155, characters 4-78:
    155 |   | Ctypes_static.Primitive Cstubs_internals.Int64_t, "RGB_V_SK_PIXELGEOMETRY" ->
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11: this match case is unused.
        ocamlopt src/reason-skia/wrapped/bindings/.SkiaWrappedBindings.objs/native/skiaWrappedBindings__Skia_generated_type_stubs.{cmx,o}
    File "src/reason-skia/wrapped/bindings/skia_generated_type_stubs.ml", line 91, characters 4-63:
    91 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fMaxCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11: this match case is unused.
    File "src/reason-skia/wrapped/bindings/skia_generated_type_stubs.ml", line 94, characters 4-63:
    94 |   | Struct ({ tag = "sk_fontmetrics_t"} as s'), "fAvgCharWidth" ->
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11: this match case is unused.
    File "src/reason-skia/wrapped/bindings/skia_generated_type_stubs.ml", line 155, characters 4-78:
    155 |   | Ctypes_static.Primitive Cstubs_internals.Int64_t, "RGB_V_SK_PIXELGEOMETRY" ->
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Warning 11: this match case is unused.
          ocamlc src/reason-skia/wrapped/lib/.SkiaWrapped.objs/byte/skiaWrapped__Skia_generated_stubs.{cmi,cmo,cmt}
    File "src/reason-skia/wrapped/lib/skia_generated_stubs.ml", lines 1514-1515, characters 2-26:
    1514 | ..Function (CI.Pointer _, Returns (CI.Primitive CI.Bool)),
    1515 |   "sk_paint_is_autohinted"...
    Warning 11: this match case is unused.
        ocamlopt src/reason-skia/wrapped/lib/.SkiaWrapped.objs/native/skiaWrapped__Skia_generated_stubs.{cmx,o}
    File "src/reason-skia/wrapped/lib/skia_generated_stubs.ml", lines 1514-1515, characters 2-26:
    1514 | ..Function (CI.Pointer _, Returns (CI.Primitive CI.Bool)),
    1515 |   "sk_paint_is_autohinted"...
    Warning 11: this match case is unused.
          ocamlc src/reason-skia/wrapped/lib/skia_generated_stubs.o
    skia_generated_stubs.c: In function 'skia_wrapped_stub_6_sk_data_get_data':
    skia_generated_stubs.c:50:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       50 |    void* x18 = sk_data_get_data(x17);
          |                ^~~~~~~~~~~~~~~~
    skia_generated_stubs.c: In function 'skia_wrapped_stub_12_sk_typeface_open_stream':
    skia_generated_stubs.c:94:23: warning: initialization of 'sk_stream_t *' {aka 'struct sk_stream_t *'} from incompatible pointer type 'sk_stream_asset_t *' {aka 'struct sk_stream_asset_t *'} [-Wincompatible-pointer-types]
       94 |    sk_stream_t* x58 = sk_typeface_open_stream(x56, x57);
          |                       ^~~~~~~~~~~~~~~~~~~~~~~
    skia_generated_stubs.c: In function 'skia_wrapped_stub_110_gr_glinterface_create_native_interface':
    skia_generated_stubs.c:1027:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     1027 |    gr_glinterface_t* x976 = gr_glinterface_create_native_interface();
          |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    skia_generated_stubs.c: In function 'skia_wrapped_stub_149_sk_surface_get_props':
    skia_generated_stubs.c:1451:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     1451 |    sk_surfaceprops_t* x1347 = sk_surface_get_props(x1346);
          |                               ^~~~~~~~~~~~~~~~~~~~
        ocamlopt src/reason-skia/skia.{a,cmxa}
    + ar rc 'src/reason-skia/skia.a' 'src/reason-skia/.skia.objs/native/skia.o'
    + ranlib 'src/reason-skia/skia.a'
        ocamlopt examples/Examples.exe (exit 2)
    (cd /home/mike/.esy/3/b/revery-6a1f19cd/default && /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/bin/ocamlopt.opt -w -40 -g -o examples/Examples.exe examples/stubs/ExampleStubs.cmxa -I examples/stubs /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/unix.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/bigarray.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml /home/mike/.esy/3_____________________________________________________________________/i/opam__s__integers-opam__c__0.4.0-da44b94e/lib/integers/integers.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/opam__s__integers-opam__c__0.4.0-da44b94e/lib/integers /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-7e62634d/lib/ctypes/ctypes.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-7e62634d/lib/ctypes src/reason-skia/wrapped/types/SkiaWrappedTypes.cmxa src/reason-sdl2/sdl2.cmxa -I src/reason-sdl2 src/reason-skia/wrapped/c/skia_wrapped_c.cmxa -I src/reason-skia/wrapped/c /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/str.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-7e62634d/lib/ctypes/cstubs.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-7e62634d/lib/ctypes src/reason-skia/wrapped/bindings/SkiaWrappedBindings.cmxa src/reason-skia/wrapped/lib/SkiaWrapped.cmxa -I src/reason-skia/wrapped/lib src/reason-skia/skia.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native__s__console-0.0.3-f88326ee/lib/console/lib/Console.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/reason_native__s__console-0.0.3-f88326ee/lib/console/lib /home/mike/.esy/3_____________________________________________________________________/i/opam__s__result-opam__c__1.5-8a1ac4a1/lib/result/result.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-7793c409/lib/lwt/lwt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__mmap-opam__c__1.1.0-a087c5b1/lib/mmap/mmap.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ocplib_endian-opam__c__1.1-cd06b8a5/lib/ocplib-endian/ocplib_endian.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ocplib_endian-opam__c__1.1-cd06b8a5/lib/ocplib-endian/bigstring/ocplib_endian_bigstring.cmxa /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/threads/threads.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml /home/mike/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-7793c409/lib/lwt/unix/lwt_unix.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-7793c409/lib/lwt/unix /home/mike/.esy/3_____________________________________________________________________/i/flex-1.2.3-ebdef918/lib/flex/Flex.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__astring-opam__c__0.8.4-afa1f9c9/lib/astring/astring.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__fpath-opam__c__0.7.2-4faf05d0/lib/fpath/fpath.cmxa /home/mike/.esy/3_____________________________________________________________________/i/rench-341a0d30/lib/Rench/Rench.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/rench-341a0d30/lib/Rench /home/mike/.esy/3_____________________________________________________________________/i/opam__s__re-opam__c__1.9.0-2f55db19/lib/re/re.cmxa src/Native/Revery_Native.cmxa -I src/Native /home/mike/.esy/3_____________________________________________________________________/i/revery_text_wrap-3bcb9cd7/lib/revery-text-wrap/wrap.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__stdlib_shims-opam__c__0.1.0-75120da9/lib/stdlib-shims/stdlib_shims.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__fmt-opam__c__0.8.8-bf39cec5/lib/fmt/fmt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__fmt-opam__c__0.8.8-bf39cec5/lib/fmt/fmt_tty.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__logs-opam__c__0.7.0-fa79e5f1/lib/logs/logs.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__logs-opam__c__0.7.0-fa79e5f1/lib/logs/logs_fmt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/glennsl__s__timber-1.2.0-23e9b8b2/lib/timber/Timber.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/glennsl__s__timber-1.2.0-23e9b8b2/lib/timber /home/mike/.esy/3_____________________________________________________________________/i/opam__s__ppx__deriving-opam__c__4.5-5031ce76/lib/ppx_deriving/runtime/ppx_deriving_runtime.cmxa src/Core/Revery_Core.cmxa src/reason-harfbuzz/harfbuzz.cmxa -I src/reason-harfbuzz src/reason-font-manager/FontManager.cmxa -I src/reason-font-manager /home/mike/.esy/3_____________________________________________________________________/i/opam__s__psq-opam__c__0.2.0-bed38bf3/lib/psq/psq.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__lru-752b5053/lib/lru/lru.cmxa /home/mike/.esy/3_____________________________________________________________________/i/rebez-2737dfd3/lib/rebez/lib/Rebez.cmxa src/Math/Revery_Math.cmxa src/Font/Revery_Font.cmxa /home/mike/.esy/3_____________________________________________________________________/i/brisk__s__brisk_reconciler-745ea6c2/lib/brisk-reconciler/brisk_reconciler.cmxa src/Draw/Revery_Draw.cmxa src/UI/Revery_UI.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__omd-e1a4fbc7/lib/omd/omd.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__rresult-opam__c__0.6.0-2b24f49b/lib/rresult/rresult.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__bos-opam__c__0.2.0-6c479f0a/lib/bos/bos.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__re-opam__c__1.9.0-2f55db19/lib/re/posix/re_posix.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__stringext-opam__c__1.6.0-8c874f29/lib/stringext/stringext.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__uri-opam__c__3.1.0-370b61fe/lib/uri/uri.cmxa /home/mike/.esy/3_____________________________________________________________________/i/fetch_core-0.1.0-alpha.5-b8abac82/lib/fetch-core/Fetch_Core.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__bigarray_compat-opam__c__1.0.0-0ea34aad/lib/bigarray-compat/bigarray_compat.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__bigstringaf-opam__c__0.6.1-2acb40bf/lib/bigstringaf/bigstringaf.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/opam__s__bigstringaf-opam__c__0.6.1-2acb40bf/lib/bigstringaf /home/mike/.esy/3_____________________________________________________________________/i/opam__s__faraday-opam__c__0.7.1-38826e0c/lib/faraday/faraday.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__faraday_lwt-opam__c__0.7.1-9260fee6/lib/faraday-lwt/faraday_lwt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__faraday_lwt_unix-opam__c__0.7.1-baf17acb/lib/faraday-lwt-unix/faraday_lwt_unix.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__angstrom-opam__c__0.14.1-caab0048/lib/angstrom/angstrom.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__base64-opam__c__3.4.0-f10d643e/lib/base64/base64.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__h1-1.2.1001-639f93e4/lib/httpaf/httpaf.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__hpack-opam__c__0.2.0-02b7f615/lib/hpack/hpack.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__h2-0.6.1001-d867a494/lib/h2/h2.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__gluten-0.2.1-b7cc60c7/lib/gluten/gluten.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__gluten_lwt-0.2.1-74ee69b0/lib/gluten-lwt/gluten_lwt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__h2_lwt-0.6.1001-cbb97996/lib/h2-lwt/h2_lwt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__ssl-0.5.9007-9d2d332e/lib/ssl/ssl.cmxa -I /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__ssl-0.5.9007-9d2d332e/lib/ssl /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__lwt__ssl-1.1.3005-552d6bc9/lib/lwt_ssl/lwt_ssl.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__gluten_lwt_unix-0.2.1-73a15b08/lib/gluten-lwt-unix/gluten_lwt_unix.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__h2_lwt_unix-0.6.1001-33df76e2/lib/h2-lwt-unix/h2_lwt_unix.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__logs-opam__c__0.7.0-fa79e5f1/lib/logs/logs_lwt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__magic_mime-opam__c__1.1.2-4f54d1ff/lib/magic-mime/magic_mime_library.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__h1_lwt-1.2.1001-c870da9b/lib/httpaf-lwt/httpaf_lwt.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__h1_lwt_unix-1.2.1001-fed00fe3/lib/httpaf-lwt-unix/httpaf_lwt_unix.cmxa /home/mike/.esy/3_____________________________________________________________________/i/reason_native_web__s__piaf-1.3.1000-4f5795c7/lib/piaf/piaf.cmxa /home/mike/.esy/3_____________________________________________________________________/i/fetch_native_lwt-0.1.0-alpha.5-52d2a137/lib/fetch-native-lwt/Fetch.cmxa src/IO/Revery_IO.cmxa src/UI_Primitives/Revery_UI_Primitives.cmxa src/UI_Hooks/Revery_UI_Hooks.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__uutf-opam__c__1.0.2-7fa687c5/lib/uutf/uutf.cmxa /home/mike/.esy/3_____________________________________________________________________/i/opam__s__markup-opam__c__0.8.2-3056c047/lib/markup/markup.cmxa src/SVG/Revery_SVG.cmxa src/UI_Components/Revery_UI_Components.cmxa src/Utility/Revery_Utility.cmxa src/Revery.cmxa src/Lwt/Revery_Lwt.cmxa examples/.Examples.eobjs/native/analogClock.cmx examples/.Examples.eobjs/native/border.cmx examples/.Examples.eobjs/native/boxshadow.cmx examples/.Examples.eobjs/native/calculator.cmx examples/.Examples.eobjs/native/canQuitExample.cmx examples/.Examples.eobjs/native/canvasExample.cmx examples/.Examples.eobjs/native/checkboxExample.cmx examples/.Examples.eobjs/native/defaultButton.cmx examples/.Examples.eobjs/native/dropdownExample.cmx examples/.Examples.eobjs/native/fileDragAndDrop.cmx examples/.Examples.eobjs/native/flexbox.cmx examples/.Examples.eobjs/native/focusExample.cmx examples/.Examples.eobjs/native/fontsExample.cmx examples/.Examples.eobjs/native/gameOfLife.cmx examples/.Examples.eobjs/native/hello.cmx examples/.Examples.eobjs/native/hitTests.cmx examples/.Examples.eobjs/native/hoverExample.cmx examples/.Examples.eobjs/native/inputExample.cmx examples/.Examples.eobjs/native/markdownExample.cmx examples/.Examples.eobjs/native/nativeFileExample.cmx examples/.Examples.eobjs/native/slider.cmx examples/.Examples.eobjs/native/nativeIconExample.cmx examples/.Examples.eobjs/native/nativeNotificationExample.cmx examples/.Examples.eobjs/native/nestedClickable.cmx examples/.Examples.eobjs/native/radioButtonExample.cmx examples/.Examples.eobjs/native/richTextExample.cmx examples/.Examples.eobjs/native/sVGExample.cmx examples/.Examples.eobjs/native/screenCapture.cmx examples/.Examples.eobjs/native/scrollView.cmx examples/.Examples.eobjs/native/springExample.cmx examples/.Examples.eobjs/native/stopwatch.cmx examples/.Examples.eobjs/native/textExample.cmx examples/.Examples.eobjs/native/todoExample.cmx examples/.Examples.eobjs/native/treeView.cmx examples/.Examples.eobjs/native/uRLFileOpen.cmx examples/.Examples.eobjs/native/windowControl.cmx examples/.Examples.eobjs/native/zoomExample.cmx examples/.Examples.eobjs/native/examples.cmx)
    /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_tags_from_script_and_language'
    /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_metrics_get_position'
    /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_layout_script_select_language'
    /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_var_named_instance_get_design_coords'
    /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_var_get_axis_infos'
    /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libpango-1.0.so: undefined reference to `hb_buffer_set_invisible_glyph'
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'dune' 'build' '-p' 'font-manager,harfbuzz,skia,Revery' '-j4' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building revery@github:revery-ui/revery#464c5b7
esy: exiting due to errors above

Output of apt info libharfbuzz-dev

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Package: libharfbuzz-dev
Version: 2.6.4-1ubuntu4
Priority: optional
Section: libdevel
Source: harfbuzz
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: أحمد المحمودي (Ahmed El-Mahmoudy) <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,894 kB
Depends: libharfbuzz0b (= 2.6.4-1ubuntu4), libharfbuzz-icu0 (= 2.6.4-1ubuntu4), libharfbuzz-gobject0 (= 2.6.4-1ubuntu4), gir1.2-harfbuzz-0.0 (= 2.6.4-1ubuntu4), libglib2.0-dev (>= 2.19.1), libgraphite2-dev, libicu-dev
Homepage: https://www.freedesktop.org/wiki/Software/HarfBuzz
Download-Size: 526 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
Description: Development files for OpenType text shaping engine
 HarfBuzz is an implementation of the OpenType Layout engine (aka layout
 engine) and the script-specific logic (aka shaping engine).
 .
 This package contains the header files and static libraries for the
 HarfBuzz library.
@bryphe bryphe added A-technical Area: Technical issues, like platform support and issues that don't affect most users directly bug Something isn't working labels Jun 24, 2020
@zbaylin
Copy link
Member

zbaylin commented Jun 24, 2020

See if this fix works for you, it's worked for me in the past! revery-ui/revery#666 (comment)

@MichaelBelousov
Copy link
Contributor Author

MichaelBelousov commented Jun 24, 2020

I tried the other fix in that issue, should have tried that one. Also it took me much too long to realize package.json was the package description file for esy 😄 , I'm new to esy. I'll report back if it worked.

@MichaelBelousov
Copy link
Contributor Author

yup that worked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-technical Area: Technical issues, like platform support and issues that don't affect most users directly bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants