Closed fakenickels closed 3 years ago
Maybe related to https://github.com/dotnet/runtime/issues/41095?
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/fakenickels/.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
It was the error I got while building https://github.com/lessp/wolfred
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 : NSObjectSteps to reproduce