djs55 / ocaml-xenstore

A xenstore protocol implementation in ocaml
Other
6 stars 0 forks source link

#require "xenstore.unix" seems to break utop #7

Closed djs55 closed 10 years ago

djs55 commented 11 years ago
utop $ #require "xenstore.unix";;
/usr/lib64/ocaml/findlib: added to search path                                                                                                    
/usr/lib64/ocaml/lwt: added to search path                                                                                               
/usr/lib64/ocaml/react: added to search path                                                                                             
/usr/lib64/ocaml/camomile: added to search path
/usr/lib64/ocaml/zed: added to search path
/usr/lib64/ocaml/lambda-term: added to search path
/usr/lib64/ocaml/utop: added to search path
/usr/lib64/ocaml/dynlink.cma: loaded
/usr/lib64/ocaml/camlp4: added to search path
/usr/lib64/ocaml/camlp4/camlp4o.cma: loaded
/usr/lib64/ocaml/utop/utop-camlp4.cma: loaded
    Camlp4 Parsing version 4.00.1

/usr/lib64/ocaml/optcomp: added to search path
/usr/lib64/ocaml/optcomp/optcomp.cma: loaded
/usr/lib64/ocaml/ocplib-endian: added to search path
/usr/lib64/ocaml/ocplib-endian/ocplib_endian.cma: loaded
/usr/lib64/ocaml/ocplib-endian/bigstring.cma: loaded
/usr/lib64/ocaml/cstruct: added to search path
/usr/lib64/ocaml/cstruct/cstruct.cma: loaded
/usr/lib64/ocaml/cstruct/cstruct-syntax.cma: loaded
/usr/lib64/ocaml/xenstore: added to search path
/usr/lib64/ocaml/xenstore/xenstore.cma: loaded
/usr/lib64/ocaml/xenstore/xenstore_client_unix.cma: loaded
...
utop $ #use "io.ml";;
Error: Parse error: unknown directive ``use''                           

It might be one of the dependencies above. This is on CentOS6.4 with my experimental RPMs (so it might be a packaging issue)

avsm commented 11 years ago

Is Xenstore packed? That looks like it isn't.

-anil

On 19 Jun 2013, at 11:17, Dave Scott notifications@github.com wrote:

utop $ #require "xenstore.unix";; /usr/lib64/ocaml/findlib: added to search path
/usr/lib64/ocaml/lwt: added to search path
/usr/lib64/ocaml/react: added to search path
/usr/lib64/ocaml/camomile: added to search path /usr/lib64/ocaml/zed: added to search path /usr/lib64/ocaml/lambda-term: added to search path /usr/lib64/ocaml/utop: added to search path /usr/lib64/ocaml/dynlink.cma: loaded /usr/lib64/ocaml/camlp4: added to search path /usr/lib64/ocaml/camlp4/camlp4o.cma: loaded /usr/lib64/ocaml/utop/utop-camlp4.cma: loaded Camlp4 Parsing version 4.00.1

/usr/lib64/ocaml/optcomp: added to search path /usr/lib64/ocaml/optcomp/optcomp.cma: loaded /usr/lib64/ocaml/ocplib-endian: added to search path /usr/lib64/ocaml/ocplib-endian/ocplib_endian.cma: loaded /usr/lib64/ocaml/ocplib-endian/bigstring.cma: loaded /usr/lib64/ocaml/cstruct: added to search path /usr/lib64/ocaml/cstruct/cstruct.cma: loaded /usr/lib64/ocaml/cstruct/cstruct-syntax.cma: loaded /usr/lib64/ocaml/xenstore: added to search path /usr/lib64/ocaml/xenstore/xenstore.cma: loaded /usr/lib64/ocaml/xenstore/xenstore_client_unix.cma: loaded ... utop $ #use "io.ml";; Error: Parse error: unknown directive ``use''
It might be one of the dependencies above. This is on CentOS6.4 with my experimental RPMs (so it might be a packaging issue)

— Reply to this email directly or view it on GitHub.

djs55 commented 11 years ago

Hm I packed one part of it recently. Maybe I failed to update the META file?

On Wednesday, June 19, 2013, Anil Madhavapeddy wrote:

Is Xenstore packed? That looks like it isn't.

-anil

On 19 Jun 2013, at 11:17, Dave Scott <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

utop $ #require "xenstore.unix";; /usr/lib64/ocaml/findlib: added to search path /usr/lib64/ocaml/lwt: added to search path /usr/lib64/ocaml/react: added to search path /usr/lib64/ocaml/camomile: added to search path /usr/lib64/ocaml/zed: added to search path /usr/lib64/ocaml/lambda-term: added to search path /usr/lib64/ocaml/utop: added to search path /usr/lib64/ocaml/dynlink.cma: loaded /usr/lib64/ocaml/camlp4: added to search path /usr/lib64/ocaml/camlp4/camlp4o.cma: loaded /usr/lib64/ocaml/utop/utop-camlp4.cma: loaded Camlp4 Parsing version 4.00.1

/usr/lib64/ocaml/optcomp: added to search path /usr/lib64/ocaml/optcomp/optcomp.cma: loaded /usr/lib64/ocaml/ocplib-endian: added to search path /usr/lib64/ocaml/ocplib-endian/ocplib_endian.cma: loaded /usr/lib64/ocaml/ocplib-endian/bigstring.cma: loaded /usr/lib64/ocaml/cstruct: added to search path /usr/lib64/ocaml/cstruct/cstruct.cma: loaded /usr/lib64/ocaml/cstruct/cstruct-syntax.cma: loaded /usr/lib64/ocaml/xenstore: added to search path /usr/lib64/ocaml/xenstore/xenstore.cma: loaded /usr/lib64/ocaml/xenstore/xenstore_client_unix.cma: loaded ... utop $ #use "io.ml";; Error: Parse error: unknown directive ``use'' It might be one of the dependencies above. This is on CentOS6.4 with my experimental RPMs (so it might be a packaging issue)

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/djs55/ocaml-xenstore/issues/7#issuecomment-19679383 .

Dave Scott

djs55 commented 11 years ago

It looks like it breaks when optcomp is loaded:

utop $ #use "foo";;
Cannot find file foo.

-- good

─utop $ #require "camlp4";;
/usr/lib64/ocaml/threads: added to search path                                                                               
/usr/lib64/ocaml/findlib: added to search path                                                                                                                                                      
/usr/lib64/ocaml/lwt: added to search path                                                                                                                                                      
/usr/lib64/ocaml/react: added to search path
/usr/lib64/ocaml/camomile: added to search path
/usr/lib64/ocaml/zed: added to search path
/usr/lib64/ocaml/lambda-term: added to search path
/usr/lib64/ocaml/utop: added to search path
/usr/lib64/ocaml/dynlink.cma: loaded
/usr/lib64/ocaml/camlp4: added to search path
/usr/lib64/ocaml/camlp4/camlp4o.cma: loaded
/usr/lib64/ocaml/utop/utop-camlp4.cma: loaded

    Camlp4 Parsing version 4.00.1

utop $ #use "foo";;
Cannot find file foo.

-- still working

─utop $ #require "optcomp";;
/usr/lib64/ocaml/optcomp: added to search path                                                                                                                                                      
/usr/lib64/ocaml/optcomp/optcomp.cma: loaded                                                                                                                                                       
utop $ #use "foo";;
Error: Parse error: unknown directive ``use''

-- broken

djs55 commented 11 years ago

The same thing happens on Ubuntu via opam (above was CentOS using my custom RPMs)

djs55 commented 11 years ago

It could be a utop issue-- I've packaged 1.4 but I see 1.5 is available on github.

djs55 commented 10 years ago

It all works beautifully with optcomp 1.5