caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Has anybody gotten delimcc to work?
@ 2018-02-22 23:18 Michael C Vanier
  2018-02-22 23:42 ` Nicolás Ojeda Bär
  0 siblings, 1 reply; 7+ messages in thread
From: Michael C Vanier @ 2018-02-22 23:18 UTC (permalink / raw)
  To: caml-list

I've been trying to use the delimcc delimited continuation library, but 
so far I've been unsuccessful.  I'm using OCaml 4.06.1 and I've tried it 
on both Mac OS X (High Sierra) and Ubuntu MATE 17.10. I'm fine sticking 
to bytecode.  The opam package installs correctly but when you try to 
run it you get errors from the dynamically-linked libraries.  On Mac OS 
X I get this:

# #require "delimcc";;
Cannot load required shared library dlldelimcc.
Reason: /Users/mvanier/.opam/4.06.1/lib/stublibs/dlldelimcc.so: 
dlopen(/Users/mvanier/.opam/4.06.1/lib/stublibs/dlldelimcc.so, 10): 
Symbol not found: _alloc
   Referenced from: /Users/mvanier/.opam/4.06.1/lib/stublibs/dlldelimcc.so
   Expected in: flat namespace
  in /Users/mvanier/.opam/4.06.1/lib/stublibs/dlldelimcc.so.

And on Ubuntu I get this:

# #require "delimcc";;
/home/mvanier/.opam/4.06.1/lib/delimcc: added to search path
/home/mvanier/.opam/4.06.1/lib/delimcc/delimcc.cma: loaded
Cannot load required shared library dlldelimcc.
Reason: /Users/mvanier/.opam/4.06.1/lib/stublibs/dlldelimcc.so: 
dlopen(/Users/mvanier/.opam/4.06.1/lib/stublibs/dlldelimcc.so, 10): 
Symbol not found: initialize.

However, in either case I can do:

# open Delimcc;;

and it reports no errors, but then if I try e.g.:

# shift;;
Reference to undefined global `Delimcc`

so it appears the library isn't there or isn't functional. Compiling 
from the delimcc source also appears to work, but gcc warns about 
implicit declarations of "alloc", "alloc_shr" and "initialize" when 
compiling stacks.c, which makes sense.  Compiling any of the test 
programs also fails.

So it appears that this library no longer works.  Does anyone know any 
way to make it work?

Thanks in advance,

Mike


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-02-26  5:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 23:18 [Caml-list] Has anybody gotten delimcc to work? Michael C Vanier
2018-02-22 23:42 ` Nicolás Ojeda Bär
2018-02-22 23:58   ` Michael C Vanier
2018-02-23  3:18     ` Michael C Vanier
2018-02-23  5:15       ` Nicolás Ojeda Bär
2018-02-23  5:56         ` Michael C Vanier
2018-02-26  5:42         ` Oleg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).