[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lwt installation error



That's exactly right.  Dave Scott patched the Mirage/Xen backend to add fake stubs for map_file, so we no longer need the xenbigarray package.  This is all in the interests of simplifying the build to avoid the need for all these special compiler switches.

-anil

On 25 Jun 2013, at 15:27, Dimosthenis Pediaditakis <dimosthenis.pediaditakis@xxxxxxxxxxxx> wrote:

Hmmm, it seems that it has to do with xenbigarray, which replaces base-bigarray  when switching to the '4.00.1+mirage-xen' compiler.
In xenbigarray ( https://github.com/mirage/xenbigarray/blob/master/lib/bigarray.ml)  there is no function "map_file"

Is there already an automated workaround for that?

D.


On 25/06/13 14:30, Dimosthenis Pediaditakis wrote:
Hi everyone,
has anyone had recently any problems installing 'lwt 2.4.3' against '4.00.1+mirage-xen' (using opam)?

Thanks,
Dimos


---------------------------
    Error message
---------------------------
 ocamlfind ocamlc -c -g -I src/core -package unix -package camlp4 -package bigarray -syntax camlp4o -ppopt syntax/pa_lwt_options.cmo -ppopt syntax/pa_lwt.cmo -ppopt syntax/pa_lwt_log.cmo -ppopt syntax/pa_optcomp.cmo -I src/unix -I src/core -o src/unix/lwt_bytes.cmo src/unix/lwt_bytes.ml
+ ocamlfind ocamlc -c -g -I src/core -package unix -package camlp4 -package bigarray -syntax camlp4o -ppopt syntax/pa_lwt_options.cmo -ppopt syntax/pa_lwt.cmo -ppopt syntax/pa_lwt_log.cmo -ppopt syntax/pa_optcomp.cmo -I src/unix -I src/core -o src/unix/lwt_bytes.cmo src/unix/lwt_bytes.ml
File "src/unix/lwt_bytes.ml", line 273, characters 2-17:
Error: Unbound value Array1.map_file
Command exited with code 2.

----------------------------------------------------
    lines 273-273 src/unix/lwt_bytes.ml
----------------------------------------------------
let map_file ~fd ?pos ~shared ?(size=(-1)) () =
  Array1.map_file fd ?pos char c_layout shared size

---------------------------
   System Info
---------------------------
 - Ubuntu server 12.10
 - Kernel 3.5.0-34-generic  x86_64
 - OCaml version: 4.00.1
 - Opam version: 1.0.0
 - Opam repositories:
  [git]   mirage-dev     git://github.com/mirage/opam-repo-dev
  [http]     default     http://opam.ocamlpro.com
 - Installed ocaml packages:
      libcryptgps-ocaml-dev,  libcryptokit-ocaml, libcryptokit-ocaml-dev,   libfindlib-ocaml,   libfindlib-ocaml-dev, liblwt-glib-ocaml,  liblwt-glib-ocaml-dev,  liblwt-ocaml, liblwt-ocaml-dev,   liblwt-ocaml-doc, liblwt-ssl-ocaml, liblwt-ssl-ocaml-dev,    libnethttpd-ocaml-dev, libobrowser-ocaml-dev,    libocamlnet-ocaml, libocamlnet-ocaml-dev,    libocamlnet-ocaml-doc, libocsigen-ocaml,    libocsigen-ocaml-dev, libocsigen-ocaml-doc,    libocsigen-xhtml-ocaml-dev, libocsigenserver-ocaml,    libocsigenserver-ocaml-dev, libpcre-ocaml,    libpcre-ocaml-dev,    libreact-ocaml, libreact-ocaml-dev,    libsqlite3-ocaml,    libsqlite3-ocaml-dev, libssl-ocaml,    libssl-ocaml-dev,    libtext-ocaml, libtext-ocaml-dev,    libtyxml-ocaml,    libtyxml-ocaml-dev, libzip-ocaml,    libzip-ocaml-dev,    ocaml,    ocaml-base, ocaml-base-nox,    ocaml-compiler-libs,    ocaml-findlib, ocaml-interp,    ocaml-nox,    ocamlduce,    ocamlduce-base






 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.