From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 5CE5BBC57 for ; Wed, 17 Mar 2010 10:53:23 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmUBANJDoEvZSMDqkGdsb2JhbACbAxUBAQEBCQkMBxMDH7gqhHYE X-IronPort-AV: E=Sophos;i="4.49,656,1262559600"; d="scan'208";a="47307939" Received: from fmmailgate03.web.de ([217.72.192.234]) by mail2-smtp-roc.national.inria.fr with ESMTP; 17 Mar 2010 10:53:23 +0100 Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 8A7361451BF49; Wed, 17 Mar 2010 10:53:22 +0100 (CET) Received: from [78.43.204.177] (helo=frosties.localdomain) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1NrpwI-0000C9-00; Wed, 17 Mar 2010 10:53:22 +0100 Received: from mrvn by frosties.localdomain with local (Exim 4.71) (envelope-from ) id 1NrpwH-0002IY-UY; Wed, 17 Mar 2010 10:53:22 +0100 From: Goswin von Brederlow To: "Mark Shinwell" Cc: caml-list Subject: Re: [Caml-list] Rewriting the Digest module causes linking errors References: <87wrxb5p59.fsf@frosties.localdomain> <20100317083907.GC26002@janestreet.com> Date: Wed, 17 Mar 2010 10:53:21 +0100 In-Reply-To: <20100317083907.GC26002@janestreet.com> (Mark Shinwell's message of "Wed, 17 Mar 2010 08:39:07 +0000") Message-ID: <87sk7zgtpq.fsf@frosties.localdomain> User-Agent: Gnus/5.110009 (No Gnus v0.9) XEmacs/21.4.22 (linux, no MULE) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX19n4QqAOONJv+y12TXqE+5RUc/TKxow8rSUcAiP 8V+wZjZEmR9IPJvUX0h2p5jmcv/POAeLCjvn2/QjLJ6jdy/j/O nMAmGn5sI= X-Spam: no; 0.00; rewriting:01 shinwell:01 0100,:01 bigarrays:01 patched:01 ocaml:01 stdlib:01 ocamlc:01 ocaml:01 ocaml-:01 ocaml-:01 compiler:01 ocamlc:01 runtime:01 mfg:98 "Mark Shinwell" writes: > On Wed, Mar 17, 2010 at 09:27:30AM +0100, Goswin von Brederlow wrote: >> I want to rewrite the Digest module to expose a more lowlevel interface >> to the md5 digest and add support to digest Bigarrays. I've patched the >> respective files involved and it all looks alright but when I try to >> build ocaml I get the following error: >> >> File "_none_", line 1, characters 0-1: >> Error: Error while linking boot/stdlib.cma(Digest): >> The external function `caml_md5_update_string' is not available >> make[2]: *** [ocamlc] Error 2 >> make[2]: Leaving directory `/home/mrvn/src/debian/ocaml/ocaml-3.11.2' >> make[1]: *** [world] Error 2 >> make[1]: Leaving directory `/home/mrvn/src/debian/ocaml/ocaml-3.11.2' >> make: *** [build-stamp] Error 2 >> >> Can anyone explain why the new functions are not available? > > You need to bootstrap the compiler. I think "make bootstrap" will do the > trick, although you may have to run it twice if I remember correctly. > > Mark Well, it is a bootstraping problem it seems but "make bootstrap" is not the answere. I need to build this in two passes. First only patch md5.[ch] and build ocamlc. Then patch the rest and build with the ocamlc from the first build copied to boot/. Seems like ocamlc always uses its internal list of primitives even if it compiles for a new runtime that will have different primitives. MfG Goswin