Loading ...
Sorry, an error occurred while loading the content.

13936Re: "ocaml_beginners"::[] core install problem

Expand Messages
  • Sebastien Mondet
    Aug 2, 2013
    • 0 Attachment
      Yes there is a change in unix.mli:
      https://github.com/ocaml/ocaml/commit/1c58683353103cab7835e94d24baa33bd6c931ba

      and Core targets a stable version of OCaml (4.00.1).




      On Fri, Aug 2, 2013 at 10:19 AM, Sebastien Mondet <
      sebastien.mondet@...> wrote:

      >
      > Hi
      >
      > you're downloading 'trunk'
      > It just seems that Core 109.35.00 does not handle the development version
      > of the OCaml distribution (in particular the unix lib that has maybe
      > changed)
      >
      >
      >
      >
      >
      > On Fri, Aug 2, 2013 at 10:06 AM, Jolynn Schmidt <jolynns@...> wrote:
      >
      >> Hello,
      >>
      >> I am not sure if I am running into a bug or just doing something wrong
      >> but I am not able to install the core libs. I installed opam and
      >> ocaml with no issue running the following commands but core fails with
      >> the error below, and it is not clear to me what the issue is. Please
      >> let me know if you need more information or if I should post this
      >> somewhere else. Thanks!
      >>
      >> 8 curl -OL https://github.com/ocaml/ocaml/archive/trunk.tar.gz
      >> 9 tar -zxvf trunk.tar.gz
      >> 10 cd ocaml-trunk
      >> 11 ./configure
      >> 12 make world world.opt
      >> 13 exit
      >> 14 sudo make install #oops had to set up sudo
      >> 15 exit
      >> 16 sudo make install
      >> 17 cd ocaml-trunk/
      >> 18 sudo make install
      >> 19 opam init
      >> 20 eval `opam config -env`
      >> 21 opam list
      >> 22 opam switch 4.01.0dev+trunk
      >> 23 eval `opam config env`
      >> 24 opam install core # core install fails
      >> 25 opam switch list
      >> 26 opam switch 4.02.0dev+trunk # try with newer version but same
      >> problem
      >> 27 eval `opam config env`
      >> 28 opam install core
      >>
      >>
      >> This is on an centos 6.4 with gcc 4.4.7
      >>
      >> =-=-= Installing core.109.35.00 =-=-=
      >> The archive for core.109.35.00 is in the local cache.
      >> Extracting /home/jolynn/.opam/archives/core.109.35.00+opam.tar.gz.
      >> Building core.109.35.00:
      >> make
      >> make install
      >> The compilation of core.109.35.00 failed.
      >> Uninstalling core.109.35.00:
      >> ocamlfind remove core
      >>
      >>
      >> ==== ERROR [while installing core.109.35.00] ====
      >> # opam-version 1.0.0
      >> # os linux
      >> # command make
      >> # path /home/jolynn/.opam/4.02.0dev+trunk/build/core.109.35.00
      >> # exit-code 2
      >> # env-file
      >> /home/jolynn/.opam/4.02.0dev+trunk/build/core.109.35.00/core-d0f245.env
      >> # stdout-file
      >> /home/jolynn/.opam/4.02.0dev+trunk/build/core.109.35.00/core-d0f245.out
      >> # stderr-file
      >> /home/jolynn/.opam/4.02.0dev+trunk/build/core.109.35.00/core-d0f245.err
      >> ### stdout ###
      >> ...[truncated]
      >> ocamlfind ocamlc -c -g -package variantslib.syntax -package
      >> variantslib -package unix -package threads -package sexplib.syntax
      >> -package sexplib -package res -package pa_pipebang -package
      >> pa_ounit.syntax -package pa_ounit -package herelib.syntax -package
      >> herelib -package fieldslib.syntax -package fieldslib -package
      >> core_kernel -package comparelib.syntax -package bin_prot.syntax
      >> -package bin_prot -package bigarray -syntax camlp4o -thread -I lib -o
      >> lib/out_channel.cmo lib/out_channel.ml
      >> ocamlfind ocamlc -c -g -package variantslib.syntax -package
      >> variantslib -package unix -package threads -package sexplib.syntax
      >> -package sexplib -package res -package pa_pipebang -package
      >> pa_ounit.syntax -package pa_ounit -package herelib.syntax -package
      >> herelib -package fieldslib.syntax -package fieldslib -package
      >> core_kernel -package comparelib.syntax -package bin_prot.syntax
      >> -package bin_prot -package bigarray -syntax camlp4o -thread -I lib -o
      >> lib/result.cmo lib/result.ml
      >> ocamlfind ocamlc -c -g -package variantslib.syntax -package
      >> variantslib -package unix -package threads -package sexplib.syntax
      >> -package sexplib -package res -package pa_pipebang -package
      >> pa_ounit.syntax -package pa_ounit -package herelib.syntax -package
      >> herelib -package fieldslib.syntax -package fieldslib -package
      >> core_kernel -package comparelib.syntax -package bin_prot.syntax
      >> -package bin_prot -package bigarray -syntax camlp4o -thread -I lib -o
      >> lib/signal.cmi lib/signal.mli
      >> ocamlfind ocamlc -c -g -ppopt -Ilib/ -package variantslib.syntax
      >> -package variantslib -package unix -package threads -package
      >> sexplib.syntax -package sexplib -package res -package pa_pipebang
      >> -package pa_ounit.syntax -package pa_ounit -package herelib.syntax
      >> -package herelib -package fieldslib.syntax -package fieldslib -package
      >> core_kernel -package comparelib.syntax -package camlp4.macro -package
      >> bin_prot.syntax -package bin_prot -package bigarray -syntax camlp4o
      >> -thread -I lib -o lib/core_unix.cmi lib/core_unix.mli
      >> + ocamlfind ocamlc -c -g -ppopt -Ilib/ -package variantslib.syntax
      >> -package variantslib -package unix -package threads -package
      >> sexplib.syntax -package sexplib -package res -package pa_pipebang
      >> -package pa_ounit.syntax -package pa_ounit -package herelib.syntax
      >> -package herelib -package fieldslib.syntax -package fieldslib -package
      >> core_kernel -package comparelib.syntax -package camlp4.macro -package
      >> bin_prot.syntax -package bin_prot -package bigarray -syntax camlp4o
      >> -thread -I lib -o lib/core_unix.cmi lib/core_unix.mli
      >> File "lib/core_unix.mli", line 293, characters 5-802:
      >> Error: This variant or record definition does not match that of type
      >> Unix.open_flag
      >> The field O_CLOEXEC is only present in the original definition.
      >> Command exited with code 2.
      >> ### stderr ###
      >> E: Failure("Command
      >> ''/home/jolynn/.opam/4.02.0dev+trunk/bin/ocamlbuild'
      >> lib/libcore_stubs.a lib/dllcore_stubs.so lib/core.cma lib/core.cmxa
      >> lib/core.a lib/core.cmxs top/core_top.cma top/core_top.cmxa
      >> top/core_top.a top/core_top.cmxs -tag debug' terminated with error
      >> code 10")
      >> make: *** [build] Error 1
      >>
      >>
      >> ------------------------------------
      >>
      >> Archives up to December 31, 2011 are also downloadable at
      >> http://www.connettivo.net/cntprojects/ocaml_beginners
      >> The archives of the very official ocaml list (the seniors' one) can be
      >> found at http://caml.inria.fr
      >> Attachments are banned and you're asked to be polite, avoid flames
      >> etc.Yahoo! Groups Links
      >>
      >>
      >>
      >>
      >


      [Non-text portions of this message have been removed]
    • Show all 5 messages in this topic