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=1.9 required=5.0 tests=AWL,DNS_FROM_SECURITYSAGE, SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 56513BBAF for ; Wed, 22 Oct 2008 10:16:40 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhUDAJd+/kjAXQIngWdsb2JhbACTaAEBFiKyCYNQ X-IronPort-AV: E=Sophos;i="4.33,463,1220220000"; d="scan'208";a="30606141" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 22 Oct 2008 10:16:40 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m9M8GdkR005269 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 22 Oct 2008 10:16:39 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgsBAFt+/khCm3xrl2dsb2JhbACTaAEBAQEBCBUHshuDUA X-IronPort-AV: E=Sophos;i="4.33,463,1220220000"; d="scan'208";a="19030307" Received: from janestcapital.com (HELO smtp.janestcapital.com) ([66.155.124.107]) by mail1-smtp-roc.national.inria.fr with ESMTP; 22 Oct 2008 10:16:38 +0200 Received: from qsmtp.delacy.com [38.105.200.250] by janestcapital.com with ESMTP (SMTPD-9.10) id A1650344; Wed, 22 Oct 2008 04:16:37 -0400 Received: from lon-qws-008.delacy.com ([172.30.3.108] helo=lon-qws-008) by qsmtp.delacy.com with smtp (Exim 4.63) (envelope-from ) id 1KsYtQ-0005UC-AB; Wed, 22 Oct 2008 04:16:37 -0400 Received: by lon-qws-008 (sSMTP sendmail emulation); Wed, 22 Oct 2008 09:16:35 +0100 From: "Mark Shinwell" Date: Wed, 22 Oct 2008 09:16:35 +0100 To: Markus Mottl Cc: Ashish Agarwal , Caml List Subject: Re: [Caml-list] problem installing janestreet core through godi Message-ID: <20081022081635.GU14123@janestcapital.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-Miltered: at concorde with ID 48FEE167.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; shinwell:01 markus:01 mottl:01 ocamlfind:01 ocamlc:01 -package:01 -pp:01 cpp:01 flags:01 camlp:01 mli:01 mli:01 syntax:01 cpp:01 gcc:01 On Tue, Oct 21, 2008 at 04:22:09PM -0400, Markus Mottl wrote: > 2008/10/21 Ashish Agarwal : > > I am having trouble installing JaneStreet's Core library through godi. > > On Mac OS X, it fails while installing the prerequisite bin-prot: > > ... > >> ocamlfind ocamlc -package type-conv -c -pp "cpp $ARCH_FLAGS " -I +camlp4 > >> type_class.mli > >> File "type_class.mli", line 93, characters 15-16: > >> Syntax error > > ... > > Line 93 of type_class.mli is: > > MK_BASE(unit) > > It's possible that the C-preprocessor works differently on Mac OS X. > I haven't investigated this yet, but would be grateful if anybody who > has set up Godi on a Mac could try to find a patch. There is something about the preprocessors on Mac OS X which causes cpp to behave differently from gcc -E; I've hit this before but can't remember the full explanation offhand. You can see the difference, for example, if you try to use the ## operator. Does everything work if you get everything to use gcc -E for preprocessing? Mark