Skip to content

fatal error: CoreFoundation/CoreFoundation.h: No such file or directory #13111

Open
@leana8959

Description

@leana8959

I tried to install dune. However, this failed with the aforementioned error.

I opened an issue at ocaml/dune#10394, and I was recommended to come here. Please tell me if there's a more relevant place for this problem!

Expected Behavior

Dune installs correctly.

Actual Behavior

Dune doesn't install correctly with the error src/fsevents/fsevents_stubs.c:15:10: fatal error: CoreFoundation/CoreFoundation.h: No such file or directory.

This happens with dune 3.6.0 and 3.14.2.

Here's the error log:

# context     2.1.5 | macos/arm64 |  | https://opam.ocaml.org#3ae17654
# path        ~/univ-repos/skeletons/necro/_opam/.opam-switch/build/dune.3.14.2
# command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml boot/bootstrap.ml -j 9
# exit-code   2
# env-file    ~/.opam/log/dune-2492-ab7007.env
# output-file ~/.opam/log/dune-2492-ab7007.out
### output ###
# ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.ml boot/duneboot.ml
# ./.duneboot.exe -j 9
# cd _boot && /Users/leana/univ-repos/skeletons/necro/_opam/bin/ocamlopt.opt -c -g -I +threads fsevents_stubs.c
# src/fsevents/fsevents_stubs.c:15:10: fatal error: CoreFoundation/CoreFoundation.h: No such file or directory
# compilation terminated.
#

Specifications

  • Version of dune (output of dune --version): 3.14.2
  • Version of ocaml (output of ocamlc --version): 4.12.1
  • Operating system (distribution and version): Darwin 23.4.0, macOS 14.4.1

Output of opam config report

# opam config report
# opam-version         2.1.5 
# self-upgrade         no
# system               arch=arm64 os=macos os-distribution=homebrew os-version=14.4.1
# solver               builtin-mccs+glpk
# install-criteria     -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed
# upgrade-criteria     -removed,-count[avoid-version,changed],-count[version-lag,solution],-count[missing-depexts,changed],-new
# jobs                 9
# repositories         1 (http), 1 (version-controlled) (default repo at 3ae17654)
# pinned               0
# current-switch       /Users/leana/univ-repos/skeletons/necro
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /Users/leana/univ-repos/skeletons/necro/_opam/lib/ocaml/stublibs:/Users/leana/univ-repos/skeletons/necro/_opam/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.12.1

Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions