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=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 32E9EBB84 for ; Tue, 12 Aug 2008 19:03:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAGFfoUigTqeM/2dsb2JhbACxFYEp X-IronPort-AV: E=Sophos;i="4.32,196,1217800800"; d="scan'208";a="13940444" Received: from spartacus.cs.unipr.it ([160.78.167.140]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Aug 2008 19:03:08 +0200 Received: from [192.168.1.100] (host14-204-dynamic.11-87-r.retail.telecomitalia.it [87.11.204.14]) (authenticated bits=0) by spartacus.cs.unipr.it (8.13.7/8.13.7) with ESMTP id m7CH36wb024204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Aug 2008 19:03:07 +0200 Message-ID: <48A1C24A.1060109@cs.unipr.it> Date: Tue, 12 Aug 2008 19:03:06 +0200 From: Roberto Bagnara Organization: Department of Mathematics, University of Parma, Italy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050929 Thunderbird/1.0.7 Fedora/1.0.7-1.1.fc4 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: ocamlc: how to keep sources and objects in different directories? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (spartacus.cs.unipr.it [160.78.167.140]); Tue, 12 Aug 2008 19:03:08 +0200 (CEST) X-Spam: no; 0.00; ocamlc:01 cmo:01 ocamlc:01 ocaml:01 ocaml:01 cmo:01 read-only:01 interfaces:01 interfaces:01 gmp:02 objects:02 objects:02 seems:03 types:05 types:05 Hi there, it seems that `ocamlc' wants to create the .cmo file in the same directories as the .ml file. More specifically I observe this: $ ocamlc -g -c -I +gmp -I ../../../interfaces/OCaml ../../../interfaces/OCaml/ppl_ocaml_types.ml I/O error: ../../../interfaces/OCaml/ppl_ocaml_types.cmo: Permission denied The ../../../interfaces/OCaml directory is read-only: is there an option causing `ocamlc' to write the .cmo file in the current directory instead? If not, what is the best way to achieve complete separation of sources and objects? All the best, Roberto -- Prof. Roberto Bagnara Computer Science Group Department of Mathematics, University of Parma, Italy http://www.cs.unipr.it/~bagnara/ mailto:bagnara@cs.unipr.it