From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 81A767F734 for ; Wed, 23 Sep 2015 10:19:22 +0200 (CEST) IronPort-PHdr: 9a23:qB0yuxB27hHmAkgYdgXpUyQJP3N1i/DPJgcQr6AfoPdwSP7zp8bcNUDSrc9gkEXOFd2CrakU16yK6uu5AzxIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/ni6buotaKOVUArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6m4HoYGkAfnhpBHQHd4R32T9+luy37ssJn1SKdPMmwSqo7D2eM9aBuHTrhhyEaLHYF8GzNjM12g+oPpRuuoQFk65LUbZuTNfxxOKTHcoVJFiJ6Qs9NWnkZUcuHZIwVAr9EZL4Aog== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=magnus@therning.org; spf=None smtp.mailfrom=magnus@therning.org; spf=None smtp.helo=postmaster@mail-wi0-f176.google.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of magnus@therning.org) identity=pra; client-ip=209.85.212.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="magnus@therning.org"; x-sender="magnus@therning.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of magnus@therning.org) identity=mailfrom; client-ip=209.85.212.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="magnus@therning.org"; x-sender="magnus@therning.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f176.google.com) identity=helo; client-ip=209.85.212.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="magnus@therning.org"; x-sender="postmaster@mail-wi0-f176.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DuAADKXwJWm7DUVdFdg3hjBr9LhX0CgUo7EQEBAQEBAQEBEAEBAQEBBgsLCSEugh2CCAEBBBJnEAsYCSUPBSABBQEiEyKIDAQBA6h/gTA+MZ9jAQEBAQEBAQMBAQEBAQEBGwqLZoQqEQFRB4MYgRQFlWeFEYdzBVGBRIZeimgUhWs1gRc3hC9viC6BPwEBAQ X-IPAS-Result: A0DuAADKXwJWm7DUVdFdg3hjBr9LhX0CgUo7EQEBAQEBAQEBEAEBAQEBBgsLCSEugh2CCAEBBBJnEAsYCSUPBSABBQEiEyKIDAQBA6h/gTA+MZ9jAQEBAQEBAQMBAQEBAQEBGwqLZoQqEQFRB4MYgRQFlWeFEYdzBVGBRIZeimgUhWs1gRc3hC9viC6BPwEBAQ X-IronPort-AV: E=Sophos;i="5.17,577,1437429600"; d="asc'?scan'208";a="148294691" Received: from mail-wi0-f176.google.com ([209.85.212.176]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 23 Sep 2015 10:19:20 +0200 Received: by wicge5 with SMTP id ge5so195676233wic.0 for ; Wed, 23 Sep 2015 01:19:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=c9EfkTnQwx9XNo93P8GodFLTql2oT7Zyxi/FP/Z4x8M=; b=PpZjPMFrv3OjMUB4Xmlzftt7qixnIi+WMXfucPzcCR4gUe3K0QonjP0qap0mm1DEIP 7eMKHlqAfQwth/aTJoPQdOUUofq4FWe7GnOGUj/jZgb86DNYFVqPAXqiCyMn4hVo+7QD WURrGKLyXA0TV41LZyRvocGQiFutS2V95+kMJvngO9gc05sfbR6G2qTBg/M4TtgyUBQA mIAOfoe66qXI7BxHQQPlhB7dR7PaKhkI8Fe9s7gymJEkm3d+ukstmDMqVL5oo/eAXo3b F4J7qUIlemAd/eLuNYSiCpzzt6wR9U6L39S0d3tlcwTZTDx6FbSB6y9WjrXZglF9S3lY uD2Q== X-Gm-Message-State: ALoCoQleWnmHsoYCebKpFQECLE4ewAc/Sm4KUq96FUabtn2hRNLHKlMZwwigPgE1B5DoXdtDP8Xw X-Received: by 10.194.21.199 with SMTP id x7mr37552171wje.63.1442996359611; Wed, 23 Sep 2015 01:19:19 -0700 (PDT) Received: from sobel.cipherstone.com (pc-132.aktiviteten.se. [194.218.229.132]) by smtp.gmail.com with ESMTPSA id x9sm3503980wjf.44.2015.09.23.01.19.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2015 01:19:18 -0700 (PDT) Date: Wed, 23 Sep 2015 10:19:16 +0200 From: Magnus Therning To: Anil Madhavapeddy Cc: OCaml List Message-ID: <20150923081916.GE22004@sobel.cipherstone.com> References: <20150922211237.GA22711@tatooine> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lkTb+7nhmha7W+c3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [Caml-list] oasis building out-of-src and camlp4 --lkTb+7nhmha7W+c3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 23, 2015 at 09:48:43AM +0200, Anil Madhavapeddy wrote: > On 22 Sep 2015, at 23:12, Magnus Therning wrote: > >=20 > > ~~~ > > + /usr/bin/ocamldep.opt -modules src/main.ml > src/main.ml.depends > > File "src/main.ml", line 12, characters 4-8: > > Error: Syntax error > > Command exited with code 2. > > Compilation unsuccessful after building 1 target (0 cached) in 00:00:00. > > E: Failure("Command ''/usr/bin/ocamlbuild' src/main.byte -tag debug -bu= ild-dir /home/magnus/devo/tmp/oasis-camlp4-build/build' terminated with err= or code 10") > > ~~~ > >=20 > > What am I missing here, how do I get the second example to build? >=20 > The ocamldep invocation here is not passing the -pp parameter to run > the source code through camlp4. I'm not sure how you fix that in > CMake, but add the relevant lines (which should be the same as those > passed to ocamlc/ocamlopt) to ocamldep and it should get further... Ah, OK, I'll have to look into that. I should point out though that I've not started using CMake yet. The examples I showed use just `oasis` (with `ocamlbuild` as its tool). I'm still trying to work out the incantations to use, the integration with CMake comes later :) /M --=20 Magnus Therning OpenPGP: 0xAB4DFBA4=20 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus LeBlanc's law: Later equals never. --lkTb+7nhmha7W+c3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEABECAAYFAlYCYIQACgkQiMWTaatN+6SQyACeOCmmqHXyZazfmD3uyI03ZFQr vUUAniHjA1xV4d0xZ59wUxEBb8dJIRm4 =RzDj -----END PGP SIGNATURE----- --lkTb+7nhmha7W+c3--