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
ocamlc vs ocamlc.opt?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-02-03 (00:21)
From: Aleksey Nogin <nogin@m...>
Subject: Re: [Caml-list] ocamlc vs ocamlc.opt?
On 31.01.2007 14:16, Robert Roessler wrote:

> I just ran into a problem where building a bytecode executable failed 
> with findlib ("ocamlfind ocamlc ...") but the equivalent non-findlib 
> command worked.  Then I saw that I could force the same error message in 
> my non-findlib build by just matching findlib's ocamlc.opt, while I had 
> used ocamlc.
> The command line is:
> ocamlc -o bait -I +lablgtk2 -I +lablscintilla -thread threads.cma 
> lablgtk.cma gtkInit.cmo scintilla.cma
> which works fine.  Changing ocamlc to ocamlc.opt yields:
> Error on dynamically loaded library: 
> /usr/lib/ocaml/stublibs/ undefined symbol: 
> caml_names_of_builtin_cprim
> This is on FC6, with a Yum-installed OCaml 3.09.3 package.  Both of the 
> versions of the compiler identify themselves as 3.09.3 with the same 
> standard library location, and both were built on Dec 2 of 2006.
It's possible that there was some problem with how it was compiled. Feel 
free to try my RPM from (you 
should be able to use in yum, 
with key, if you prefer 
installing via yum).