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 14F14BB9C for ; Tue, 15 Nov 2005 23:45:08 +0100 (CET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAFMj75l022675 for ; Tue, 15 Nov 2005 23:45:07 +0100 Received: by wproxy.gmail.com with SMTP id 71so1234989wra for ; Tue, 15 Nov 2005 14:45:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qUJzZCfUTt9Th1fvik+j50r2YtS+h/PeqJOM5B5ytH7dqMJVJvt9iB1qjBVRZdRS+gZ69dxYQKTX1CgUtXv+T/zjJc0xMxUxeLn3H69WGiHMOPCGhTUrL4OudiVftppat+0iSrJ1g2YO/MvY58+jyFwJGIY9SKhCQ0AN7nmooD8= Received: by 10.65.20.6 with SMTP id x6mr5323943qbi; Tue, 15 Nov 2005 14:45:06 -0800 (PST) Received: by 10.64.10.5 with HTTP; Tue, 15 Nov 2005 14:45:06 -0800 (PST) Message-ID: Date: Wed, 16 Nov 2005 11:45:06 +1300 From: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: [Caml-list] bytecode apps without stdlib/pervasives MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Miltered: at nez-perce with ID 437A64F3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bytecode:01 stdlib:01 pervasives:01 exn:01 compiler:01 ocaml:01 stdlib:01 ocamlc:01 -nostdlib:01 binary:01 flags:01 -nostdlib:01 pervasives:01 compile:01 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 Hi, I have a simple ML file (test.ml): external raise : exn -> 'a =3D "%raise";; raise End_of_file;; so I can check how the compiler does things (like if predefined ocaml symbols are still present without stdlib present), and compile as: ocamlc -nostdlib -nopervasives test.ml, which generates a.out. when I run it, I get error: "-bash: ./a.out: cannot execute binary file" (btw, generates expected behabiour without those flags) why can't it execute it? can we only use -nostdlib as long as we provide our own pervasives module? Jonathan