janestreet/core

v0.15~preview.124.16+217 build fails on macos

mudrz opened this issue · 1 comments

mudrz commented

hey, got redirected here from: janestreet/bonsai#12 (comment)

I tried to compile core.v0.15~preview.124.16+217 with ocaml-base-compiler.4.11.1 on macos, but it fails:

[ERROR] The compilation of core failed at "/.opam/opam-init/hooks/sandbox.sh build dune build -p
        core -j 7".
-> installed async_js.v0.15~preview.124.16+217
-> installed incr_dom.v0.15~preview.124.16+217

#=== ERROR while compiling core.v0.15~preview.124.16+217 ======================#
# context     2.0.8 | macos/x86_64 | ocaml-base-compiler.4.11.1 | https://ocaml.janestreet.com/opam-repository
# path        ~/projects/bonsai_test/_opam/.opam-switch/build/core.v0.15~preview.124.16+217
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p core -j 7
# exit-code   1
# env-file    ~/.opam/log/core-8944-1fefce.env
# output-file ~/.opam/log/core-8944-1fefce.out
### output ###
# #warning "_POSIX_PRIORITY_SCHEDULING not present; sched_setscheduler undefined"
# [...]
# 4 warnings generated.
#           cc src/unix_time_stubs.o (exit 1)
# (cd _build/default/src && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -fno-strict-aliasing -fwrapv -D_LARGEFILE64_SOURCE -g -I /projects/bonsai_test/_opam/lib/ocaml -I /projects/bonsai_test/_opam/lib/base -I /projects/bonsai_test/_opam/lib/base/base_internalhash_types -I /projects/bonsai_test/_opam/lib/base/caml -I /User[...]
# unix_time_stubs.c:57:13: error: implicit declaration of function 'clock_getcpuclockid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
#   int ret = clock_getcpuclockid(pid, &clock);
#             ^
# unix_time_stubs.c:57:13: note: did you mean 'caml_clock_getcpuclockid'?
# unix_time_stubs.c:52:16: note: 'caml_clock_getcpuclockid' declared here
# CAMLprim value caml_clock_getcpuclockid(value v_pid) {
#                ^
# 1 error generated.

is macos supported for the preview?

bcc32 commented

I believe this is fixed by janestreet/jst-config@e5fdac6. I'm closing this issue for now, but please feel free to reopen if that commit didn't resolve the issue for you.