Skip to content

Instantly share code, notes, and snippets.

@seanbreckenridge
Created September 17, 2023 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbreckenridge/4e86d5a2b74aa4104fa129b15a1eef82 to your computer and use it in GitHub Desktop.
Save seanbreckenridge/4e86d5a2b74aa4104fa129b15a1eef82 to your computer and use it in GitHub Desktop.
$ opam install dune --verbose
The following actions will be performed:
∗ install dune 3.10.0
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.10.0] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+ /data/data/com.termux/files/home/.opam/5.0.0/bin/ocaml "boot/bootstrap.ml" "-j" "1" (CWD=/data/data/com.termux/files/home/.opam/5.0.0/.opam-switch/build/dune.3.10.0)
- ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot -I +unix unix.cma boot/libs.ml boot/duneboot.ml
- /data/data/com.termux/files/usr/tmp/camlobjc7d829.c:17155:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype]
- extern value caml_get_public_method();
- ^
- /data/data/com.termux/files/home/.opam/5.0.0/lib/ocaml/caml/mlvalues.h:236:18: note: conflicting prototype is here
- CAMLextern value caml_get_public_method (value obj, value tag);
- ^
- /data/data/com.termux/files/usr/tmp/camlobjc7d829.c:17357:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype]
- extern value caml_set_oo_id();
- ^
- /data/data/com.termux/files/home/.opam/5.0.0/lib/ocaml/caml/mlvalues.h:423:18: note: conflicting prototype is here
- CAMLextern value caml_set_oo_id(value obj);
- ^
- 2 warnings generated.
- ./.duneboot.exe -j 1
- cd _boot && /data/data/com.termux/files/home/.opam/5.0.0/bin/ocamlopt.opt -o ../_boot/dune.exe -g -I +unix -I +threads unix.cmxa threads.cmxa -no-alias-deps -w -49-6 readdir.c wait3_stubs.c signal_stubs.c platform_stubs.c copyfile_stubs.c dune_digest_stubs.c xdg_stubs.c spawn_stubs.c dune_stats_stubs.c dune_flock.c csexp_rpc_stubs.c fsevents_stubs.c inotify_stubs.c fswatch_win_stubs.c sha512_stubs.c sha256_stubs.c sha1_stubs.c winsize.c -args mods_list -alert -unstable
- otherlibs/stdune/src/wait3_stubs.c:59:9: error: call to undeclared function 'wait3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
- pid = wait3(&status, cv_flags, &ru);
- ^
- 1 error generated.
-
[ERROR] The compilation of dune failed at
"/data/data/com.termux/files/home/.opam/5.0.0/bin/ocaml boot/bootstrap.ml
-j 1".
#=== ERROR while compiling dune.3.10.0 ========================================#
# context 2.0.4 | linux/arm64 | ocaml-base-compiler.5.0.0 | https://opam.ocaml.org#b61304c6
# path ~/.opam/5.0.0/.opam-switch/build/dune.3.10.0
# command ~/.opam/5.0.0/bin/ocaml boot/bootstrap.ml -j 1
# exit-code 2
# env-file ~/.opam/log/dune-19673-d2c37b.env
# output-file ~/.opam/log/dune-19673-d2c37b.out
### output ###
# extern value caml_set_oo_id();
# [...]
# /data/data/com.termux/files/home/.opam/5.0.0/lib/ocaml/caml/mlvalues.h:423:18: note: conflicting prototype is here
# CAMLextern value caml_set_oo_id(value obj);
# ^
# 2 warnings generated.
# ./.duneboot.exe -j 1
# cd _boot && /data/data/com.termux/files/home/.opam/5.0.0/bin/ocamlopt.opt -o ../_boot/dune.exe -g -I +unix -I +threads unix.cmxa threads.cmxa -no-alias-deps -w -49-6 readdir.c wait3_stubs.c signal_stubs.c platform_stubs.c copyfile_stubs.c dune_digest_stubs.c xdg_stubs.c spawn_stubs.c dune_stats_stubs.c dune_flock.c csexp_rpc_stubs.c fsevents_stubs.c inotify_stubs.c fswatch_win_stubs.c sha512_[...]
# otherlibs/stdune/src/wait3_stubs.c:59:9: error: call to undeclared function 'wait3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# pid = wait3(&status, cv_flags, &ru);
# ^
# 1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment