[ocaml-ctypes] Spinning process on osx
Anil Madhavapeddy
anil at recoil.org
Wed Jan 29 11:22:45 GMT 2014
On 29 Jan 2014, at 10:38, Daniel Bünzli <daniel.buenzli at erratique.ch> wrote:
> Le samedi, 28 décembre 2013 à 21:23, Jeremy Yallop a écrit :
>> There do seem to have been some issues with -no_compact_unwind and libffi:
>>
>> https://ghc.haskell.org/trac/ghc/ticket/5019
>
> This is becoming slightly annoying for me as I would like to use a 4.01.0 feature only (Printexc.get_callstack).
One immediate alternative is to experiment with the stub generation that's entered ctypes-trunk, as part of https://github.com/ocamllabs/ocaml-ctypes/pull/124
The Makefiles are the most complex part of stub generation (predictably), but it should give you a mode where your bindings can be output as static C code and linked in as normal C stubs are. It will avoid the dependency on libffi and sidestep your bug, and give us the time to track it down properly.
(It would also be very useful to ensure that your use of ctypes is compatible with stub generation, as that's an important goal of the library)
-anil
More information about the Ctypes
mailing list