xavierleroy / camlidl

Stub code generator for OCaml/C interface
Other
34 stars 8 forks source link

Failure to compile on OSX Big Sur #19

Closed hubrix closed 3 years ago

hubrix commented 3 years ago
#=== ERROR while compiling camlidl.1.05 =======================================#
# context     2.0.8 | macos/x86_64 | ocaml-base-compiler.4.02.0 | https://opam.ocaml.org#bdf246ee
# path        ~/.opam/4.02.0/.opam-switch/build/camlidl.1.05
# command     ~/.opam/opam-init/hooks/sandbox.sh build make all
# exit-code   2
# env-file    ~/.opam/log/camlidl-34911-6aa130.env
# output-file ~/.opam/log/camlidl-34911-6aa130.out
### output ###
# [...]
# comerror.c:171:16: error: implicit declaration of function 'caml_format_exception' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
#   char * msg = format_caml_exception(exn_bucket);
#                ^
# /Users/mark/.opam/4.02.0/lib/ocaml/caml/compatibility.h:249:31: note: expanded from macro 'format_caml_exception'
# #define format_caml_exception caml_format_exception /*SP*/
#                               ^
# comerror.c:171:10: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
#   char * msg = format_caml_exception(exn_bucket);
#          ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2 warnings and 1 error generated.
# make[1]: *** [comerror.o] Error 2
# make: *** [all] Error 2
hubrix commented 3 years ago
opam switch create ocaml-system.4.10.2
opam switch ocaml-system.4.10.2
opam install camlidl