ocaml / dune

A composable build system for OCaml.
https://dune.build/
MIT License
1.63k stars 401 forks source link

jbuilder broken for OSX for OCaml 4.06.1? #961

Closed nikgraf closed 6 years ago

nikgraf commented 6 years ago

I'm a Ocaml newbie and just tried my first steps with OPAM.

I ran

brew install opam
opam init
opam install c

That's the error I got:

opam install cmdliner
The following actions will be performed:
  - install result   1.3                                [required by cmdliner]
  - install topkg    0.9.1                              [required by cmdliner]
  - install cmdliner 1.0.2
===== 3 to install =====
Do you want to continue ? [Y/n] Y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[cmdliner] Archive in cache
[result] Archive in cache
[topkg] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of result failed at "jbuilder build -p result -j 4".

#=== ERROR while installing result.1.3 ========================================#
# opam-version 1.2.2
# os           darwin
# command      jbuilder build -p result -j 4
# path         /Users/nikgraf/.opam/system/build/result.1.3
# compiler     system (4.06.1)
# exit-code    127
# env-file     /Users/nikgraf/.opam/system/build/result.1.3/result-71719-c61e7b.env
# stdout-file  /Users/nikgraf/.opam/system/build/result.1.3/result-71719-c61e7b.out
# stderr-file  /Users/nikgraf/.opam/system/build/result.1.3/result-71719-c61e7b.err

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions were aborted
  - install cmdliner 1.0.2
  - install topkg    0.9.1
The following actions failed
  - install result 1.3
No changes have been performed

OSX version: 10.13.5 opam --version: 1.2.2 ocaml --version: 4.06.1

Did I do something wrong?

I also tried downgrading to jbuilder.1.0+beta19.1 and then install cmdliner as well as running opam install opium. Both didn't work.

nikgraf commented 6 years ago

I realized that I didn't export opam config env