google-drive-ocamlfuse icon indicating copy to clipboard operation
google-drive-ocamlfuse copied to clipboard

Big Sur compilation failure: opam install google-drive-ocamlfuse

Open hubrix opened this issue 3 years ago • 4 comments

opam install google-drive-ocamlfuse                                                                                                                                                                                                                                                                  31 ↵
The following actions will be performed:
  ∗ install camlidl                1.05       [required by google-drive-ocamlfuse]
  ∗ install ocamlfuse              2.7.1-cvs5 [required by google-drive-ocamlfuse]
  ∗ install google-drive-ocamlfuse 0.6.21
===== ∗ 3 =====
Do you want to continue? [Y/n] y

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[camlidl.1.05] found in cache
[google-drive-ocamlfuse.0.6.21] found in cache
[ocamlfuse.2.7.1-cvs5] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[ERROR] The compilation of camlidl failed at "/Users/mark/.opam/opam-init/hooks/sandbox.sh build make all".

#=== 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



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
┌─ The following actions failed
│ λ build camlidl 1.05
└─
╶─ No changes have been performed

hubrix avatar Feb 28 '21 18:02 hubrix

#https://github.com/xavierleroy/camlidl/issues/19

hubrix avatar Feb 28 '21 18:02 hubrix

opam switch create ocaml-system.4.10.2
opam switch ocaml-system.4.10.2
opam install camlidl

hubrix avatar Feb 28 '21 18:02 hubrix

[ERROR] The compilation of ocamlfuse failed at "/Users/mark/.opam/opam-init/hooks/sandbox.sh build dune build -p ocamlfuse -j 11".
∗ installed extlib.1.7.8
∗ installed ocurl.0.9.1
∗ installed ocamlnet.4.1.8
∗ installed gapi-ocaml.0.4.1

#=== ERROR while compiling ocamlfuse.2.7.1-cvs7 ===============================#
# context     2.0.8 | macos/x86_64 | ocaml-system.4.10.2 | https://opam.ocaml.org#64c8abec
# path        ~/.opam/ocaml-system.4.10.2/.opam-switch/build/ocamlfuse.2.7.1-cvs7
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p ocamlfuse -j 11
# exit-code   1
# env-file    ~/.opam/log/ocamlfuse-42427-3fad85.env
# output-file ~/.opam/log/ocamlfuse-42427-3fad85.out
### output ###
# Unix_util_stubs.c:85:9: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
# [...]
# Unix_util_stubs.c:85:9: note: did you mean 'fwrite'?
# /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:165:9: note: 'fwrite' declared here
# size_t   fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite);
#          ^
# Unix_util_stubs.c:115:3: error: implicit declaration of function 'fchdir' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
#   fchdir(Int_val(fd));
#   ^
# Unix_util_stubs.c:143:3: warning: expression result unused [-Wunused-value]
#   bufv;
#   ^~~~
# 1 warning and 3 errors generated.

hubrix avatar Feb 28 '21 18:02 hubrix

#https://github.com/astrada/ocamlfuse/issues/20

hubrix avatar Feb 28 '21 18:02 hubrix