Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Trying out Ocaml CVS HEAD
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-16 (06:55)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] Trying out Ocaml CVS HEAD
Hi Dario,

> I realise that the Ocaml CVS HEAD comes with an implicit "Here be dragons"
> warning.

Sure, but it is very helpful to get some feedback!

> Still, I would like to use it so I can try running Ocsigen in
> native mode (the loading of Ocsigen modules relies on dynlink; native mode
> thus requires the new natdynlink feature).  I've compiled the Ocaml CVS via
> GODI, using the instructions in Alain Frisch's page; though the compilation
> completes with no problems and the compiler itself seems to work fine, I
> always get an error when Ocsigen tries to dynlink (either in byte-code or
> native-code) a module that uses stub libraries.

I've been able to reproduce the problem in byte-code only, when the main 
program is linked in -custom mode. The reason is that the -Wl,-E was not 
passed to the linker. This is now fixed in the CVS. (For a quick test, 
you can try to pass "-ccopt -Wl,-E" explicitly to ocamlc when linking.)

For the native-code, I don't know. Can you show me the command line 
passed to the linker (ocamlopt -verbose)? You should see -Wl,-E.
If you compile with -noautolink, you must add "-ccopt -Wl,-E" manually.