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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 50FF47F734 for ; Wed, 23 Sep 2015 09:57:04 +0200 (CEST) IronPort-PHdr: 9a23:hbk1OBDE9vmrWlewcNsaUyQJP3N1i/DPJgcQr6AfoPdwSP7zp8bcNUDSrc9gkEXOFd2CrakU16yK6uu5AzJIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/ni6buotaKOVsArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6q73QaT35erhpFGQ7E6h6yCpL4vS3nrcJh2CSAO8zwQvYzQzv0vIlxTxq9oSEGM3Yc+W3Xg9J5lK9XrAPp8xV5wor8eoyeM/t6OKTHcoVJFiJ6Qs9NWnkZUcuHZIwVAr9EZL4Aog== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=anil@recoil.org; spf=None smtp.mailfrom=anil@recoil.org; spf=None smtp.helo=postmaster@bark.recoil.org Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=pra; client-ip=5.153.225.51; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=mailfrom; client-ip=5.153.225.51; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@bark.recoil.org) identity=helo; client-ip=5.153.225.51; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="postmaster@bark.recoil.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C0BgBoWgJW/zPhmQVdgyRUEwNTv0eGAQIIgUI7EQEBAQEBAQEBgQmCHYIIAQEEOj8QCxguVwYTiDLLBAEBAQEBBQEBAQEBAQEBGokCgm6EWjMHMYJngRQBBJVnhRGHeFGBRIZukiM3LIQDb4ltAQEB X-IPAS-Result: A0C0BgBoWgJW/zPhmQVdgyRUEwNTv0eGAQIIgUI7EQEBAQEBAQEBgQmCHYIIAQEEOj8QCxguVwYTiDLLBAEBAQEBBQEBAQEBAQEBGokCgm6EWjMHMYJngRQBBJVnhRGHeFGBRIZukiM3LIQDb4ltAQEB X-IronPort-AV: E=Sophos;i="5.17,577,1437429600"; d="scan'208";a="179018870" Received: from bark.recoil.org ([5.153.225.51]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2015 09:57:03 +0200 Received: from [10.0.1.37] (AOrleans-656-1-39-10.w90-21.abo.wanadoo.fr [90.21.46.10]) by bark.recoil.org (OpenSMTPD) with ESMTPSA id e0aaf044 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; Wed, 23 Sep 2015 08:57:00 +0100 (BST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) From: Anil Madhavapeddy In-Reply-To: <20150922211237.GA22711@tatooine> Date: Wed, 23 Sep 2015 09:48:43 +0200 Cc: OCaml List Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150922211237.GA22711@tatooine> To: Magnus Therning X-Mailer: Apple Mail (2.2104) Subject: Re: [Caml-list] oasis building out-of-src and camlp4 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 -buil= d-dir /home/magnus/devo/tmp/oasis-camlp4-build/build' terminated with error= code 10") > ~~~ >=20 > What am I missing here, how do I get the second example to build? 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... regards, Anil=