Skip to content

Instantly share code, notes, and snippets.

@jordwalke
Created March 4, 2020 01:16
Show Gist options
  • Save jordwalke/605a19321c88e3c2368a6f6693e7e394 to your computer and use it in GitHub Desktop.
Save jordwalke/605a19321c88e3c2368a6f6693e7e394 to your computer and use it in GitHub Desktop.
SDL2 build failure
error: build failed with exit code: 1
build log:
# esy-build-package: building: [email protected]
# esy-build-package: pwd: /Users/jwalke/.esy/source/i/reason_sdl2__2.10.3018__dacc7a39
# esy-build-package: running: 'dune' 'build' '-p' 'sdl2'
gcc src/sdl2_wrapper.o (exit 1)
(cd /Users/jwalke/.esy/3/b/reason_sdl2-2.10.3018-5aa8652b/default/src && /usr/bin/gcc -I /Users/jwalke/.esy/3__________________________________________________________________/i/ocaml-4.9.0-27f2b357/lib/ocaml -I /Users/jwalke/.esy/3__________________________________________________________________/i/esy_sdl2-2.0.10005-690e644d/include -I /Users/jwalke/.esy/source/i/reason_sdl2__2.10.3018__dacc7a39/include -I /Users/jwalke/.esy/source/i/reason_sdl2__2.10.3018__dacc7a39/src -x objective-c++ -g -o sdl2_wrapper.o -c sdl2_wrapper.cpp)
sdl2_wrapper.cpp:1241:24: error: assigning to 'value *' (aka 'long *') from incompatible type 'const value *' (aka 'const long *')
reason_sdl_onLog = caml_named_value("reason_sdl2_onLog");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment