Giter Site home page Giter Site logo

revery-quick-start's Introduction

Build Status

Revery Quick Start

This is a minimal Revery application to get you started.

Prerequisites

See the requirements for building Revery

Getting started

# Clone the repository
git clone https://github.com/revery-ui/revery-quick-start

# Go into the repository
cd revery-quick-start

# Install dependencies
esy install

# Build dependencies
esy build

NOTE: The first build will take a while - building the OCaml compiler and dependencies takes time! Subsequent builds, though, should be very fast.

Once built, the application binary will be in the _build/install/default/bin - you can run it like:

  • _build/install/default/bin/App

or using esy with the script specified in package.json:

  • esy run

What are all these files?

The most important files are:

A Revery application also needs the following files:

  • package.json - esy configuration - lists the Reason/OCaml dependencies.
  • dune / dune-project - build configuration files used by Dune.
  • .opam - metadata used by the build system.

Releasing

To create packages for distribution, follow these steps:

  • npm install -g revery-packager

From the revery-quick-start folder, run:

  • revery-packager

Once complete, there will be application packages available in the _release folder.

Resources

Next steps

Here's a few challenges to see if you've got the basics:

  • Add an Image component
  • Respond to user input
  • Create a frameless window

License

MIT License

revery-quick-start's People

Contributors

akinsho avatar bryphe avatar chinwobble avatar eschaefer avatar exced avatar fakenickels avatar glennsl avatar joprice avatar lessp avatar wontheone1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

revery-quick-start's Issues

Installation is broken on Mac (BigSur 1.1 20C69)

image

Full error
   info building revery@github:revery-ui/revery#ac848c4@d41d8cd9                                                                                                                                                                        [165/613]
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: revery@github:revery-ui/revery#ac848c4
    # esy-build-package: pwd: /Users/fakenickels/.esy/source/i/revery__5c5d55b8
    # esy-build-package: running: 'dune' 'build' '-p' 'reason-harfbuzz,reason-skia,reason-sdl2,Revery'
        discover packages/reason-sdl2/src/c_flags.sexp,packages/reason-sdl2/src/c_library_flags.sexp,packages/reason-sdl2/src/cxx_flags.sexp,packages/reason-sdl2/src/flags.sexp
    SDL2 Library Folder Path: /Users/fakenickels/.esy/3_____________________________________________________________/i/esy_sdl2-2.0.10008-de4f481b/lib
             gcc packages/reason-skia/src/wrapped/c/c_stubs.o
    c_stubs.c:30:53: warning: incompatible pointer types passing 'void *(void *, const char *)' to parameter of type 'gr_gl_get_proc' (aka 'void (*(*)(void *, const char *))(void)') [-Wincompatible-pointer-types]
                gr_glinterface_assemble_gl_interface(0, reason_skia_sdl2_get);
                                                        ^~~~~~~~~~~~~~~~~~~~
    /Users/fakenickels/.esy/3_____________________________________________________________/i/esy_skia-d35022e2/include/c/gr_context.h:40:97: note: passing argument to parameter 'get' here
    SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gl_interface(void* ctx, gr_gl_get_proc get);
                                                                                                    ^
    c_stubs.c:29:23: warning: initializing 'gr_glinterface_t *' (aka 'struct gr_glinterface_t *') with an expression of type 'const gr_glinterface_t *' (aka 'const struct gr_glinterface_t *') discards qualifiers [-Wincompatible-pointer-ty
pes-discards-qualifiers]
        gr_glinterface_t *interface =
                          ^
    c_stubs.c:36:55: warning: incompatible pointer types passing 'void *(void *, const char *)' to parameter of type 'gr_gl_get_proc' (aka 'void (*(*)(void *, const char *))(void)') [-Wincompatible-pointer-types]
                gr_glinterface_assemble_gles_interface(0, reason_skia_sdl2_get);
                                                          ^~~~~~~~~~~~~~~~~~~~
    /Users/fakenickels/.esy/3_____________________________________________________________/i/esy_skia-d35022e2/include/c/gr_context.h:41:99: note: passing argument to parameter 'get' here
    SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gles_interface(void* ctx, gr_gl_get_proc get);
                                                                                                      ^
    c_stubs.c:35:23: warning: initializing 'gr_glinterface_t *' (aka 'struct gr_glinterface_t *') with an expression of type 'const gr_glinterface_t *' (aka 'const struct gr_glinterface_t *') discards qualifiers [-Wincompatible-pointer-ty
pes-discards-qualifiers]                                                                                                                                                                                                                              gr_glinterface_t *interface =
                          ^
    4 warnings generated.
          ocamlc src/Native/ReveryAppDelegate.o (exit 2)
    (cd /Users/fakenickels/.esy/3/b/revery-bd600809/default/src/Native && /Users/fakenickels/.esy/3_____________________________________________________________/i/ocaml-4.9.1000-c0c8387c/bin/ocamlc.opt -g -I /Users/fakenickels/.esy/3_____
________________________________________________________/i/opam__s__lru-e58036fa/lib/lru -I /Users/fakenickels/.esy/3_____________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-9cfc7df4/lib/lwt -I /Users/fa
kenickels/.esy/3_____________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.1-ad96dfd8/lib/bytes -I /Users/fakenickels/.esy/3_____________________________________________________________/i/opam__s__psq-
opam__c__0.2.0-d409d938/lib/psq -I /Users/fakenickels/.esy/3_____________________________________________________________/i/opam__s__result-opam__c__1.5-ce40ece0/lib/result -I /Users/fakenickels/.esy/3_____________________________________
________________________/i/opam__s__seq-opam__c__base-15764575/lib/seq -I ../../packages/reason-sdl2/src -ccopt -O2 -ccopt -fno-strict-aliasing -ccopt -fwrapv -ccopt -Wall -ccopt -Wextra -ccopt -Werror -ccopt -I -ccopt . -ccopt -x -ccopt
objective-c -ccopt -g -o ReveryAppDelegate.o ReveryAppDelegate.c)                                                                                                                                                                                 ReveryAppDelegate.c:48:33: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
    - (void)userNotificationCenter:(NSUserNotificationCenter *)center
                                    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    ReveryAppDelegate.c:49:30: error: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        didActivateNotification:(NSUserNotification *)notification {
                                 ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked de
precated here
    @interface NSUserNotification : NSObject <NSCopying> {
               ^
    ReveryAppDelegate.c:59:33: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
    - (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center
                                    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly ma
rked deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been expl[111/613]
rked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    ReveryAppDelegate.c:60:32: error: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        shouldPresentNotification:(NSUserNotification *)notification {
                                   ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked de
precated here
    @interface NSUserNotification : NSObject <NSCopying> {
               ^
    ReveryAppDelegate.c:42:32: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];
                                   ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly ma
rked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    5 errors generated.
          ocamlc src/Native/notification_cocoa.o (exit 2)
    (cd /Users/fakenickels/.esy/3/b/revery-bd600809/default/src/Native && /Users/fakenickels/.esy/3_____________________________________________________________/i/ocaml-4.9.1000-c0c8387c/bin/ocamlc.opt -g -I /Users/fakenickels/.esy/3_____
________________________________________________________/i/opam__s__lru-e58036fa/lib/lru -I /Users/fakenickels/.esy/3_____________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-9cfc7df4/lib/lwt -I /Users/fa
kenickels/.esy/3_____________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.1-ad96dfd8/lib/bytes -I /Users/fakenickels/.esy/3_____________________________________________________________/i/opam__s__psq-
opam__c__0.2.0-d409d938/lib/psq -I /Users/fakenickels/.esy/3_____________________________________________________________/i/opam__s__result-opam__c__1.5-ce40ece0/lib/result -I /Users/fakenickels/.esy/3_____________________________________
________________________/i/opam__s__seq-opam__c__base-15764575/lib/seq -I ../../packages/reason-sdl2/src -ccopt -O2 -ccopt -fno-strict-aliasing -ccopt -fwrapv -ccopt -Wall -ccopt -Wextra -ccopt -Werror -ccopt -I -ccopt . -ccopt -x -ccopt
objective-c -ccopt -g -o notification_cocoa.o notification_cocoa.c)
    notification_cocoa.c:10:5: error: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        NSUserNotification *notification = [[NSUserNotification alloc] autorelease];
        ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked de
precated here
    @interface NSUserNotification : NSObject <NSCopying> {
               ^
    notification_cocoa.c:10:61: error: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        NSUserNotification *notification = [[NSUserNotification alloc] autorelease];
                                                                ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked de
precated here
    @interface NSUserNotification : NSObject <NSCopying> {
               ^
    notification_cocoa.c:11:5: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        NSUserNotificationCenter *notificationCenter =
        ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly ma
rked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    notification_cocoa.c:12:35: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
            [NSUserNotificationCenter defaultUserNotificationCenter];
                                      ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly ma
rked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    notification_cocoa.c:26:46: error: 'NSUserNotificationDefaultSoundName' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declara
tions]
        [notification setSoundName:mute ? NULL : NSUserNotificationDefaultSoundName];
                                             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:115:36: note: 'NSUserNotificationDefaultSoundName' has been exp
licitly marked deprecated here
    FOUNDATION_EXPORT NSString * const NSUserNotificationDefaultSoundName API_DEPRECATED("All NSUserNotifications API should be replaced with UserNotifications.frameworks API", macos(10.8, 11.0)) API_UNAVAILABLE(ios, watchos, tvos);
                                       ^
    notification_cocoa.c:36:5: error: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        NSUserNotification *notification = [[NSUserNotification alloc] autorelease];
        ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked de
precated here
    @interface NSUserNotification : NSObject <NSCopying> {
               ^
    notification_cocoa.c:36:61: error: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        NSUserNotification *notification = [[NSUserNotification alloc] autorelease];
                                                                ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked de
precated here
    @interface NSUserNotification : NSObject <NSCopying> {
               ^
    notification_cocoa.c:37:5: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
        NSUserNotificationCenter *notificationCenter =
        ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly ma
rked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    notification_cocoa.c:38:35: error: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declarations]
            [NSUserNotificationCenter defaultUserNotificationCenter];
                                      ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly ma
rked deprecated here
    @interface NSUserNotificationCenter : NSObject {
               ^
    notification_cocoa.c:52:46: error: 'NSUserNotificationDefaultSoundName' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Werror,-Wdeprecated-declara
tions]
        [notification setSoundName:mute ? NULL : NSUserNotificationDefaultSoundName];
                                                 ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:115:36: note: 'NSUserNotificationDefaultSoundName' has been exp
licitly marked deprecated here
    FOUNDATION_EXPORT NSString * const NSUserNotificationDefaultSoundName API_DEPRECATED("All NSUserNotifications API should be replaced with UserNotifications.frameworks API", macos(10.8, 11.0)) API_UNAVAILABLE(ios, watchos, tvos);
                                       ^
    10 errors generated.
          ocamlc packages/reason-skia/src/wrapped/bindings/.SkiaWrappedBindings.objs/byte/skiaWrappedBindings__Skia_generated_type_stubs.{cmi,cmo,cmt}
    File "packages/reason-skia/src/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 "packages/reason-skia/src/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 "packages/reason-skia/src/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 packages/reason-skia/src/wrapped/bindings/.SkiaWrappedBindings.objs/native/skiaWrappedBindings__Skia_generated_type_stubs.{cmx,o}
 File "packages/reason-skia/src/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 "packages/reason-skia/src/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 "packages/reason-skia/src/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 packages/reason-skia/src/wrapped/lib/.SkiaWrapped.objs/byte/skiaWrapped__Skia_generated_stubs.{cmi,cmo,cmt}
    File "packages/reason-skia/src/wrapped/lib/skia_generated_stubs.ml", lines 1620-1621, characters 2-26:
    1620 | ..Function (CI.Pointer _, Returns (CI.Primitive CI.Bool)),
    1621 |   "sk_paint_is_autohinted"...
    Warning 11: this match case is unused.
          ocamlc packages/reason-skia/src/wrapped/lib/skia_generated_stubs.o
    skia_generated_stubs.c:51:10: warning: initializing 'void *' with an expression of type 'const void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
       void* x18 = sk_data_get_data(x17);
             ^     ~~~~~~~~~~~~~~~~~~~~~
    skia_generated_stubs.c:70:10: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
       char* x31 = sk_string_get_c_str(x30);
             ^     ~~~~~~~~~~~~~~~~~~~~~~~~
    skia_generated_stubs.c:149:17: warning: incompatible pointer types initializing 'sk_stream_t *' (aka 'struct sk_stream_t *') with an expression of type 'sk_stream_asset_t *' (aka 'struct sk_stream_asset_t *') [-Wincompatible-pointer-t
ypes]
       sk_stream_t* x85 = sk_typeface_open_stream(x83, x84);
                    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    skia_generated_stubs.c:187:62: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
       sk_fontmgr_match_family_style_character(x104, x105, x106, x107, x108,
                                                                 ^~~~
    /Users/fakenickels/.esy/3_____________________________________________________________/i/esy_skia-d35022e2/include/c/sk_typeface.h:49:140: note: passing argument to parameter 'bcp47' here
    SK_C_API sk_typeface_t* sk_fontmgr_match_family_style_character(sk_fontmgr_t*, const char* familyName, sk_fontstyle_t* style, const char** bcp47, int bcp47Count, int32_t character);
                                                                                                                                               ^
    skia_generated_stubs.c:1144:22: warning: initializing 'gr_glinterface_t *' (aka 'struct gr_glinterface_t *') with an expression of type 'const gr_glinterface_t *' (aka 'const struct gr_glinterface_t *') discards qualifiers [-Wincompat
ible-pointer-types-discards-qualifiers]
       gr_glinterface_t* x1042 = gr_glinterface_create_native_interface();
                         ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    skia_generated_stubs.c:1585:23: warning: initializing 'sk_surfaceprops_t *' (aka 'struct sk_surfaceprops_t *') with an expression of type 'const sk_surfaceprops_t *' (aka 'const struct sk_surfaceprops_t *') discards qualifiers [-Winco
mpatible-pointer-types-discards-qualifiers]
       sk_surfaceprops_t* x1430 = sk_surface_get_props(x1429);
                          ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6 warnings generated.
        ocamlopt packages/reason-skia/src/wrapped/lib/.SkiaWrapped.objs/native/skiaWrapped__Skia_generated_stubs.{cmx,o}
    File "packages/reason-skia/src/wrapped/lib/skia_generated_stubs.ml", lines 1620-1621, characters 2-26:
    1620 | ..Function (CI.Pointer _, Returns (CI.Primitive CI.Bool)),
    1621 |   "sk_paint_is_autohinted"...
    Warning 11: this match case is unused.
    error: command failed: 'dune' 'build' '-p' 'reason-harfbuzz,reason-skia,reason-sdl2,Revery' (exited with 1)
    esy-build-package: exiting with errors above...

  building revery@github:revery-ui/revery#ac848c4
esy: exiting due to errors above

Steps to reproduce

  1. git clone
  2. esy install

'esy build' fails on macOS 10.14.6

I followed install docs for revery and this repo but I get such error message after I run esy build (esy install finished without errors). Am I missing some additional packages?

esy build                                                                                                                                                                               [13:56:46]
info esy build 0.5.8 (using package.json)
info building @esy-ocaml/[email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @esy-ocaml/[email protected]
    # esy-build-package: pwd: /Users/i501633/.esy/source/i/esy_ocaml__s__reason__3.4.0__d55f0cf4
    # esy-build-package: running: 'dune' 'build' '-p' 'reason'
    File "src/generate/jbuild", line 1, characters 0-0:
    Warning: jbuild files are deprecated, please convert this file to a dune file instead.
    Note: You can use "dune upgrade" to convert your project to dune.
    File "src/reason-merlin/dune", line 6, characters 33-46:
    6 |  (libraries compiler-libs.common merlin_extend reason))
                                         ^^^^^^^^^^^^^
    Error: Library "merlin_extend" not found.
    Hint: try: dune external-lib-deps --missing -p reason @@default
          ocamlc src/reason-parser/.reason.objs/byte/reason_syntax_util.{cmi,cmti}
    File "src/reason-parser/reason_syntax_util.mli", line 39, characters 2-20:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 40, characters 19-39:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 40, characters 42-67:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 42, characters 36-61:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 45, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 45, characters 31-56:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 48, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 48, characters 31-56:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 51, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 51, characters 31-56:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 53, characters 33-53:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 56, characters 18-38:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 60, characters 6-26:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 60, characters 45-65:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 63, characters 2-29:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 64, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 64, characters 31-58:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 67, characters 2-29:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 68, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 68, characters 31-58:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 71, characters 2-29:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 72, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 72, characters 31-58:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 75, characters 2-30:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 76, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 76, characters 31-59:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 79, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 80, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 80, characters 31-56:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 83, characters 2-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 84, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 84, characters 31-64:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 87, characters 2-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 88, characters 2-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 88, characters 31-64:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 92, characters 19-37:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 98, characters 49-67:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 104, characters 29-47:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 110, characters 25-43:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 110, characters 47-65:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 112, characters 24-42:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.mli", line 112, characters 46-64:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          ocamlc src/reason-parser/.reason.objs/byte/reason_attributes.{cmi,cmo,cmt}
    File "src/reason-parser/reason_attributes.ml", line 1, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          ocamlc src/reason-parser/.reason.objs/byte/reason_heuristics.{cmi,cmo,cmt}
    File "src/reason-parser/reason_heuristics.ml", line 2, characters 11-28:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 18, characters 11-28:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 19, characters 11-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 89, characters 8-25:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 95, characters 8-25:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 99, characters 26-43:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 108, characters 11-28:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 126, characters 47-64:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          ocamlc src/reason-parser/.reason.objs/byte/reason_pprint_ast.{cmi,cmti}
    File "src/reason-parser/reason_pprint_ast.mli", line 1, characters 5-22:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          ocamlc src/reason-parser/.reason.objs/byte/reason_syntax_util.{cmo,cmt}
    File "src/reason-parser/reason_syntax_util.ml", line 18, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.ml", line 399, characters 11-18:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          ocamlc src/reason-parser/.reason.objs/byte/reason_oprint.{cmi,cmo,cmt}
    File "src/reason-parser/reason_oprint.ml", line 88, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
        ocamlopt src/reason-parser/.reason.objs/native/reason_attributes.{cmx,o}
    File "src/reason-parser/reason_attributes.ml", line 1, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
        ocamlopt src/reason-parser/.reason.objs/native/reason_heuristics.{cmx,o}
    File "src/reason-parser/reason_heuristics.ml", line 2, characters 11-28:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 18, characters 11-28:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 19, characters 11-27:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 89, characters 8-25:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 95, characters 8-25:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 99, characters 26-43:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 108, characters 11-28:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_heuristics.ml", line 126, characters 47-64:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
        ocamlopt src/reason-parser/.reason.objs/native/reason_syntax_util.{cmx,o}
    File "src/reason-parser/reason_syntax_util.ml", line 18, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_syntax_util.ml", line 399, characters 11-18:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
        ocamlopt src/reason-parser/.reason.objs/native/reason_oprint.{cmx,o}
    File "src/reason-parser/reason_oprint.ml", line 88, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
            bash src/reason-parser/reason_parser.messages
    Read 2397 sample input sentences and 2397 error messages.
          ocamlc src/reason-parser/.reason.objs/byte/reason_pprint_ast.{cmo,cmt}
    File "src/reason-parser/reason_pprint_ast.ml", line 51, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 295, characters 20-47:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 5074, characters 26-54:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 5076, characters 26-54:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 5099, characters 26-53:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          menhir src/reason-parser/reason_parser_message.ml
    Read 2397 sample input sentences and 2397 error messages.
          ocamlc src/reason-parser/.reason.objs/byte/reason_parser.{cmi,cmti}
    File "src/reason-parser/reason_parser.mli", line 137, characters 60-93:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 139, characters 67-100:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 141, characters 65-90:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 143, characters 68-96:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 145, characters 67-94:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 147, characters 61-88:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 149, characters 66-93:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 164, characters 36-69:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 166, characters 43-76:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 168, characters 41-66:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 170, characters 44-72:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 172, characters 43-70:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 174, characters 37-64:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_parser.mli", line 176, characters 42-69:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
        ocamlopt src/reason-parser/.reason.objs/native/reason_pprint_ast.{cmx,o}
    File "src/reason-parser/reason_pprint_ast.ml", line 51, characters 5-12:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 295, characters 20-47:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 5074, characters 26-54:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 5076, characters 26-54:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "src/reason-parser/reason_pprint_ast.ml", line 5099, characters 26-53:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
          ocamlc src/reason-parser/.reason.objs/byte/reason_parser.{cmo,cmt}
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
        ocamlopt src/reason-parser/.reason.objs/native/reason_parser.{cmx,o}
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1381, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1379, characters 7-40:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1387, characters 7-32:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1385, characters 7-35:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1383, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1377, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    File "reason_parser.mly", line 1375, characters 7-34:
    Warning 3: deprecated: module Ast_404
    Access modules via the Migrate_parsetree toplevel module. Use Migrate_parsetree.Ast_404 instead.
    error: command failed: 'dune' 'build' '-p' 'reason' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building @esy-ocaml/[email protected]
esy: exiting due to errors above

Dune build failing to load revery

When trying to build with dune build I get this error:

dune build
File "src/dune", line 6, characters 24-30:
6 |     (libraries bigarray Revery))
                            ^^^^^^
Error: Library "Revery" not found.
-> required by _build/default/src/App.exe
-> required by _build/install/default/bin/App
-> required by _build/default/App.install
-> required by alias install
-> required by alias default
File "src/dune", line 4, characters 21-41:
4 |     (preprocess (pps brisk-reconciler.ppx))
                         ^^^^^^^^^^^^^^^^^^^^
Error: Library "brisk-reconciler.ppx" not found.
-> required by _build/default/src/.merlin-conf/exe-App
-> required by _build/default/src/App.exe
-> required by _build/install/default/bin/App
-> required by _build/default/App.install
-> required by alias install
-> required by alias default

Error with esy-build

Hi,

I'm not able to build this.
Revery installation went fine, I ran the "examples" folder without any issues.
When i run esy build here, This is the lines I get at the end. I'm not pasting the whole thing here because it's big.

gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -fno-tree-vrp -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -DOCAML_STDLIB_DIR='"/home/kristijan/.esy/3________________________________________________________________/s/opam__s__ocaml_secondary_compiler-opam__c__4.08.1-1-08025e81/share/ocaml-secondary-compiler/lib"'  -o prims.o prims.c
    rm -f libcamlrun_pic.a && ar rc libcamlrun_pic.a  interp_bpic.o misc_bpic.o stacks_bpic.o fix_code_bpic.o startup_aux_bpic.o startup_byt_bpic.o freelist_bpic.o major_gc_bpic.o minor_gc_bpic.o memory_bpic.o alloc_bpic.o roots_byt_bpic.o globroots_bpic.o fail_byt_bpic.o signals_bpic.o signals_byt_bpic.o printexc_bpic.o backtrace_byt_bpic.o backtrace_bpic.o compare_bpic.o ints_bpic.o floats_bpic.o str_bpic.o array_bpic.o io_bpic.o extern_bpic.o intern_bpic.o hash_bpic.o sys_bpic.o meta_bpic.o parsing_bpic.o gc_ctrl_bpic.o md5_bpic.o obj_bpic.o lexing_bpic.o callback_bpic.o debugger_bpic.o weak_bpic.o compact_bpic.o finalise_bpic.o custom_bpic.o dynlink_bpic.o spacetime_byt_bpic.o afl_bpic.o unix_bpic.o bigarray_bpic.o main_bpic.o && ranlib libcamlrun_pic.a
    gcc -shared -o libcamlrun_shared.so interp_bpic.o misc_bpic.o stacks_bpic.o fix_code_bpic.o startup_aux_bpic.o startup_byt_bpic.o freelist_bpic.o major_gc_bpic.o minor_gc_bpic.o memory_bpic.o alloc_bpic.o roots_byt_bpic.o globroots_bpic.o fail_byt_bpic.o signals_bpic.o signals_byt_bpic.o printexc_bpic.o backtrace_byt_bpic.o backtrace_bpic.o compare_bpic.o ints_bpic.o floats_bpic.o str_bpic.o array_bpic.o io_bpic.o extern_bpic.o intern_bpic.o hash_bpic.o sys_bpic.o meta_bpic.o parsing_bpic.o gc_ctrl_bpic.o md5_bpic.o obj_bpic.o lexing_bpic.o callback_bpic.o debugger_bpic.o weak_bpic.o compact_bpic.o finalise_bpic.o custom_bpic.o dynlink_bpic.o spacetime_byt_bpic.o afl_bpic.o unix_bpic.o bigarray_bpic.o main_bpic.o -lm -ldl  -lpthread 
    /usr/bin/ld: backtrace_bpic.o:/home/kristijan/.esy/3/b/opam__s__ocaml_secondary_compiler-opam__c__4.08.1-1-08025e81/runtime/backtrace.c:31: multiple definition of `caml_debug_info'; backtrace_byt_bpic.o:/home/kristijan/.esy/3/b/opam__s__ocaml_secondary_compiler-opam__c__4.08.1-1-08025e81/runtime/backtrace_byt.c:47: first defined here
    collect2: error: ld returned 1 exit status
    make[1]: *** [Makefile:310: libcamlrun_shared.so] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory '/home/kristijan/.esy/3/b/opam__s__ocaml_secondary_compiler-opam__c__4.08.1-1-08025e81/runtime'
    make: *** [Makefile:323: coldstart] Error 2
    error: command failed: 'env' '-u' 'OCAMLLIB' 'bash' './esy-build' (exited with 2)
    esy-build-package: exiting with errors above...
    
  building @opam/ocaml-secondary-compiler@opam:4.08.1-1
esy: exiting due to errors above

Do you know what can cause this?

Here are some system info:
OS: Manjaro Linux i3
Esy version: 0.6.4

Edit: My guess is that it's related to this issue: ocaml/ocaml#9622 , i'm just not sure how to solve it.

esy build failing with unsafe for cross-compilation error

When I run esy build it is failing with the following error

error: include location '/usr/local/include' is unsafe for cross-compilation [-Werror,-Wpoison-system-directories]
    1 error generated.
    [16/1196] compile ../../src/gpu/gl/GrGLGpu.cpp
    FAILED: obj/src/gpu/gl/gpu.GrGLGpu.o
    clang++ -MMD -MF obj/src/gpu/gl/gpu.GrGLGpu.o.d -DNDEBUG -DSK_GAMMA_APPLY_TO_A8 -DSK_ENABLE_DISCRETE_GPU -DGR_TEST_UTILS=1 -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -fvisibility=hidden -O3 -fdata-sections -ffunction-sections -g -Werror -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-extra-semi-stmt -Weverything -Wno-unknown-warning-option -Wno-anon-enum-enum-conversion -Wno-sizeof-array-div -Wno-nonportable-include-path -Wno-nonportable-system-include-path -Wno-cast-align -Wno-cast-qual -Wno-conversion -Wno-disabled-macro-expansion -Wno-documentation -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-format-nonliteral -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-pedantic -Wno-reserved-id-macro -Wno-shadow -Wno-shift-sign-overflow -Wno-signed-enum-bitfield -Wno-switch-enum -Wno-undef -Wno-unreachable-code -Wno-unreachable-code-break -Wno-unreachable-code-return -Wno-unused-macros -Wno-unused-member-function -Wno-unused-template -Wno-zero-as-null-pointer-constant -Wno-bad-function-cast -Wno-covered-switch-default -Wno-deprecated -Wno-missing-noreturn -Wno-old-style-cast -Wno-padded -Wno-newline-eof -Wno-implicit-fallthrough -Wno-unused-parameter -I/Users/kiran/.esy/3___________________________________________________________________/i/esy_libjpeg_turbo-dc3b4679/include -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/gpu/gl/GrGLGpu.cpp -o obj/src/gpu/gl/gpu.GrGLGpu.o
    error: include location '/usr/local/include' is unsafe for cross-compilation [-Werror,-Wpoison-system-directories]
    1 error generated.
    ninja: build stopped: subcommand failed.
    error: command failed: 'bash' './esy/build.sh' 'darwin' '/Users/kiran/.esy/3___________________________________________________________________/i/esy_libjpeg_turbo-dc3b4679' (exited with 1)
    esy-build-package: exiting with errors above...

  building esy-skia@github:revery-ui/esy-skia#a3785f9
esy: exiting due to errors above

I am using Macbook Pro with macOS Catalina v 10.15.6

Build fail on macOS on the reason-sdl2 step

I'm following the build steps but I got a build error when building reason-sdl2. The error points to a missing include X11/Xlib.h. Isn't that a linux-only thing? Do I need to install any other dependency on mac?

Here's the full error:

info building [email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: pwd: /Users/leonardo/.esy/source/i/reason_sdl2__2.10.3004__94213a95
    # esy-build-package: running: 'dune' 'build' '--root' '.'
    File "dune", line 1, characters 17-31:
    1 | (ignored_subdirs (node_modules))
                         ^^^^^^^^^^^^^^
    Warning: ignored_subdirs is deprecated in 1.6. Use dirs to specify visible
    directories or data_only_dirs for ignoring only dune files.
             gcc src/sdl2_wrapper.o (exit 1)
    (cd /Users/leonardo/.esy/3________________________________________________________________/b/reason_sdl2-2.10.3004-a7e505b6/default/src && /usr/bin/gcc -I /Users/leonardo/.esy/3________________________________________________________________/i/ocaml-4.8.1000-426898cd/lib/ocaml -I /Users/leonardo/.esy/3________________________________________________________________/i/opam__s__lwt-opam__c__4.3.1-c60023ca/lib/lwt -I /Users/leonardo/.esy/3________________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.1-cbae71df/lib/bytes -I /Users/leonardo/.esy/3________________________________________________________________/i/opam__s__result-opam__c__1.4-4f8aad03/lib/result -I /Users/leonardo/.esy/3________________________________________________________________/i/opam__s__seq-opam__c__base-c4bafc44/lib/seq -I /Users/leonardo/.esy/3________________________________________________________________/i/reason_gl_matrix-0.9.9305-85ef0e74/lib/reglm -I /Users/leonardo/.esy/3________________________________________________________________/i/esy_sdl2-2.0.10003-8467b5c7/include -I /Users/leonardo/.esy/source/i/reason_sdl2__2.10.3004__94213a95/include -I /Users/leonardo/.esy/source/i/reason_sdl2__2.10.3004__94213a95/src -g -o sdl2_wrapper.o -c sdl2_wrapper.cpp)
    In file included from sdl2_wrapper.cpp:20:
    /Users/leonardo/.esy/3________________________________________________________________/i/esy_sdl2-2.0.10003-8467b5c7/include/SDL2/SDL_syswm.h:66:10: fatal error: 'X11/Xlib.h' file not found
    #include <X11/Xlib.h>
             ^~~~~~~~~~~~
    1 error generated.
    error: command failed: 'dune' 'build' '--root' '.' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building [email protected]
esy: exiting due to errors above

esy build fails on Ubuntu 18.04.3 LTS

I followed the instructions on README and got the following error:

info building [email protected]@d41d8cd9
info building [email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: pwd: /home/sammkj/.esy/3___________________________________________________________________/b/reason_font_manager-2.0.0-57a2ccff
    # esy-build-package: running: 'refmterr' 'dune' 'build' '-p' 'reason-font-manager'
             gcc src/FontManagerLinux.o (exit 1)
    (cd _build/default/src && /usr/bin/gcc -I /home/sammkj/.esy/3___________________________________________________________________/i/ocaml-4.7.1004-a6ae015e/lib/ocaml -O2 -fno-strict-aliasing -fwrapv -fPIC -fPIC -lstdc++ -o FontManagerLinux.o -c FontManagerLinux.cpp)
    FontManagerLinux.cpp:3:10: fatal error: fontconfig/fontconfig.h: No such file or directory
     #include <fontconfig/fontconfig.h>
              ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command failed: 'refmterr' 'dune' 'build' '-p' 'reason-font-manager' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building [email protected]
esy: exiting due to errors above

esy build fails on building skia

When building on windows 10 I get this error msg

info esy build 0.6.6 (using package.json)
info building esy-skia@github:revery-ui/esy-skia#d60e5fe@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: esy-skia@github:revery-ui/esy-skia#d60e5fe
    # esy-build-package: pwd: C:\Users\benne\.esy\3\b\esy_skia-7ed409d0
    # esy-build-package: running: "bash" "./esy/build.sh" "windows" "C:/Users/benne/.esy/3_________________________________________________________________/i/esy_libjpeg_turbo-639d22ad"
    buildtools                           @ 505de88083136eefd056e5ee4ca0f01fe9b33de8
    common                               @ 9737551d7a52c3db3262db5856e6bcd62c462b92
    third_party/externals/angle2         @ b001528ffa00e7c15a5002124f707570e59a5697
    third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
    third_party/externals/expat          @ android-6.0.1_r55
    third_party/externals/freetype       @ fa6da7bf6dcbcfa22d2464259ad1cccee3233189
    third_party/externals/googletest     @ dd43b9998e9a44a579a7aba6c1309407d1a5ed95
    third_party/externals/harfbuzz       @ 1.4.2
    third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
    third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75
    third_party/externals/jsoncpp        @ 1.0.0
    third_party/externals/libjpeg-turbo  @ 1.5.3
    third_party/externals/libpng         @ v1.6.33
    third_party/externals/libwebp        @ v0.6.1
    third_party/externals/lua            @ v5-3-4
    third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
    third_party/externals/piex           @ bb217acdca1cc0c16b704669dd6f91a1b509c406
    third_party/externals/rapidjson      @ af223d44f4e8d3772cb1ac0ce8bc2a132b51717f
    third_party/externals/sdl            @ 5d7cfcca344034aff9327f77fc181ae3754e7a90
    third_party/externals/sfntly         @ b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916
    third_party/externals/spirv-headers  @ 661ad91124e6af2272afd00f804d8aa276e17107
    third_party/externals/spirv-tools    @ e9e4393b1c5aad7553c05782acefbe32b42644bd
    third_party/externals/swiftshader    @ cbb80f5f0078a9941f3ec43e83e52c3d15a43bea
    third_party/externals/zlib           @ e7afdfe128e01ca480a28f757b571957befdd962
    ERROR at //gn/BUILDCONFIG.gn:185:3: Assertion failed.
      assert(win_vc != "")  # Could not find VC installation. Set win_vc to your VC directory.
      ^-----
    error: command failed: "bash" "./esy/build.sh" "windows" "C:/Users/benne/.esy/3_________________________________________________________________/i/esy_libjpeg_turbo-639d22ad" (exited with 255)
    esy-build-package: exiting with errors above...

  building esy-skia@github:revery-ui/esy-skia#d60e5fe
esy: exiting due to errors above

I tried to set the variable like this but it didn't work:

set win_vc=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC

esy build fail on building skia (macos)

Seems like someone was having a similar problem, but I don't know how much is applicable to me. They were using windows and I am using macOS Big Sur version 11.5.2.

Using esy version 0.6.12, when I run esy build I get this error log:

info esy build 0.6.12 (using package.json)
info building esy-skia@github:revery-ui/esy-skia#91c98f6@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: esy-skia@github:revery-ui/esy-skia#91c98f6
    # esy-build-package: pwd: /Users/duncanbritt/.esy/3/b/esy_skia-c3eadd32
    # esy-build-package: running: 'bash' './esy/build.sh' 'darwin' '/Users/duncanbritt/.esy/3____________________________________________________________/i/esy_libjpeg_turbo-dc3b4679'
    fatal: repository 'https://skia.googlesource.com/external/github.com/Tencent/rapidjson.git/' not found
    buildtools                           @ 505de88083136eefd056e5ee4ca0f01fe9b33de8
    common                               @ 9737551d7a52c3db3262db5856e6bcd62c462b92
    third_party/externals/angle2         @ b001528ffa00e7c15a5002124f707570e59a5697
    third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
    third_party/externals/expat          @ android-6.0.1_r55
    third_party/externals/freetype       @ fa6da7bf6dcbcfa22d2464259ad1cccee3233189
    third_party/externals/googletest     @ dd43b9998e9a44a579a7aba6c1309407d1a5ed95
    third_party/externals/harfbuzz       @ 1.4.2
    third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
    third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75
    third_party/externals/jsoncpp        @ 1.0.0
    third_party/externals/libjpeg-turbo  @ 1.5.3
    third_party/externals/libpng         @ v1.6.33
    third_party/externals/libwebp        @ v0.6.1
    third_party/externals/lua            @ v5-3-4
    third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
    third_party/externals/piex           @ bb217acdca1cc0c16b704669dd6f91a1b509c406
    Traceback (most recent call last):
      File "tools/git-sync-deps", line 254, in <module>
        exit(main(sys.argv[1:]))
      File "tools/git-sync-deps", line 246, in main
        git_sync_deps(deps_file_path, argv, verbose)
      File "tools/git-sync-deps", line 218, in git_sync_deps
        git_checkout_to_directory(*args)
      File "tools/git-sync-deps", line 132, in git_checkout_to_directory
        [git, 'clone', '--quiet', repo, directory])
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['git', 'clone', '--quiet', 'https://skia.googlesource.com/external/github.com/Tencent/rapidjson.git', 'third_party/externals/rapidjson']' returned non-zero exit status 128
    llvm toolset-7.0 does not need to be manually activated
    ./esy/build.sh: line 44: bin/gn: No such file or directory
    error: command failed: 'bash' './esy/build.sh' 'darwin' '/Users/duncanbritt/.esy/3____________________________________________________________/i/esy_libjpeg_turbo-dc3b4679' (exited with 255)
    esy-build-package: exiting with errors above...
    
  building esy-skia@github:revery-ui/esy-skia#91c98f6
esy: exiting due to errors above

Any suggestions for me would be greatly appreciated.

Linker errors while building

It seems builder uses external version of the pango library.
Relevant error fragment:

    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ft_face_create_cached'
    //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ft_face_create'
    collect2: error: ld returned 1 exit status

esy install fails

Hey,

This error happened after cloning and ran esy. It is something that I could solve in my end?

info esy 0.6.0 (using package.json)
.... fetching revery@github:revery-ui/revery#2fdee68esy: internal error, uncaught exception:
     Unix.Unix_error(Unix.ENOTEMPTY, "rename", "/Users/davesnx/dev/github/teamodoro/_esy/default/tmp/esy-d2e17c")
     Raised at file "esy-lib/RunAsync.re", line 13, characters 2-51
     Re-raised at file "esy-lib/RunAsync.re", line 13, characters 2-51
     Re-raised at file "src/core/lwt.ml", line 2999, characters 20-29
     Called from file "src/unix/lwt_main.ml", line 26, characters 8-18
     Called from file "esy-lib/Cli.re", line 263, characters 9-28
     Called from file "cmdliner_term.ml", line 25, characters 19-24
     Called from file "cmdliner.ml", line 25, characters 27-34
     Called from file "cmdliner.ml", line 116, characters 32-39

Using
esy 0.6.0
Revery: revery-ui/revery#2fdee68

Linker error when building

I get the following error when trying to build:

   Undefined symbols for architecture x86_64:
      "_hb_buffer_add_utf8", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
      "_hb_buffer_clear_contents", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
      "_hb_buffer_create", referenced from:
          _af_shaper_buf_create in libfreetype.a(autofit.c.o)
          _af_face_globals_new in libfreetype.a(autofit.c.o)
      "_hb_buffer_destroy", referenced from:
          _af_shaper_buf_destroy in libfreetype.a(autofit.c.o)
          _af_face_globals_free in libfreetype.a(autofit.c.o)
      "_hb_buffer_get_glyph_infos", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
          _af_shaper_get_elem in libfreetype.a(autofit.c.o)
      "_hb_buffer_get_glyph_positions", referenced from:
          _af_shaper_get_elem in libfreetype.a(autofit.c.o)
      "_hb_buffer_get_length", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
      "_hb_buffer_guess_segment_properties", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
      "_hb_font_destroy", referenced from:
          _af_face_globals_free in libfreetype.a(autofit.c.o)
      "_hb_font_get_face", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_font_set_scale", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
      "_hb_ft_font_create", referenced from:
          _af_face_globals_new in libfreetype.a(autofit.c.o)
      "_hb_ot_layout_collect_lookups", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_ot_layout_lookup_collect_glyphs", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_ot_layout_lookup_would_substitute", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_ot_tags_from_script", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_set_create", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_set_destroy", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_set_is_empty", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_set_next", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_set_subtract", referenced from:
          _af_shaper_get_coverage in libfreetype.a(autofit.c.o)
      "_hb_shape", referenced from:
          _af_shaper_get_cluster in libfreetype.a(autofit.c.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ./esy/test.sh: line 21: ./test: No such file or directory
    error: command failed: './esy/test.sh'
    esy-build-package: exiting with errors above...

Earlier in the output, it looks like its finding my local harfbuzz with an older version:

18:56 $ esy build
info esy build 0.3.4
info building [email protected]: starting
error: build failed
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: running: 'bash' '-c' './esy/configure.sh'
    -- The C compiler identification is AppleClang 9.1.0.9020039
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
    -- Found harfbuzz: /usr/local/Cellar/harfbuzz/1.8.4/include/harfbuzz (found version "1.8.4")
    -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11")
    -- Found PNG: /usr/local/lib/libpng.dylib (found version "1.4.12")
    -- Found BZip2: /usr/lib/libbz2.dylib (found version "1.0.6")
    -- Looking for BZ2_bzCompressInit
    -- Looking for BZ2_bzCompressInit - found
    -- Looking for unistd.h
    -- Looking for unistd.h - found
    -- Looking for fcntl.h
    -- Looking for fcntl.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:

        CMAKE_DISABLE_FIND_PACKAGE_BZIP2

Should it be finding the 1.9.0 version from esy-harfbuzz instead?

"esy build" not working on windows

hostname = DESKTOP-5EN5KN6
uname -m = x86_64
uname -r = 3.0.7(0.338/5/3)
uname -s = CYGWIN_NT-10.0
uname -v = 2019-04-30 18:08

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/bin
PATH: /usr/local/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /cygdrive/c/Windows/System32


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2745: checking build system type
configure:2759: result: x86_64-unknown-cygwin
configure:2779: checking host system type
configure:2792: result: x86_64-unknown-cygwin
configure:2812: checking target system type
configure:2825: result: x86_64-unknown-cygwin
configure:2922: checking for gsed
configure:2953: result: sed
configure:2981: checking for a BSD-compatible install
configure:3049: result: /usr/bin/install -c
configure:3060: checking whether build environment is sane
configure:3115: result: yes
configure:3263: checking for a thread-safe mkdir -p
configure:3302: result: /usr/bin/mkdir -p
configure:3309: checking for gawk
configure:3325: found /usr/bin/gawk
configure:3336: result: gawk
configure:3347: checking whether make sets $(MAKE)
configure:3369: result: yes
configure:3398: checking whether make supports nested variables
configure:3415: result: yes
configure:3558: checking for gcc
configure:3588: result: no
configure:3651: checking for cc
configure:3698: result: no
configure:3754: checking for cl.exe
configure:3784: result: no
configure:3808: error: in `/cygdrive/c/Users/Dennis/.esy/3/b/esy_ocaml__s__libffi-3.2.10-2543eff9/x86_64-unknown-cygwin':
configure:3810: error: no acceptable C compiler found in $PATH
See `config.log' for more details

Looks like cygwin isn't installing gcc

npm timber package question

Learning some ReasonML and playing with Revery. Just trying to understand how things work, and saw a reference to Timer in the application, so I immediately thought this was somehow pulled in from the timber npm package specified in the package.json file. After more investigation -- and some outside assistance -- it appears that revery has a dependency from https://github.com/glennsl/timber. Is the timber npm package accidentally being included into the source code? Or is this used somewhere else?

Required dependency libpng isnt listed anywhere

Hey all, seems like the project depends on libpng to build.
When building on mac without it being installed you get the following error:

error: build failed with exit code: 1
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: pwd: /Users/danni/.esy/source/i/reason_fontkit__2.8.3__8b4483b3
    # esy-build-package: running: 'dune' 'build' '-p' 'fontkit'
          ocamlc src/config/.discover.eobjs/byte/discover.{cmi,cmo,cmt}
    File "src/config/discover.ml", line 36, characters 4-117:
    Warning 8: this pattern-matching is not exhaustive.
    Here is an example of a case that is not matched:
    Unknown
        ocamlopt src/config/.discover.eobjs/native/discover.{cmx,o}
    File "src/config/discover.ml", line 36, characters 4-117:
    Warning 8: this pattern-matching is not exhaustive.
    Here is an example of a case that is not matched:
    Unknown
        ocamlopt src/fontkit.cmxs (exit 2)
    (cd /Users/danni/.esy/3/b/reason_fontkit-2.8.3-fe4f85e1/default && /Users/danni/.esy/3___________________________________________________________________/i/ocaml-4.7.1004-e5a2754f/bin/ocamlopt.opt -w -40 -g -shared -linkall -I src -o src/fontkit.cmxs src/fontkit.cmxa)
    ld: library not found for -lpng
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'dune' 'build' '-p' 'fontkit' (exited with 1)
    esy-build-package: exiting with errors above...

  building [email protected]
esy: exiting due to errors above

The fix is (on OSX) to run

brew install libpng

Can open a PR to fix but not sure where you guys want to add this dependency? maybe list all other dependencies too?

Thanks.

Error when building with resolutions patch

I patched my package.json

{
  "name": "revery-quick-start",
  "version": "1.4.1",
  "description": "A template for getting started with Revery",
  "license": "MIT",
  "scripts": {
    "format": "bash -c \"refmt --in-place **/*.re\"",
    "run": "esy x App"
  },
  "esy": {
    "build": "dune build -p App",
    "buildDev": "refmterr dune build -p App",
    "buildsInSource": "_build"
  },
  "resolutions": {
    "esy-skia": "revery-ui/esy-skia#b8aff12"
  },
  "revery-packager": {
    "bundleName": "ExampleApp",
    "bundleId": "com.example.app",
    "displayName": "Revery Example App",
    "mainExecutable": "App",
    "windows": {
      "packages": [
        "zip"
      ],
      "iconFile": "assets/icon.ico"
    },
    "darwin": {
      "packages": [
        "tar",
        "dmg"
      ],
      "iconFile": "assets/icon.icns"
    },
    "linux": {
      "packages": [
        "tar",
        "appimage"
      ]
    }
  },
  "dependencies": {
    "revery": "revery-ui/revery#431e515a00ee46f7bc614a10c2a219aae13179e0",
    "@opam/dune": "2.6.0",
    "@revery/timber": "*",
    "esy-macdylibbundler": "*"
  },
  "devDependencies": {
    "ocaml": "~4.9.0",
    "@opam/ocaml-lsp-server": "ocaml/ocaml-lsp:ocaml-lsp-server.opam#cb8aba2238ba5b0e5a6fe0a3180f25077496f75a"
  }
}

And when trying esy build I get this:

info building esy-skia@github:revery-ui/esy-skia#b8aff12@d41d8cd9
info building [email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: esy-skia@github:revery-ui/esy-skia#b8aff12
    # esy-build-package: pwd: /home/insert_user_home/.esy/3/b/esy_skia-cce2678e
    # esy-build-package: running: 'bash' './esy/build.sh' 'linux' '/home/insert_user_home/.esy/3_________________________________________________________________/i/esy_libjpeg_turbo-e4385a3b'
    fatal: repository 'https://skia.googlesource.com/external/github.com/Tencent/rapidjson.git/' not found
    buildtools                           @ 505de88083136eefd056e5ee4ca0f01fe9b33de8
    third_party/externals/angle2         @ b001528ffa00e7c15a5002124f707570e59a5697
    third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
    third_party/externals/expat          @ android-6.0.1_r55
    third_party/externals/freetype       @ fa6da7bf6dcbcfa22d2464259ad1cccee3233189
    third_party/externals/googletest     @ dd43b9998e9a44a579a7aba6c1309407d1a5ed95
    third_party/externals/harfbuzz       @ 1.4.2
    third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
    third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75
    third_party/externals/jsoncpp        @ 1.0.0
    third_party/externals/libjpeg-turbo  @ 1.5.3
    third_party/externals/libpng         @ v1.6.33
    third_party/externals/libwebp        @ v0.6.1
    third_party/externals/lua            @ v5-3-4
    third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
    third_party/externals/piex           @ bb217acdca1cc0c16b704669dd6f91a1b509c406
    Traceback (most recent call last):
      File "tools/git-sync-deps", line 254, in <module>
        exit(main(sys.argv[1:]))
      File "tools/git-sync-deps", line 246, in main
        git_sync_deps(deps_file_path, argv, verbose)
      File "tools/git-sync-deps", line 218, in git_sync_deps
        git_checkout_to_directory(*args)
      File "tools/git-sync-deps", line 132, in git_checkout_to_directory
        [git, 'clone', '--quiet', repo, directory])
      File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['git', 'clone', '--quiet', 'https://skia.googlesource.com/external/github.com/Tencent/rapidjson.git', 'third_party/externals/rapidjson']' returned non-zero exit status 128
    llvm toolset-7.0 does not need to be manually activated
    ./esy/build.sh: line 53: bin/gn: No such file or directory
    error: command failed: 'bash' './esy/build.sh' 'linux' '/home/insert_user_home/.esy/3_________________________________________________________________/i/esy_libjpeg_turbo-e4385a3b' (exited with 255)
    esy-build-package: exiting with errors above...

  building esy-skia@github:revery-ui/esy-skia#b8aff12
esy: exiting due to errors above

Missing packages without esy.lock

If the esy.lock is untouched, this app works, but attempting to rebuild the esy.lock folder throws the following error:

error: build failed with exit code: 1
  build log:
    # esy-build-package: building: revery@github:revery-ui/revery#431e515a00ee46f7bc614a10c2a219aae13179e0
    # esy-build-package: pwd: ~/.esy/source/i/revery__b844da77
    # esy-build-package: running: 'dune' 'build' '-p' 'reason-harfbuzz,reason-skia,reason-sdl2,Revery'
    File "src/dune", line 6, characters 12-23:
    6 |  (libraries console.lib lwt lwt.unix sdl2 Revery_Core Revery_Font Revery_Draw
                    ^^^^^^^^^^^
    Error: Library "console.lib" not found.
    Hint: try:
    dune external-lib-deps --missing -p
    reason-harfbuzz,reason-skia,reason-sdl2,Revery @install
        discover packages/reason-sdl2/src/c_flags.sexp,packages/reason-sdl2/src/c_library_flags.sexp,packages/reason-sdl2/src/cxx_flags.sexp,packages/reason-sdl2/src/flags.sexp
    SDL2 Library Folder Path: /Users/samminnee/.esy/3______________________________________________________________/i/esy_sdl2-2.0.10008-de4f481b/lib
    File "src/Core/dune", line 7, characters 20-31:
    7 |  (libraries threads console.lib str lwt sdl2 skia flex Rench re Revery_Native
                            ^^^^^^^^^^^
    Error: Library "console.lib" not found.
    Hint: try:
    dune external-lib-deps --missing -p
    reason-harfbuzz,reason-skia,reason-sdl2,Revery @install
    File "packages/zed/src/dune", line 7, characters 18-23:
    7 |  (libraries bytes react uucp uutf result charInfo_width))
                          ^^^^^
    Error: Library "react" not found.
    Hint: try:
    dune external-lib-deps --missing -p
    reason-harfbuzz,reason-skia,reason-sdl2,Revery @install
             gcc packages/reason-skia/src/wrapped/c/c_stubs.o
    c_stubs.c:30:53: warning: incompatible pointer types passing 'void *(void *, const char *)' to parameter of type 'gr_gl_get_proc' (aka 'void (*(*)(void *, const char *))(void)') [-Wincompatible-pointer-types]
                gr_glinterface_assemble_gl_interface(0, reason_skia_sdl2_get);
                                                        ^~~~~~~~~~~~~~~~~~~~
    /Users/samminnee/.esy/3______________________________________________________________/i/esy_skia-c3eadd32/include/c/gr_context.h:40:97: note: passing argument to parameter 'get' here
    SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gl_interface(void* ctx, gr_gl_get_proc get);
                                                                                                    ^
    c_stubs.c:29:23: warning: initializing 'gr_glinterface_t *' (aka 'struct gr_glinterface_t *') with an expression of type 'const gr_glinterface_t *' (aka 'const struct gr_glinterface_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        gr_glinterface_t *interface =
                          ^
    c_stubs.c:36:55: warning: incompatible pointer types passing 'void *(void *, const char *)' to parameter of type 'gr_gl_get_proc' (aka 'void (*(*)(void *, const char *))(void)') [-Wincompatible-pointer-types]
                gr_glinterface_assemble_gles_interface(0, reason_skia_sdl2_get);
                                                          ^~~~~~~~~~~~~~~~~~~~
    /Users/samminnee/.esy/3______________________________________________________________/i/esy_skia-c3eadd32/include/c/gr_context.h:41:99: note: passing argument to parameter 'get' here
    SK_C_API const gr_glinterface_t* gr_glinterface_assemble_gles_interface(void* ctx, gr_gl_get_proc get);
                                                                                                      ^
    c_stubs.c:35:23: warning: initializing 'gr_glinterface_t *' (aka 'struct gr_glinterface_t *') with an expression of type 'const gr_glinterface_t *' (aka 'const struct gr_glinterface_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        gr_glinterface_t *interface =
                          ^
    4 warnings generated.
    File "src/Utility/dune", line 6, characters 20-31:
    6 |  (libraries threads console.lib str lwt sdl2 skia flex Rench re Revery_Core
                            ^^^^^^^^^^^
    Error: Library "console.lib" not found.
    Hint: try:
    dune external-lib-deps --missing -p
    reason-harfbuzz,reason-skia,reason-sdl2,Revery @install

Attempting to run that suggested command gives

 dune external-lib-deps --missing -p  reason-harfbuzz,reason-skia,reason-sdl2,Revery @install
Error: The following libraries are missing in the default context:
- Rench
- bos
- brisk-reconciler
- brisk-reconciler.ppx
- console.lib
- ctypes
- ctypes.stubs
- flex
- integers
- lru
- lwt_ppx
- markup
- omd
- ppx_deriving.show
- rebez.lib
- timber
- uucp
Hint: try:
  opam install Rench bos brisk-reconciler console ctypes flex integers lru lwt_ppx markup omd ppx_deriving rebez timber uucp

Build error on easy-format and jbuilder

Error message when I tried to build was:
info building @opam/cmdliner@opam:1.0.2@8ab0598a
error: build failed with exit code: 1
build log:
# esy-build-package: building: @opam/easy-format@opam:1.3.1
# esy-build-package: pwd: C:\Users\DarrylSpencer.esy\3_\b\opam__s__easy_format-opam__c__1.3.1-386c7282
# esy-build-package: running: "jbuilder" "build" "-p" "easy-format" "-j" "4"
The jbuilder binary is deprecated and will cease to be maintained in July 2019.
Please switch to dune instead.
File "test/jbuild", line 1, characters 0-0:
Warning: jbuild files are deprecated, please convert this file to a dune file instead.
Note: You can use "dune upgrade" to convert your project to dune.
Error: I don't know about package easy-format (passed through --only-packages/--release)
error: command failed: "jbuilder" "build" "-p" "easy-format" "-j" "4" (exited with 1)
esy-build-package: exiting with errors above...

building @opam/easy-format@opam:1.3.1
esy: exiting due to errors above

`esy run` results in blank screen on Wayland

I'm running ArchLinux with sway 1.2 as my WM. With SDL_VIDEODRIVER=wayland I can esy build just fine but when I esy run I get a blank light blue window:

image
However if I run it with SDL_VIDEODRIVER=x11 I get what I believe is the correct output:

image

SDL is supposed to natively support Wayland. Not sure why this doesn't work, but thought I'd mention it.

Newbie: Will not build on macos 10.14.6 (18G2022) and esy 0.5.8

I'm interested in learning this language for a side project of mine, but I can't even get the quick start project to compile. It give:

info esy build 0.5.8 (using package.json)
Error: exception Sys_error(".merlin: Operation not permitted")
Backtrace:
Raised by primitive operation at file "stdlib.ml", line 316, characters 29-55
Called from file "src/stdune/io.ml", line 174, characters 8-129
Re-raised at file "src/stdune/io.ml", line 180, characters 8-23
Called from file "src/artifact_substitution.ml", line 492, characters 15-48
Called from file "src/fiber/fiber.ml", line 232, characters 16-19
Called from file "src/build_system.ml", line 1520, characters 8-1023
Called from file "src/fiber/fiber.ml", line 112, characters 7-12
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15
Re-raised at file "src/stdune/exn.ml" (inlined), line 39, characters 38-65
Called from file "src/stdune/exn_with_backtrace.ml", line 17, characters 2-40
Called from file "src/fiber/fiber.ml", line 82, characters 8-15

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: 'refmterr' 'dune' 'build' '-p' 'App' (exited with 1)
esy-build-package: exiting with errors above...
error: build failed with exit code: 1
  
esy: exiting due to errors above

Missing libraries when building reason-sdl2 on Ubuntu WSL

When I run esy build on Ubuntu WSL, it gives me this error

info building [email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: pwd: /home/dennis/.esy/source/i/reason_sdl2__2.10.3020__15f56050
    # esy-build-package: running: 'dune' 'build' '-p' 'sdl2'
        ocamlopt src/sdl2.cmxs (exit 2)
    (cd /home/dennis/.esy/3/b/reason_sdl2-2.10.3020-9ffa16f0/default && /home/dennis/.esy/3___________________________________________________________________/i/ocaml-4.8.1000-e74c5c0d/bin/ocamlopt.opt -w -40 -g -shared -linkall -I src -o src/sdl2.cmxs src/sdl2.cmxa)
    /usr/bin/ld: cannot find -lGL
    /usr/bin/ld: cannot find -lGLU
    /usr/bin/ld: cannot find -lXxf86vm
    /usr/bin/ld: cannot find -lXrandr
    /usr/bin/ld: cannot find -lXinerama
    /usr/bin/ld: cannot find -lXcursor
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'dune' 'build' '-p' 'sdl2' (exited with 1)
    esy-build-package: exiting with errors above...

  building [email protected]
esy: exiting due to errors above

I have tried building the reason-sdl2 example and I get the same error.

Can't build on macOS (because of esy-skia ?)

Hi !

I just cloned and ran esy inside the repo. It died with :

Error Message
info building esy-skia@github:revery-ui/esy-skia#91b10c9@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: esy-skia@github:revery-ui/esy-skia#91b10c9
    # esy-build-package: pwd: /Users/sacha/.esy/3/b/esy_skia-a0d39b62
    # esy-build-package: running: 'bash' './esy/build.sh' 'darwin' '/Users/sacha/.esy/3___________________________________________________________________/i/esy_libjpeg_turbo-c41a79cc'
    ERROR:root:code for hash md5 was not found.
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type md5
    ERROR:root:code for hash sha1 was not found.
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha1
    ERROR:root:code for hash sha224 was not found.
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha224
    ERROR:root:code for hash sha256 was not found.
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha256
    ERROR:root:code for hash sha384 was not found.
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha384
    ERROR:root:code for hash sha512 was not found.
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha512
    Traceback (most recent call last):
      File "bin/fetch-gn", line 30, in <module>
        if sha1_of_file(dst) != sha1:
      File "bin/fetch-gn", line 24, in sha1_of_file
        h = hashlib.sha1()
    AttributeError: 'module' object has no attribute 'sha1'
    third_party/externals/piex           @ bb217acdca1cc0c16b704669dd6f91a1b509c406
    common                               @ 9737551d7a52c3db3262db5856e6bcd62c462b92
    buildtools                           @ 505de88083136eefd056e5ee4ca0f01fe9b33de8
    third_party/externals/microhttpd     @ 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
    third_party/externals/zlib           @ e7afdfe128e01ca480a28f757b571957befdd962
    third_party/externals/spirv-headers  @ 661ad91124e6af2272afd00f804d8aa276e17107
    third_party/externals/jsoncpp        @ 1.0.0
    third_party/externals/googletest     @ dd43b9998e9a44a579a7aba6c1309407d1a5ed95
    third_party/externals/libjpeg-turbo  @ 1.5.3
    third_party/externals/lua            @ v5-3-4
    third_party/externals/expat          @ android-6.0.1_r55
    third_party/externals/libwebp        @ v0.6.1
    third_party/externals/spirv-tools    @ e9e4393b1c5aad7553c05782acefbe32b42644bd
    third_party/externals/rapidjson      @ af223d44f4e8d3772cb1ac0ce8bc2a132b51717f
    third_party/externals/harfbuzz       @ 1.4.2
    third_party/externals/freetype       @ fa6da7bf6dcbcfa22d2464259ad1cccee3233189
    third_party/externals/sfntly         @ b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916
    third_party/externals/libpng         @ v1.6.33
    third_party/externals/imgui          @ 6384eee34f08cb7eab8d835043e1738e4adcdf75
    third_party/externals/sdl            @ 5d7cfcca344034aff9327f77fc181ae3754e7a90
    third_party/externals/dng_sdk        @ 96443b262250c390b0caefbf3eed8463ba35ecae
    third_party/externals/angle2         @ b001528ffa00e7c15a5002124f707570e59a5697
    third_party/externals/swiftshader    @ cbb80f5f0078a9941f3ec43e83e52c3d15a43bea
    third_party/externals/icu            @ ec9c1133693148470ffe2e5e53576998e3650c1d
    Traceback (most recent call last):
      File "tools/git-sync-deps", line 253, in <module>
        exit(main(sys.argv[1:]))
      File "tools/git-sync-deps", line 248, in main
        os.path.join(os.path.dirname(deps_file_path), 'bin', 'fetch-gn')])
      File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/local/opt/python@2/bin/python2.7', 'bin/fetch-gn']' returned non-zero exit status 1
    llvm toolset-7.0 does not need to be manually activated
    ./esy/build.sh: line 44: bin/gn: No such file or directory
    error: command failed: 'bash' './esy/build.sh' 'darwin' '/Users/sacha/.esy/3___________________________________________________________________/i/esy_libjpeg_turbo-c41a79cc' (exited with 255)
    esy-build-package: exiting with errors above...
    
  building esy-skia@github:revery-ui/esy-skia#91b10c9
esy: exiting due to errors above

esy build fails due to missing <package>.opam file in dune-private-libs

On my Windows 10, using esy 0.6.4 (in an administrator cmd shell), the following happens:

> esy build
info esy build 0.6.4 (using package.json)
info building @esy-ocaml/substs@0.0.1@d41d8cd9
info building ocaml@4.9.1000@d41d8cd9
...
...
...
info building @reason-native/console@0.0.3@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @opam/dune-private-libs@opam:2.5.1
    # esy-build-package: pwd: C:\Users\stefanz\.esy\3\b\opam__s__dune_private_libs-opam__c__2.5.1-f66a9529
    # esy-build-package: running: "dune" "build" "-p" "dune-private-libs" "-j" "4" "@install"
    Info: Creating file dune-project with this contents:
    | (lang dune 2.5)
    File "src/cache/dune", line 3, characters 14-37:
    3 |  (public_name dune-private-libs.cache)
                      ^^^^^^^^^^^^^^^^^^^^^^^
    Error: You cannot declare items to be installed without adding a
    <package>.opam file at the root of your project.
    To declare elements to be installed as part of package "dune-private-libs",
    add a "dune-private-libs.opam" file at the root of your project.
    Root of the project as discovered by dune: .
    error: command failed: "dune" "build" "-p" "dune-private-libs" "-j" "4" "@install" (exited with 1)
    esy-build-package: exiting with errors above...

  building @opam/dune-private-libs@opam:2.5.1
esy: exiting due to errors above

It's hard to find any further info on that. Is it a known issue with dune-private-libs or something higher up the dependency hierarchy?

Over at onivim the same issue popped up: onivim/oni2#1816

Running AppImage output error undefined symbol: jpeg_crop_scanline, version LIBJPEG_6.2 in WSL2

environment:

  • WSL2
  • Ubuntu 20.04

esy install and esy build completed successfully, but I see an error when I run _release/ExampleApp-x86_64.AppImage.

$ ./_release/ExampleApp-x86_64.AppImage 
/tmp/.mount_ExampluuA72T/usr/bin/App: symbol lookup error: /tmp/.mount_ExampluuA72T/usr/bin/App: undefined symbol: jpeg_crop_scanline, version LIBJPEG_6.2

I would like to use revery app via VcXsrvใ€€to connect GUI app between WSL2 and Windows.
Do you have any solution for this issue?

`esy install` fails on ubuntu 19.10

Hi, I've followed all the instructions and made very sure all the dependencies for revery are installed. However when I run esy install I get the following error:

info install 0.6.2 (using package.json)
.... fetching [email protected]: internal error, uncaught exception:
     Unix.Unix_error(Unix.ENOTEMPTY, "rename", "/home/jasoons/Documents/learning/revery/revery-quick-start/_esy/default/tmp/esy-402ae3")
     Raised at file "src/core/lwt.ml", line 2999, characters 20-29
     Called from file "src/unix/lwt_main.ml", line 26, characters 8-18
     Called from file "esy-lib/Cli.re", line 263, characters 9-28
     Called from file "cmdliner_term.ml", line 25, characters 19-24
     Called from file "cmdliner.ml", line 25, characters 27-34
     Called from file "cmdliner.ml", line 116, characters 32-39

I'm using esy 0.6.2 .

I haven't tried much, but I've tried deleting the ~/.esy folder and recloning this repo. But I still get the same error.

Thanks :)

"esy install" failed

error

info install 0.6.11 (using package.json)
error unable to fetch esy-m4@github:esy-packages/esy-m4#c7cf0ac9221be2b1f9d90e83559ca08397a629e7:

    source: github:esy-packages/esy-m4#c7cf0ac9221be2b1f9d90e83559ca08397a629e7
    error: error: command failed: "git" "clone" "--depth" "1" "https://github.com/esy-packages/esy-m4.git" "/cygdrive/c/Users/username/Documents/revery-quick-start/_esy/default/tmp/esy-ec462a"
           stderr:
                    Cloning into '/cygdrive/c/Users/username/Documents/revery-quick-start/_esy/default/tmp/esy-ec462a'...
                    fatal: unable to access 'https://github.com/esy-packages/esy-m4.git/': Could not resolve host: github.com

           stdout:

             fetching dist: github:esy-packages/esy-m4#c7cf0ac9221be2b1f9d90e83559ca08397a629e7

error unable to fetch @opam/ocaml-lsp-server@github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#cb8aba2238ba5b0e5a6fe0a3180f25077496f75a:

    source: github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#cb8aba2238ba5b0e5a6fe0a3180f25077496f75a
    error: error: command failed: "git" "clone" "--depth" "1" "https://github.com/ocaml/ocaml-lsp.git" "/cygdrive/c/Users/username/Documents/revery-quick-start/_esy/default/tmp/esy-3ca345"
           stderr:
                    Cloning into '/cygdrive/c/Users/username/Documents/revery-quick-start/_esy/default/tmp/esy-3ca345'...
                    fatal: unable to access 'https://github.com/ocaml/ocaml-lsp.git/': Could not resolve host: github.com

           stdout:

             fetching dist: github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#cb8aba2238ba5b0e5a6fe0a3180f25077496f75a

error unable to fetch @brisk/brisk-reconciler@github:briskml/brisk-reconciler#10cab2d:

    source: github:briskml/brisk-reconciler#10cab2d
    error: error: command failed: "git" "clone" "https://github.com/briskml/brisk-reconciler.git" "/cygdrive/c/Users/username/Documents/revery-quick-start/_esy/default/tmp/esy-9e24f5"    
           stderr:
                    Cloning into '/cygdrive/c/Users/username/Documents/revery-quick-start/_esy/default/tmp/esy-9e24f5'...
                    fatal: unable to access 'https://github.com/briskml/brisk-reconciler.git/': Could not resolve host: github.com

           stdout:

             fetching dist: github:briskml/brisk-reconciler#10cab2d

error: installation error
fetching esy-m4@github:esy-packages/esy-m4#c7cf0ac9221be2b1f9d90e83559ca08397a629e7
esy: exiting due to errors above

 ~/Documents npm -v
The system cannot find the path specified.
The system cannot find the path specified.
8.3.0
 ~/Documents node -v 
v17.3.0
 ~/Documents esy -v
info esy 0.6.11 (using package.json)
info running:
             esy build-dependencies \
             --all \
             Documents@link-dev:./package.json
info running:
             esy build-package (disable-sandbox: false)\
             Documents@link-dev:./package.json

 ~/Documents

OS: Windows 11 21H2

Any helps?

Error when building esy-skia on MacOS

I went through the steps of installing the quick-start, but it fails at the build stage. I am on MacOS Big Sur and using esy 0.6.11. The same error happens when trying to build the Onivim2 editor.

esy_libjpeg_turbo-dc3b4679/include -Wno-poison-system-directories -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-abstract-vbase-init -Wno-weak-vtables -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-undefined-func-template -c ../../src/ports/SkFontHost_mac.cpp -o obj/src/ports/libskia.SkFontHost_mac.o
    ../../src/ports/SkFontHost_mac.cpp:1721:29: error: multi-character character constant [-Werror,-Wfour-char-constants]
        if (!this->getTableSize('glyf') || !this->getTableSize('loca')) {
                                ^
    ../../src/ports/SkFontHost_mac.cpp:1721:60: error: multi-character character constant [-Werror,-Wfour-char-constants]
        if (!this->getTableSize('glyf') || !this->getTableSize('loca')) {
                                                               ^
    2 errors generated.
    [210/1196] compile ../../third_party/externals/libpng/pngget.c
    [211/1196] compile ../../third_party/externals/icu/source/common/ulistformatter.cpp
    [212/1196] compile ../../third_party/externals/icu/source/common/uiter.cpp
    [213/1196] compile ../../third_party/externals/libpng/pngpread.c
    [214/1196] compile ../../third_party/externals/icu/source/common/uloc_keytype.cpp
    [215/1196] compile ../../third_party/externals/libpng/png.c
    [216/1196] compile ../../third_party/externals/libpng/pngread.c
    [217/1196] compile ../../third_party/externals/icu/source/common/ucnvmbcs.cpp
    [218/1196] compile ../../third_party/externals/icu/source/common/uloc.cpp
    ninja: build stopped: subcommand failed.
    error: command failed: 'bash' './esy/build.sh' 'darwin' '/Users/erikdavtyan/.esy/3____________________________________________________________/i/esy_libjpeg_turbo-dc3b4679' (exited with 1)
    esy-build-package: exiting with errors above...

  building esy-skia@github:revery-ui/esy-skia#91c98f6
esy: exiting due to errors above

Build failure when running `esy build` under Ubuntu 18.04.1 LTS

$ esy build
info esy build 0.4.9 (using package.json)
info building [email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: pwd: $HOME/.esy/3__________________________________________________________________/b/reason_gl_matrix-0.2.1-7d45b189
    # esy-build-package: running: 'refmterr' 'dune' 'build'
             gcc src/glm_stubs.o (exit 1)
    (cd _build/default/src && /usr/bin/gcc -I $HOME/.esy/3__________________________________________________________________/i/ocaml-4.6.9-584f7b7f/lib/ocaml -O2 -fno-strict-aliasing -fwrapv -fPIC -I ./../../../include/glm -fno-exceptions -fno-rtti -lstdc++ -x c++ -o glm_stubs.o -c glm_stubs.cpp)
    In file included from ./../../../include/glm/detail/type_int.hpp:6:0,
                     from ./../../../include/glm/fwd.hpp:6,
                     from ./../../../include/glm/glm.hpp:61,
                     from glm_stubs.cpp:9:
    ./../../../include/glm/detail/setup.hpp:456:100: note: #pragma message: GLM: GCC older than 4.6 has a bug presenting the use of rgba and stpq components
     # pragma message("GLM: GCC older than 4.6 has a bug presenting the use of rgba and stpq components")
                                                                                                        ^
    In file included from ./../../../include/glm/detail/type_vec4.inl:968:0,
                     from ./../../../include/glm/detail/type_vec4.hpp:453,
                     from ./../../../include/glm/vec4.hpp:6,
                     from ./../../../include/glm/glm.hpp:70,
                     from glm_stubs.cpp:9:
    ./../../../include/glm/detail/type_vec4_simd.inl: In static member function 'static glm::tvec4<float, (glm::precision)5> glm::detail::compute_vec4_div<float, (glm::precision)5, true>::call(const glm::tvec4<float, (glm::precision)5>&, const glm::tvec4<float, (glm::precision)5>&)':
    ./../../../include/glm/detail/type_vec4_simd.inl:156:11: error: 'struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
        Result.data = _mm_mul_ps(a.data, _mm_rcp_ps(b.data));
               ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl:156:31: error: 'const struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
        Result.data = _mm_mul_ps(a.data, _mm_rcp_ps(b.data));
                                   ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl:156:50: error: 'const struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
        Result.data = _mm_mul_ps(a.data, _mm_rcp_ps(b.data));
                                                      ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T) [with T = float; glm::precision P = (glm::precision)5]':
    ./../../../include/glm/detail/type_vec4_simd.inl:367:3: error: class 'glm::tvec4<float, (glm::precision)5>' does not have any field named 'data'
       data(_mm_set1_ps(s))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T) [with T = float; glm::precision P = (glm::precision)4]':
    ./../../../include/glm/detail/type_vec4_simd.inl:372:3: error: class 'glm::tvec4<float, (glm::precision)4>' does not have any field named 'data'
       data(_mm_set1_ps(s))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T) [with T = float; glm::precision P = (glm::precision)3]':
    ./../../../include/glm/detail/type_vec4_simd.inl:377:3: error: class 'glm::tvec4<float, (glm::precision)3>' does not have any field named 'data'
       data(_mm_set1_ps(s))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T) [with T = int; glm::precision P = (glm::precision)5]':
    ./../../../include/glm/detail/type_vec4_simd.inl:399:3: error: class 'glm::tvec4<int, (glm::precision)5>' does not have any field named 'data'
       data(_mm_set1_epi32(s))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T) [with T = int; glm::precision P = (glm::precision)4]':
    ./../../../include/glm/detail/type_vec4_simd.inl:404:3: error: class 'glm::tvec4<int, (glm::precision)4>' does not have any field named 'data'
       data(_mm_set1_epi32(s))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T) [with T = int; glm::precision P = (glm::precision)3]':
    ./../../../include/glm/detail/type_vec4_simd.inl:409:3: error: class 'glm::tvec4<int, (glm::precision)3>' does not have any field named 'data'
       data(_mm_set1_epi32(s))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T, T, T, T) [with T = float; glm::precision P = (glm::precision)5]':
    ./../../../include/glm/detail/type_vec4_simd.inl:431:3: error: class 'glm::tvec4<float, (glm::precision)5>' does not have any field named 'data'
       data(_mm_set_ps(d, c, b, a))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T, T, T, T) [with T = float; glm::precision P = (glm::precision)4]':
    ./../../../include/glm/detail/type_vec4_simd.inl:436:3: error: class 'glm::tvec4<float, (glm::precision)4>' does not have any field named 'data'
       data(_mm_set_ps(d, c, b, a))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(T, T, T, T) [with T = float; glm::precision P = (glm::precision)3]':
    ./../../../include/glm/detail/type_vec4_simd.inl:441:3: error: class 'glm::tvec4<float, (glm::precision)3>' does not have any field named 'data'
       data(_mm_set_ps(d, c, b, a))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(A, B, C, D) [with A = int; B = int; C = int; D = int; T = int; glm::precision P = (glm::precision)5]':
    ./../../../include/glm/detail/type_vec4_simd.inl:447:3: error: class 'glm::tvec4<int, (glm::precision)5>' does not have any field named 'data'
       data(_mm_set_epi32(d, c, b, a))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(A, B, C, D) [with A = int; B = int; C = int; D = int; T = int; glm::precision P = (glm::precision)4]':
    ./../../../include/glm/detail/type_vec4_simd.inl:453:3: error: class 'glm::tvec4<int, (glm::precision)4>' does not have any field named 'data'
       data(_mm_set_epi32(d, c, b, a))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(A, B, C, D) [with A = int; B = int; C = int; D = int; T = int; glm::precision P = (glm::precision)3]':
    ./../../../include/glm/detail/type_vec4_simd.inl:459:3: error: class 'glm::tvec4<int, (glm::precision)3>' does not have any field named 'data'
       data(_mm_set_epi32(d, c, b, a))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(A, B, C, D) [with A = int; B = int; C = int; D = int; T = float; glm::precision P = (glm::precision)5]':
    ./../../../include/glm/detail/type_vec4_simd.inl:465:3: error: class 'glm::tvec4<float, (glm::precision)5>' does not have any field named 'data'
       data(_mm_castsi128_ps(_mm_set_epi32(d, c, b, a)))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(A, B, C, D) [with A = int; B = int; C = int; D = int; T = float; glm::precision P = (glm::precision)4]':
    ./../../../include/glm/detail/type_vec4_simd.inl:471:3: error: class 'glm::tvec4<float, (glm::precision)4>' does not have any field named 'data'
       data(_mm_castsi128_ps(_mm_set_epi32(d, c, b, a)))
       ^~~~
    ./../../../include/glm/detail/type_vec4_simd.inl: In constructor 'glm::tvec4<T, P>::tvec4(A, B, C, D) [with A = int; B = int; C = int; D = int; T = float; glm::precision P = (glm::precision)3]':
    ./../../../include/glm/detail/type_vec4_simd.inl:477:3: error: class 'glm::tvec4<float, (glm::precision)3>' does not have any field named 'data'
       data(_mm_castsi128_ps(_mm_set_epi32(d, c, b, a)))
       ^~~~
    In file included from ./../../../include/glm/detail/../detail/func_exponential.inl:144:0,
                     from ./../../../include/glm/detail/../detail/func_exponential.hpp:103,
                     from ./../../../include/glm/detail/../detail/func_geometric.inl:4,
                     from ./../../../include/glm/detail/../detail/func_geometric.hpp:113,
                     from ./../../../include/glm/detail/../geometric.hpp:6,
                     from ./../../../include/glm/detail/func_matrix.inl:4,
                     from ./../../../include/glm/detail/func_matrix.hpp:149,
                     from ./../../../include/glm/detail/type_mat2x2.inl:4,
                     from ./../../../include/glm/detail/type_mat2x2.hpp:182,
                     from ./../../../include/glm/mat2x2.hpp:6,
                     from ./../../../include/glm/glm.hpp:71,
                     from glm_stubs.cpp:9:
    ./../../../include/glm/detail/../detail/func_exponential_simd.inl: In static member function 'static glm::tvec4<float, (glm::precision)5> glm::detail::compute_sqrt<glm::tvec4, float, (glm::precision)5, true>::call(const glm::tvec4<float, (glm::precision)5>&)':
    ./../../../include/glm/detail/../detail/func_exponential_simd.inl:28:11: error: 'struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
        result.data = glm_vec4_sqrt_lowp(v.data);
               ^~~~
    ./../../../include/glm/detail/../detail/func_exponential_simd.inl:28:39: error: 'const struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
        result.data = glm_vec4_sqrt_lowp(v.data);
                                           ^~~~
    In file included from ./../../../include/glm/detail/func_matrix.inl:399:0,
                     from ./../../../include/glm/detail/func_matrix.hpp:149,
                     from ./../../../include/glm/detail/type_mat2x2.inl:4,
                     from ./../../../include/glm/detail/type_mat2x2.hpp:182,
                     from ./../../../include/glm/mat2x2.hpp:6,
                     from ./../../../include/glm/glm.hpp:71,
                     from glm_stubs.cpp:9:
    ./../../../include/glm/detail/func_matrix_simd.inl: In function 'typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type glm::outerProduct(const vecTypeA<T, P>&, const vecTypeB<T, P>&) [with T = float; glm::precision P = (glm::precision)5; vecTypeA = glm::tvec4; vecTypeB = glm::tvec4; typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type = glm::tmat4x4<float, (glm::precision)5>]':
    ./../../../include/glm/detail/func_matrix_simd.inl:67:27: error: 'const struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                               ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl:67:35: error: 'const struct glm::tvec4<float, (glm::precision)5>' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                       ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl:67:79: error: 'glm::tmat4x4<float, (glm::precision)5>::col_type {aka struct glm::tvec4<float, (glm::precision)5>}' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                                                                   ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl: In function 'typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type glm::outerProduct(const vecTypeA<T, P>&, const vecTypeB<T, P>&) [with T = float; glm::precision P = (glm::precision)4; vecTypeA = glm::tvec4; vecTypeB = glm::tvec4; typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type = glm::tmat4x4<float, (glm::precision)4>]':
    ./../../../include/glm/detail/func_matrix_simd.inl:75:27: error: 'const struct glm::tvec4<float, (glm::precision)4>' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                               ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl:75:35: error: 'const struct glm::tvec4<float, (glm::precision)4>' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                       ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl:75:79: error: 'glm::tmat4x4<float, (glm::precision)4>::col_type {aka struct glm::tvec4<float, (glm::precision)4>}' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                                                                   ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl: In function 'typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type glm::outerProduct(const vecTypeA<T, P>&, const vecTypeB<T, P>&) [with T = float; glm::precision P = (glm::precision)3; vecTypeA = glm::tvec4; vecTypeB = glm::tvec4; typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type = glm::tmat4x4<float, (glm::precision)3>]':
    ./../../../include/glm/detail/func_matrix_simd.inl:83:27: error: 'const struct glm::tvec4<float, (glm::precision)3>' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                               ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl:83:35: error: 'const struct glm::tvec4<float, (glm::precision)3>' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                       ^~~~
    ./../../../include/glm/detail/func_matrix_simd.inl:83:79: error: 'glm::tmat4x4<float, (glm::precision)3>::col_type {aka struct glm::tvec4<float, (glm::precision)3>}' has no member named 'data'
       glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                                                                   ^~~~
    error: command failed: 'refmterr' 'dune' 'build' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building [email protected]
esy: exiting due to errors above

Can't build on Mac (ocaml-lsp-server - Library "cmdliner" not found)

Hi, I can't build revery-quick-start on Mac OSX Catalina 10.15.3, esy build fails with error:

error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @opam/ocaml-lsp-server@github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#04733ed
    # esy-build-package: pwd: /Users/robmurtagh/.esy/3______________________________________________________________/b/opam__s__ocaml_lsp_server-ba097269
    # esy-build-package: running: 'dune' 'build' '-j' '4' '--root' '.' '--ignore-promoted-rules' '--no-config' '--profile' 'release' 'ocaml-lsp-server.install'
    File "ocaml-lsp-server/src/dune", line 8, characters 3-11:
    8 |    cmdliner))
           ^^^^^^^^
    Error: Library "cmdliner" not found.
    Hint: try:
    dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules
    --profile release -j 4 ocaml-lsp-server.install
    error: command failed: 'dune' 'build' '-j' '4' '--root' '.' '--ignore-promoted-rules' '--no-config' '--profile' 'release' 'ocaml-lsp-server.install' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building @opam/ocaml-lsp-server@github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#04733ed
esy: exiting due to errors above

I can fix it by rolling back to a previous version before this diff. e.g.

git checkout a99fee9dce8deea6d84a392994cf68d01a348711
esy build && esy run

Any idea of the best way to resolve this one?

Thanks in advance!

esy build failed with exit code 1 (width is type int but string expected)

I'm getting this error when trying to build the quick start on Ubuntu (Budgie) 20.04:

roger@T420:~/prj/reason/revery-quick-start$ esy install
info install 0.6.4 (using package.json)
info checking https://github.com/ocaml/opam-repository for updates...
info checking https://github.com/esy-ocaml/esy-opam-override for updates...
info resolving esy packages: done                         
info solving esy constraints: done         
info resolving npm packages: done                      
info fetching: done                                                                                    
info installing: done                                                                                             
roger@T420:~/prj/reason/revery-quick-start$ esy build
info esy build 0.6.4 (using package.json)
info building @opam/ocaml-secondary-compiler@opam:4.08.1-1@285d05c7
info building @opam/ocaml-secondary-compiler@opam:4.08.1-1@285d05c7: done
info building @opam/ocamlfind-secondary@opam:1.8.1@1afa38b2
info building @opam/ocamlfind-secondary@opam:1.8.1@1afa38b2: done
info building @opam/dune@opam:2.5.1@bf0da232
info building @opam/dune@opam:2.5.1@bf0da232: done
info building @opam/cppo@opam:1.6.6@f4f83858
info building @opam/fix@opam:20200131@0ecd2f01
info building @opam/menhirLib@opam:20200211@93d0f001
info building @opam/menhirSdk@opam:20200211@b2a79ec0
info building @opam/easy-format@opam:1.3.2@0484b3c4
info building @opam/stdlib-shims@opam:0.1.0@d957c903
info building @opam/ppx_derivers@opam:1.2.1@ecf0aa45
info building @opam/result@opam:1.5@6b753c82
info building @opam/dune-private-libs@opam:2.5.1@60c1661f
info building @opam/sexplib0@opam:v0.14.0@ddeb6438
info building @opam/ocaml-compiler-libs@opam:v0.12.1@5c34eb0d
info building @opam/mmap@opam:1.1.0@b85334ff
info building @opam/stdlib-shims@opam:0.1.0@d957c903: done
info building @opam/re@opam:1.9.0@d4d5e13d
info building @opam/ppx_derivers@opam:1.2.1@ecf0aa45: done
info building @opam/psq@opam:0.2.0@247756d4
info building @opam/easy-format@opam:1.3.2@0484b3c4: done
info building @opam/ppx_tools@opam:6.0+4.08.0@5f5453f4
info building @opam/sexplib0@opam:v0.14.0@ddeb6438: done
info building @opam/integers@opam:0.4.0@f7acfaeb
info building @opam/result@opam:1.5@6b753c82: done
info building @opam/camomile@opam:1.0.2@51b42ad8
info building @opam/psq@opam:0.2.0@247756d4: done
info building @opam/trie@opam:1.0.0@d2efc587
info building @opam/mmap@opam:1.1.0@b85334ff: done
info building revery-text-wrap@github:revery-ui/revery-text-wrap#966383e@d41d8cd9
info building @opam/trie@opam:1.0.0@d2efc587: done
info building @opam/fmt@opam:0.8.8@01c3a23c
info building @opam/fix@opam:20200131@0ecd2f01: done
info building @opam/biniou@opam:1.2.1@d7570399
info building revery-text-wrap@github:revery-ui/revery-text-wrap#966383e@d41d8cd9: done
info building @opam/ocaml-migrate-parsetree@opam:1.7.3@dbcf3b47
info building @opam/integers@opam:0.4.0@f7acfaeb: done
info building @opam/fpath@opam:0.7.2@45477b93
info building @opam/re@opam:1.9.0@d4d5e13d: done
info building @opam/ptime@opam:0.8.5@0051d642
info building @opam/biniou@opam:1.2.1@d7570399: done
info building @opam/lru@github:bryphe/lru:lru.opam#2708c70@d41d8cd9
info building @opam/lru@github:bryphe/lru:lru.opam#2708c70@d41d8cd9: done
info building @opam/mew@opam:0.1.0@a74f69d6
info building @opam/cppo@opam:1.6.6@f4f83858: done
info building @opam/ctypes@opam:0.15.1@b0227b2f
info building @opam/fpath@opam:0.7.2@45477b93: done
info building @opam/tyxml@opam:4.4.0@1dca5713
info building @opam/fmt@opam:0.8.8@01c3a23c: done
info building @opam/yojson@opam:1.7.0@7056d985
info building @opam/menhirLib@opam:20200211@93d0f001: done
info building @opam/ocplib-endian@opam:1.1@84c1ca88
info building @opam/menhirSdk@opam:20200211@b2a79ec0: done
info building @opam/merlin-extend@opam:0.5@675b1611
info building @opam/mew@opam:0.1.0@a74f69d6: done
info building @opam/menhir@opam:20200211@26571604
info building @opam/ocplib-endian@opam:1.1@84c1ca88: done
info building @opam/mew_vi@opam:0.3.0@bf3ebe06
info building @opam/merlin-extend@opam:0.5@675b1611: done
info building @opam/ptime@opam:0.8.5@0051d642: done
info building @opam/mew_vi@opam:0.3.0@bf3ebe06: done
info building @opam/yojson@opam:1.7.0@7056d985: done
info building @opam/atdgen-runtime@opam:2.2.1@6a3a6395
info building @opam/ppx_yojson_conv_lib@opam:v0.14.0@116b53d6
info building @opam/ppx_yojson_conv_lib@opam:v0.14.0@116b53d6: done
info building @opam/ocaml-compiler-libs@opam:v0.12.1@5c34eb0d: done
info building @opam/atdgen-runtime@opam:2.2.1@6a3a6395: done
info building @opam/ppx_tools@opam:6.0+4.08.0@5f5453f4: done
info building @opam/tyxml@opam:4.4.0@1dca5713: done
info building @opam/junit@opam:2.0.2@0b7bd730
info building @opam/printbox@opam:0.5@82f5d436
info building @opam/junit@opam:2.0.2@0b7bd730: done
info building @opam/printbox@opam:0.5@82f5d436: done
info building @opam/ocaml-migrate-parsetree@opam:1.7.3@dbcf3b47: done
info building @opam/ppxfind@opam:1.4@1e01d2a5
info building @opam/ppx_tools_versioned@opam:5.4.0@48c10ee1
info building @opam/menhir@opam:20200211@26571604: done
info building @opam/atd@opam:2.2.1@071ab6bd
info building @esy-ocaml/[email protected]@d41d8cd9
info building @opam/ocaml-lsp-server@github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#04733ed@d41d8cd9
info building @opam/camomile@opam:1.0.2@51b42ad8: done
info building @opam/charInfo_width@opam:1.1.0@9d8d61b2
info building @opam/dune-private-libs@opam:2.5.1@60c1661f: done
info building @opam/dune-configurator@opam:2.5.1@aeb9d8d5
info building @opam/charInfo_width@opam:1.1.0@9d8d61b2: done
info building @opam/zed@opam:3.0.1@44b41979
info building @opam/ppxfind@opam:1.4@1e01d2a5: done
info building @opam/ppx_deriving@opam:4.5@bb81afdc
info building @opam/atd@opam:2.2.1@071ab6bd: done
info building @opam/atdgen@opam:2.2.1@d73fda11
info building @opam/zed@opam:3.0.1@44b41979: done
info building @opam/ppx_deriving@opam:4.5@bb81afdc: done
info building @opam/ctypes@opam:0.15.1@b0227b2f: done
info building @opam/atdgen@opam:2.2.1@d73fda11: done
info building @opam/ppx_tools_versioned@opam:5.4.0@48c10ee1: done
info building @opam/dune-configurator@opam:2.5.1@aeb9d8d5: done
info building @opam/lwt@opam:4.5.0@677655b4
info building @opam/base@opam:v0.14.0@b8817fc1
info building @esy-ocaml/[email protected]@d41d8cd9: done
info building rebez@github:jchavarri/rebez#03fa3b7@d41d8cd9
info building reason-native-crash-utils@github:onivim/reason-native-crash-utils#ae1fd34@d41d8cd9
info building [email protected]@d41d8cd9
info building [email protected]@d41d8cd9
info building [email protected]@d41d8cd9
info building @reason-native/[email protected]@d41d8cd9
info building @reason-native/[email protected]@d41d8cd9
info building rebez@github:jchavarri/rebez#03fa3b7@d41d8cd9: done
info building @reason-native/[email protected]@d41d8cd9: done
info building @reason-native/[email protected]@d41d8cd9: done
info building [email protected]@d41d8cd9
info building @reason-native/[email protected]@d41d8cd9
info building @reason-native/[email protected]@d41d8cd9
info building reason-native-crash-utils@github:onivim/reason-native-crash-utils#ae1fd34@d41d8cd9: done
info building @reason-native/[email protected]@d41d8cd9: done
info building [email protected]@d41d8cd9: done
info building [email protected]@d41d8cd9: done
info building @reason-native/[email protected]@d41d8cd9: done
info building @reason-native/[email protected]@d41d8cd9
info building [email protected]@d41d8cd9: done
info building [email protected]@d41d8cd9: done
info building [email protected]@d41d8cd9
info building [email protected]@d41d8cd9
info building [email protected]@d41d8cd9: done
info building @reason-native/[email protected]@d41d8cd9: done
info building @opam/lwt@opam:4.5.0@677655b4: done
info building @opam/logs@opam:0.7.0@1d03143e
info building @opam/lwt_react@opam:1.1.3@72987fcf
info building @opam/lwt_log@opam:1.1.1@2d7a797f
info building @opam/lwt_ppx@opam:2.0.1@ab0debb8
info building @opam/lwt_log@opam:1.1.1@2d7a797f: done
info building @opam/logs@opam:0.7.0@1d03143e: done
info building @glennsl/[email protected]@d41d8cd9
info building @opam/base@opam:v0.14.0@b8817fc1: done
info building @opam/stdio@opam:v0.14.0@a624e254
info building @opam/stdio@opam:v0.14.0@a624e254: done
info building @opam/ppxlib@opam:0.13.0@65a9c7cc
info building [email protected]@d41d8cd9: done
info building reason-skia@github:revery-ui/reason-skia#6b459c7@d41d8cd9
info building @glennsl/[email protected]@d41d8cd9: done
info building @opam/ocaml-lsp-server@github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#04733ed@d41d8cd9: done
info building @opam/lwt_react@opam:1.1.3@72987fcf: done
info building @opam/lambda-term@opam:3.0.1@161f34f6
info building @opam/lwt_ppx@opam:2.0.1@ab0debb8: done
info building @opam/lambda-term@opam:3.0.1@161f34f6: done
info building [email protected]@d41d8cd9
info building [email protected]@d41d8cd9: done
info building @opam/ppxlib@opam:0.13.0@65a9c7cc: done
info building @brisk/brisk-reconciler@github:briskml/brisk-reconciler#10cab2d@d41d8cd9
info building @brisk/brisk-reconciler@github:briskml/brisk-reconciler#10cab2d@d41d8cd9: done
info building reason-skia@github:revery-ui/reason-skia#6b459c7@d41d8cd9: done
info building [email protected]@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: [email protected]
    # esy-build-package: pwd: /home/roger/.esy/source/i/revery__0.31.0__3c05c5dd
    # esy-build-package: running: 'dune' 'build' '-p' 'Revery' '-j4'
          ocamlc src/Core/.Revery_Core.objs/byte/revery_Core__Window.{cmo,cmt} (exit 2)
    (cd /home/roger/.esy/3/b/revery-0.31.0-54ce92ec/default && /home/roger/.esy/3____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/bin/ocamlc.opt -w -40 -g -bin-annot -I src/Core/.Revery_Core.objs/byte -I /home/roger/.esy/3____________________________________________________________________/i/flex-1.2.3-7d91f3d4/lib/flex -I /home/roger/.esy/3____________________________________________________________________/i/glennsl__s__timber-1.0.0-7aa1cd08/lib/timber -I /home/roger/.esy/3____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/threads -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__astring-opam__c__0.8.3-0c25d724/lib/astring -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-027047fa/lib/ctypes -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__fmt-opam__c__0.8.8-1b02a315/lib/fmt -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__fpath-opam__c__0.7.2-5a35826f/lib/fpath -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__integers-opam__c__0.4.0-f8d47e3e/lib/integers -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__logs-opam__c__0.7.0-46ffd758/lib/logs -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-b8e962f6/lib/lwt -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-b8e962f6/lib/lwt/unix -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__mmap-opam__c__1.1.0-1baae5f7/lib/mmap -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.1-242ae9bc/lib/bytes -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ocplib_endian-opam__c__1.1-dd1e9f0e/lib/ocplib-endian -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ocplib_endian-opam__c__1.1-dd1e9f0e/lib/ocplib-endian/bigstring -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ppx__deriving-opam__c__4.5-4fc0dad8/lib/ppx_deriving/runtime -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__re-opam__c__1.9.0-a0547c5f/lib/re -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__result-opam__c__1.5-58bd824e/lib/result -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__seq-opam__c__base-e5950f59/lib/seq -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__stdlib_shims-opam__c__0.1.0-1dcc6d47/lib/stdlib-shims -I /home/roger/.esy/3____________________________________________________________________/i/reason_native__s__console-0.0.3-23c14fdd/lib/console/lib -I /home/roger/.esy/3____________________________________________________________________/i/reason_sdl2-2.10.3032-b448b829/lib/sdl2 -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped/bindings -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped/c -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped/types -I /home/roger/.esy/3____________________________________________________________________/i/rench-1.9.1-c324beb1/lib/Rench -I /home/roger/.esy/3____________________________________________________________________/i/revery_text_wrap-3c87d327/lib/revery-text-wrap -I src/Native/.Revery_Native.objs/byte -I src/Native/.Revery_Native.objs/native -intf-suffix .ml -no-alias-deps -open Revery_Core__ -o src/Core/.Revery_Core.objs/byte/revery_Core__Window.cmo -c -impl src/Core/Window.re.pp.ml)
    File "src/Core/Window.re", line 411, characters 29-34:
    411 |   let w = Sdl2.Window.create(width, height, name);
                                       ^^^^^
    Error: This expression has type int but an expression was expected of type
             string
        ocamlopt src/Core/.Revery_Core.objs/native/revery_Core__Window.{cmx,o} (exit 2)
    (cd /home/roger/.esy/3/b/revery-0.31.0-54ce92ec/default && /home/roger/.esy/3____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/bin/ocamlopt.opt -w -40 -g -I src/Core/.Revery_Core.objs/byte -I src/Core/.Revery_Core.objs/native -I /home/roger/.esy/3____________________________________________________________________/i/flex-1.2.3-7d91f3d4/lib/flex -I /home/roger/.esy/3____________________________________________________________________/i/glennsl__s__timber-1.0.0-7aa1cd08/lib/timber -I /home/roger/.esy/3____________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/lib/ocaml/threads -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__astring-opam__c__0.8.3-0c25d724/lib/astring -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ctypes-opam__c__0.15.1-027047fa/lib/ctypes -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__fmt-opam__c__0.8.8-1b02a315/lib/fmt -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__fpath-opam__c__0.7.2-5a35826f/lib/fpath -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__integers-opam__c__0.4.0-f8d47e3e/lib/integers -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__logs-opam__c__0.7.0-46ffd758/lib/logs -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-b8e962f6/lib/lwt -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__lwt-opam__c__4.5.0-b8e962f6/lib/lwt/unix -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__mmap-opam__c__1.1.0-1baae5f7/lib/mmap -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ocamlfind-opam__c__1.8.1-242ae9bc/lib/bytes -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ocplib_endian-opam__c__1.1-dd1e9f0e/lib/ocplib-endian -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ocplib_endian-opam__c__1.1-dd1e9f0e/lib/ocplib-endian/bigstring -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__ppx__deriving-opam__c__4.5-4fc0dad8/lib/ppx_deriving/runtime -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__re-opam__c__1.9.0-a0547c5f/lib/re -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__result-opam__c__1.5-58bd824e/lib/result -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__seq-opam__c__base-e5950f59/lib/seq -I /home/roger/.esy/3____________________________________________________________________/i/opam__s__stdlib_shims-opam__c__0.1.0-1dcc6d47/lib/stdlib-shims -I /home/roger/.esy/3____________________________________________________________________/i/reason_native__s__console-0.0.3-23c14fdd/lib/console/lib -I /home/roger/.esy/3____________________________________________________________________/i/reason_sdl2-2.10.3032-b448b829/lib/sdl2 -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped/bindings -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped/c -I /home/roger/.esy/3____________________________________________________________________/i/reason_skia-6f8ac83d/lib/skia/wrapped/types -I /home/roger/.esy/3____________________________________________________________________/i/rench-1.9.1-c324beb1/lib/Rench -I /home/roger/.esy/3____________________________________________________________________/i/revery_text_wrap-3c87d327/lib/revery-text-wrap -I src/Native/.Revery_Native.objs/byte -I src/Native/.Revery_Native.objs/native -intf-suffix .ml -no-alias-deps -open Revery_Core__ -o src/Core/.Revery_Core.objs/native/revery_Core__Window.cmx -c -impl src/Core/Window.re.pp.ml)
    File "src/Core/Window.re", line 411, characters 29-34:
    411 |   let w = Sdl2.Window.create(width, height, name);
                                       ^^^^^
    Error: This expression has type int but an expression was expected of type
             string
    error: command failed: 'dune' 'build' '-p' 'Revery' '-j4' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building [email protected]
esy: exiting due to errors above

esy 0.6.10 fails on Void Linux with fresh clone

I'm trying to build a fresh clone of the quick start repo, and this error with the reason-native-crash-utils happens that I've never seen before:

info esy 0.6.10 (using package.json)
info fetching: done
info installing: done
info building reason-native-crash-utils@github:onivim/reason-native-crash-utils#38c8f00@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: reason-native-crash-utils@github:onivim/reason-native-crash-utils#38c8f00
    # esy-build-package: pwd: /home/varun/.esy/source/i/reason_native_crash_utils__a616af2e
    # esy-build-package: running: 'dune' 'build' '-p' 'reason-native-crash-utils'
        ocamlopt asan/Asan.cmxs (exit 2)
    (cd /home/varun/.esy/3/b/reason_native_crash_utils-bf596437/default && /home/varun/.esy/3___________________________________________________________________/i/ocaml-4.9.1000-ffe51dac/bin/ocamlopt.opt -w -40 -g -shared -linkall -I asan -o asan/Asan.cmxs asan/Asan.cmxa)
    /usr/bin/ld: cannot find -lasan
    collect2: error: ld returned 1 exit status
    File "caml_startup", line 1:
    Error: Error during linking
    error: command failed: 'dune' 'build' '-p' 'reason-native-crash-utils' (exited with 1)
    esy-build-package: exiting with errors above...

  building reason-native-crash-utils@github:onivim/reason-native-crash-utils#38c8f00
esy: exiting due to errors above

I removed my ~/.esy directory, but the problem persists. Not sure what is happening.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.