From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id F1CF6BBFB for ; Mon, 20 Jun 2005 00:27:52 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j5JMRqTN031723 for ; Mon, 20 Jun 2005 00:27:52 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA09807 for ; Mon, 20 Jun 2005 00:27:52 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j5JMRlLe031710; Mon, 20 Jun 2005 00:27:51 +0200 Received: from [192.168.1.201] (ppp35-43.lns1.syd2.internode.on.net [59.167.35.43]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id j5JMRjnE050901; Mon, 20 Jun 2005 07:57:46 +0930 (CST) Subject: Re: [Caml-list] OCaml 3.08.3 fails to compile under Fedora Core 4 (GCC 4). From: John Skaller To: Xavier Leroy Cc: Caml List In-Reply-To: <20050619100059.GA20968@yquem.inria.fr> References: <42B4E6C5.2010405@cs.caltech.edu> <20050619074551.GA623@yquem.inria.fr> <42B529CD.6070106@cs.caltech.edu> <20050619100059.GA20968@yquem.inria.fr> Content-Type: text/plain Date: Mon, 20 Jun 2005 08:27:45 +1000 Message-Id: <1119220065.10455.79.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 42B5F168.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42B5F163.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 gcc:01 ocaml:01 gcc:01 cvs:01 ocamlc:01 -version:01 ocamlrun:01 -nolib:01 mlast:01 cmo:01 cmo:01 ppo:01 -verbose:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Sun, 2005-06-19 at 12:00 +0200, Xavier Leroy wrote: > > I've realized that in Fedora Extras 4 the ocaml package contains the > > following patch: > > - : "+&r" (a), "+&r" (b), "+&rm" (blen), "+&r" (out) > > + : "+&r" (a), "+&r" (b), "+m" (blen), "+&r" (out) > > Is this reasonable? > > Yes, very much so. You'll get better performance than with the > workaround I suggested (disabling inline asm). I need to run a few > tests with gcc 4, but eventually will fix the problem along these lines. Hmm .. I just build CVS Ocaml branch release308 on x86-64/amd64 platform with gcc 4.0 .. seems to work: skaller@rosella:/work/ocaml$ ./ocamlc.opt -version 3.08.3+3 (2005-05-18) However I get another problem: ../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot q_MLast.cmo pa_extend.cmo -o pa_o_fast.ppo -verbose pa_o_fast.ml ---------------------------------- Parse error in entry [expr], rule: [ "("; ")" | "("; SELF; ":>"; type; ")" | "("; SELF; ":"; type; ":>"; type; ")" | "("; SELF; ":"; type; ")" | "("; SELF; ","; LIST1 expr SEP ","; ")" | "("; SELF; ")" ] ---------------------------------- File "pa_o_fast.ml", line 759, characters 7-9: Parse error: ')' or [expr] expected after '(' (in [expr]) Uncaught exception: Stream.Error("')' or [expr] expected after '(' (in [expr])") make[2]: *** [pa_o_fast.cmx] Error 2