From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA28960; Mon, 23 Sep 2002 16:11:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA16694 for ; Mon, 23 Sep 2002 16:11:53 +0200 (MET DST) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g8NEBpD08685 for ; Mon, 23 Sep 2002 16:11:52 +0200 (MET DST) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id XAA20292; Mon, 23 Sep 2002 23:11:46 +0900 To: guillaume@valadon.net Cc: caml-list@inria.fr Subject: Re: [Caml-list] Cross-compile ocaml for ARM In-Reply-To: <20020923084858.GB1272@iliana> References: <20020922143144.GA8716@adelscott.lanetcie.com> <20020923084858.GB1272@iliana> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020923231124U.garrigue@kurims.kyoto-u.ac.jp> Date: Mon, 23 Sep 2002 23:11:24 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 http://caml.inria.fr/archives/200110/msg00334.html. > [..] > 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 : > ../../ocamlcomp.sh -c -warn-error A unix.mli > ../../ocamlcomp.sh: 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: ocamlcomp.sh 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 caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners