export OCAMLRUNPARAM='b' required to compile #99

agarwal opened this Issue Jan 19, 2013 · 4 comments


None yet
4 participants

agarwal commented Jan 19, 2013

Regarding comments on commit f94883d, it seems the issue is that export OCAMLRUNPARAM='b' is required. Otherwise, compilation fails on streams.html.

voila commented Jan 19, 2013

that solves my problem, thanks

this fixed my problem, which was an actual segmentation fault when processing streams.html. if it helps figure out the base issue, changing this block to noeval makes it not segfault:

<pre ml:content="ocaml noeval">
  #directory "+threads";;
  #load "threads.cma";;
  let elements iter coll =
    let channel = Event.new_channel () in
    let producer () =
      let () =
        iter (fun x -&gt; Event.sync (Event.send channel (Some x))) coll in
      Event.sync (Event.send channel None) in
    let consumer i =
      Event.sync (Event.receive channel) in
    ignore (Thread.create producer ());
    Stream.from consumer

Chris00 commented Aug 4, 2013

The toplevel evaluation changed since this bug was open. It seems that OCAMLRUNPARAM=b is no longer needed. May you please confirm it also works for you?


agarwal commented Aug 5, 2013

It works for me.

@ghost ghost assigned Chris00 Aug 5, 2013

@Chris00 Chris00 closed this Aug 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment