From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 52F43BB81 for ; Tue, 28 Dec 2004 23:35:55 +0100 (CET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBSMZsSJ002131 for ; Tue, 28 Dec 2004 23:35:55 +0100 Received: by rproxy.gmail.com with SMTP id i8so75176rne for ; Tue, 28 Dec 2004 14:35:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Qa/cm4D1j48a/+GG/s2JCyWeqmWWuG56qBmJicAUT6KlqQL80DRj8xgui1Z64z98q3qe4vLfbIx1HXXietBnylecXh4D98EdBns2bjiWZwxmOmB52fe20AVj4nqq89XuG8wlquE7Msb8MmxZCiPLsdnr0yB7lzBXI/JWBDBQ5uw= Received: by 10.38.181.80 with SMTP id d80mr356433rnf; Tue, 28 Dec 2004 14:35:54 -0800 (PST) Received: by 10.38.209.53 with HTTP; Tue, 28 Dec 2004 14:35:54 -0800 (PST) Message-ID: Date: Wed, 29 Dec 2004 11:35:54 +1300 From: Jonathan Roewen Reply-To: Jonathan Roewen Subject: Re: [Caml-list] Using OCaml in a kernel Cc: caml-list@yquem.inria.fr In-Reply-To: <20041211.080036.25909489.garrigue@math.nagoya-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1102320552.663.45.camel@localhost> <20041211.080036.25909489.garrigue@math.nagoya-u.ac.jp> X-Miltered: at nez-perce with ID 41D1DFCA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 libasmrun:01 ocamlopt:01 compiler:01 ocamlopt:01 stdlib:01 defining:01 functions:01 kernel:01 kernel:01 bin:01 undefined:01 undefined:01 defined:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: > > I've tried manually compiling libasmrun.a, but I'm getting some > > strange unresolved symbols to caml functions/declarations. > These symbols are defined at link time by the ocamlopt compiler. > You can get the assembler code defining them by using the -dstartup > option of ocamlopt while linking; it will show up in a > /tmp/camlstartup????.s file. > Note of course that some of these definitions are specific for each > program. As I have just observed ;-) We've got some new ones, and don't know how to resolve them. They're from the generated assembler code, and is as follows: camlstartup.o(.data+0x1d8): In function `caml_globals': : undefined reference to `camlStd_exit' camlstartup.o(.data+0x360): In function `caml_data_segments': : undefined reference to `camlCallback__data_begin' camlstartup.o(.data+0x364): In function `caml_data_segments': : undefined reference to `camlCallback__data_end' camlstartup.o(.data+0x370): In function `caml_data_segments': : undefined reference to `camlStd_exit__data_begin' camlstartup.o(.data+0x374): In function `caml_data_segments': : undefined reference to `camlStd_exit__data_end' camlstartup.o(.data+0x3c4): In function `caml_code_segments': : undefined reference to `camlCallback__code_begin' camlstartup.o(.data+0x3c8): In function `caml_code_segments': : undefined reference to `camlCallback__code_end' camlstartup.o(.data+0x3d4): In function `caml_code_segments': : undefined reference to `camlStd_exit__code_begin' camlstartup.o(.data+0x3d8): In function `caml_code_segments': : undefined reference to `camlStd_exit__code_end' camlstartup.o(.data+0x408): In function `caml_frametable': : undefined reference to `camlCallback__frametable' camlstartup.o(.data+0x410): In function `caml_frametable': : undefined reference to `camlStd_exit__frametable' make: *** [kernel.bin] Error 1 I'm at a loss on this one, unfortunately. Thought would be resolved by stdlib.a, but doesn't want to work for me. Jon