Error compiling core_unix

Hello OCaml community,

I try to install core_unix on my Mac Book air M1 2020 macos Version 15.4
I get this error:

[ERROR] The compilation of core_unix.v0.17.0 failed at "dune build -p core_unix -j 7".

#=== ERROR while compiling core_unix.v0.17.0 ==================================#
# context     2.3.0 | macos/arm64 | ocaml.5.3.0 | https://opam.ocaml.org#1b767795a4e028a4d45f916f1598c24ee7a7b6cb
# path        ~/.opam/default/.opam-switch/build/core_unix.v0.17.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p core_unix -j 7
# exit-code   1
# env-file    ~/.opam/log/core_unix-96163-7143a4.env
# output-file ~/.opam/log/core_unix-96163-7143a4.out
### output ###
# ./thread_id.h:12:23: note: expanded from macro 'GET_THREAD_ID'
# [...]
# /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:744:6: note: 'syscall' has been explicitly marked deprecated here
#   744 | int      syscall(int, ...);
#       |          ^
# 4 warnings generated.
# (cd _build/default/unix_pseudo_terminal/src && /bin/bash -e -u -o pipefail -c './discover.sh config_ext.h /.opam/default/lib/jst-config/config.h')
# getconf: no such configuration parameter `GNU_LIBC_VERSION'
# (cd _build/default && /.opam/default/bin/ocamlopt.opt -w -40 -g -I time_float_unix/time_unix/.time_unix.objs/byte -I time_float_unix/time_unix/.time_unix.objs/native -I /.opam/default/lib/base -I /.opam/default/lib/base/base_internalhash_types -I /.opam/default/lib/base/md5 -I /.opam/default/lib/base/shadow_stdlib -I /Users/thom[...]
# File "time_float_unix/time_unix/time_unix.ml", line 1, characters 4-14:
# 1 | [@@@deprecated "[since 2022-04] Use [Time_float_unix] instead"]
#         ^^^^^^^^^^
# Warning 53 [misplaced-attribute]: the "deprecated" attribute cannot appear in this context

Can someone help me fix this issue?

Thank’s and Regards

Warnings are not errors, this it is impossible to tell the real error from this partial view of the build. Nevertheless, that might be an instance of opam install core_unix fails on macos/x86_64 · Issue #18 · janestreet/core_unix · GitHub .

Thank you very much for the link! Switching back to ocaml 5.2.0 does the trick.