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
[Caml-list] Cross-compile ocaml for ARM
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-23 (14:11)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] Cross-compile ocaml for ARM
On Sun, Sep 22, 2002 at 04:31:44PM +0200, Guillaume Valadon wrote:
> I am trying to build a native ocaml-3.06 for Linux arm using the
> method explained in
> The segv_handler function is located line 478 or 486 but is never 
> declared due to preprocessors tests. Uncommenting the test line 486
> resolved the problem (ok, that's a dirty hack) but 'make opt' failed 
> again with :
> ../../ -c -warn-error A unix.mli
> ../../ line 5
> /path/to/ocaml-3.06/otherlibs/unix/../../ocamlc.opt: cannot execute
> binary file
> How do i resolve these problems ?

This message is a bit strange: is only supposed to call
ocamlc.opt if you have built it after ocamlc. And logically you
shouldn't be able to use ocamlc.opt with a cross compiler.
Did you really follow the instructions in the message above?
Didn't you do "make world.opt" in place of "make world"? This would
attempt to compile the libraries with ocamlc.opt, as you seem to do,
and would of course fail (since ocamlc.opt is an ARM binary).
If this is the case, erase ocamlc and start again using "make world"
and then "make opt", and eventually "make opt.opt" if you need it.

Hope this helps,

     Jacques Garrigue
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: