From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id A0780BBAF for ; Tue, 24 Aug 2010 10:29:10 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAKofc0yNTDBjgWdsb2JhbACTKo0TFQEBFiIiuU6FNwSJeA X-IronPort-AV: E=Sophos;i="4.56,262,1280700000"; d="scan'208";a="66044391" Received: from os.inf.tu-dresden.de ([141.76.48.99]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Aug 2010 10:29:10 +0200 Received: from niob.inf.tu-dresden.de ([141.76.48.41] helo=blau.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) id 1OnosX-0005AG-Eb for caml-list@inria.fr; Tue, 24 Aug 2010 10:29:09 +0200 Received: from tews by blau.inf.tu-dresden.de with local (Exim 4.72) (envelope-from ) id 1OnosX-0005bS-1P for caml-list@inria.fr; Tue, 24 Aug 2010 10:29:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19571.33492.589609.728522@blau.inf.tu-dresden.de> Date: Tue, 24 Aug 2010 10:29:08 +0200 To: caml-list@inria.fr Subject: ocamlbuild: full path for camlp4 preprocessors? X-Mailer: VM 8.1.0 under 23.1.1 (i486-pc-linux-gnu) From: Hendrik Tews X-Spam: no; 0.00; camlp:01 hendrik:01 tews:01 tews:01 camlp:01 ocaml:01 ocaml-:01 ocaml-:01 compiler:01 ocamldep:01 -pp:01 usr:01 hendrik:01 tu-dresden:01 compiles:01 Hi, I have another ocamlbuild question: How can I tell ocamlbuild to use the full path for the camlp4 preprocessors? I just compiled ocaml 3.12 to test if it compiles my software. So I do /soft/ocaml-3.12.0/bin/ocamlbuild target.native and ocamlbuild is clever enough to prefix all commands with /soft/ocaml-3.12.0/bin to make sure the 3.12 compiler is used. But then comes this file that needs camlp4 and ocamlbuild runs /soft/ocaml-3.12.0/bin/ocamldep.opt -pp camlp4orf -modules xx.ml > ... which of course fails because camlp4orf is version 3.11.2 from /usr/bin. How can I tell ocamlbuild to also use the full path for camlp4 preprocessors? (I could put /soft/ocaml-3.12.0/bin into PATH, but there should be a way to solve this problem without changing PATH: It should be possible to run ocamlbuild without putting the ocaml-bin-dir into PATH) Thanks, Hendrik Tews