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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id BB5C9BB81 for ; Sun, 13 Nov 2005 01:27:37 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAD0RaJ7006198 for ; Sun, 13 Nov 2005 01:27:37 +0100 Received: by zproxy.gmail.com with SMTP id x3so1010249nzd for ; Sat, 12 Nov 2005 16:27:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e1nG4O66l0i4T8CVYWmt7PImEF7/4DqnKDgOAC2eiUkyghBM/I8czZvxg8gbOtnac9gqBzsiMUw4z9O/+pgV5WY4rC1eufmoeNvQ1kqcBT022xOOw2OYA/ZQ1JCzSXB/HdrARjnCW2isMcoAtIEswJzcujHw0IfQ3zMYThvSlJQ= Received: by 10.64.210.17 with SMTP id i17mr1193944qbg; Sat, 12 Nov 2005 16:27:32 -0800 (PST) Received: by 10.65.23.20 with HTTP; Sat, 12 Nov 2005 16:27:27 -0800 (PST) Message-ID: Date: Sun, 13 Nov 2005 13:27:27 +1300 From: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Annoying compiler magic In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051112222404.GB1784@localhost> X-Miltered: at nez-perce with ID 43768878.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 compiler:01 compiler:01 stdlib:01 libcamlrun:01 ocamlc:01 stdlib:01 pervasives:01 ...:98 ...:98 functions:01 define:01 cma:01 cma:01 caml:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 > This is a -custom- environment. The question is, why is the compiler > adding references to these symbols when my code (stdlib.cma & > libcamlrun.a) does NOT reference these. You guys make life fun ;-) (Yes, note the sarcasm). So you define these external functions INTO the compiler itself... an interesting design... Looks like I'll have to figure out how to break up the build system to build JUST the ocamlc compiler and nothing else; use system tools for everything else. Is this to ensure your particular implementation of stdlib is guaranteed to work? As I noticed an interesting error when trying to build a custom compiler the naive way: Error while linking ../../stdlib/stdlib.cma(Pervasives): The external function `caml_ml_input' is not available Anyways, I assume you did it like this for a good reason. Jonathan =3D)