From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 3EE32BC6B for ; Tue, 27 Nov 2007 01:01:17 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFfsSkfAXQInh2dsb2JhbACPQQEBAQgKKYEP X-IronPort-AV: E=Sophos;i="4.23,216,1194217200"; d="scan'208";a="6206813" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 27 Nov 2007 01:01:16 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id lAR01Cp0023413 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 27 Nov 2007 01:01:16 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAEftSkdQRFuw/2dsb2JhbACRDg X-IronPort-AV: E=Sophos;i="4.23,216,1194217200"; d="scan'208";a="19704929" Received: from furbychan.cocan.org ([80.68.91.176]) by mail4-smtp-sop.national.inria.fr with ESMTP; 27 Nov 2007 01:01:11 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1Iwnsv-0007Zw-00; Tue, 27 Nov 2007 00:01:05 +0000 Date: Tue, 27 Nov 2007 00:01:05 +0000 To: Sebastien Ferre Cc: ocaml Subject: Re: [Caml-list] Floating exception Message-ID: <20071127000105.GA25176@furbychan.cocan.org> References: <47471716.3020304@irisa.fr> <1195900308.7242.19.camel@localhost> <474B019F.90102@irisa.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <474B019F.90102@irisa.fr> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Miltered: at concorde with ID 474B5E48.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0100,:01 gcc:01 gcc:01 ocaml:01 ocaml:01 26,:98 14.:98 wrote:01 binaries:01 compile:01 exception:01 exception:01 caml-list:01 binary:02 simplest:02 On Mon, Nov 26, 2007 at 06:25:51PM +0100, Sebastien Ferre wrote: > I've got the same problem with the simplest program, > the "hello world" : > > let _ = print_string "Hello world!\n" > > * Machine where compiled (in native code): > > Linux version 2.6.20-1.2952.fc6 > (brewbuilder@ls20-bc1-14.build.redhat.com) (gcc > version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Wed May 16 18:59:18 > EDT 2007 > Intel(R) Core(TM) Duo CPU U2500 @ 1.20GHz > > > * Machine where execution produces "Floating exception" > > Linux version 2.6.15-1.1833_FC4smp > (bhcompile@hs20-bc1-1.build.redhat.com) (gcc > version 4.0.2 20051125 (Red Hat 4.0.2-8)) #1 SMP Wed Mar 1 23:56:51 EST 2006 > Intel(R) Xeon(TM) CPU 3.40GHz > > I know I cannot assume that a native binary is portable, > but I'd like to understand what makes it fail. > gcc version, redhat version, FC version ? Are you using the Fedora ocaml or did you compile it yourself, and which version of OCaml is this? I've shipped binaries of native OCaml programs to a lot of customers and no one has reported anything like this (which is not to say it can't happen). Rich. -- Richard Jones Red Hat