Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Roberto Bagnara <bagnara@cs.unipr.it>
To: Nicolas Pouillard <nicolas.pouillard@gmail.com>
Cc: Vincent Hanquez <tab@snarc.org>,
	Caml_mailing list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] ocamlc: how to keep sources and objects in different directories?
Date: Wed, 13 Aug 2008 12:33:14 +0200	[thread overview]
Message-ID: <48A2B86A.9080301@cs.unipr.it> (raw)
In-Reply-To: <1218614590-sup-2275@ausone.local>

Nicolas Pouillard wrote:
> Excerpts from Roberto Bagnara's message of Wed Aug 13 09:32:51 +0200 2008:
>> Vincent Hanquez wrote:
>>> On Tue, Aug 12, 2008 at 07:03:06PM +0200, Roberto Bagnara wrote:
>>>> 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?
>>> you can use "-o ./ppl_ocaml_types.cmo"
>> Thanks Vincent, but it does not work:
>>
>> $ 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
>> $ ocamlc -g -c -I +gmp -I ../../../interfaces/OCaml ../../../interfaces/OCaml/ppl_ocaml_types.ml -o ./ppl_ocaml_types.cmo
>> I/O error: ../../../interfaces/OCaml/ppl_ocaml_types.cmo: Permission denied
>> $ ocamlc -version
>> 3.10.1
>>
>> Any other idea?
> 
> The -o option should be before the .ml.

Thanks!
All the best,

    Roberto

P.S.  Perhaps this should be written in the documentation...
       I have just reread http://caml.inria.fr/pub/docs/manual-ocaml/manual022.html
       but found no mention of this important detail.

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara@cs.unipr.it


      reply	other threads:[~2008-08-13 10:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12 17:03 Roberto Bagnara
2008-08-13  7:22 ` [Caml-list] " Vincent Hanquez
2008-08-13  7:32   ` Roberto Bagnara
2008-08-13  8:03     ` Nicolas Pouillard
2008-08-13 10:33       ` Roberto Bagnara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A2B86A.9080301@cs.unipr.it \
    --to=bagnara@cs.unipr.it \
    --cc=caml-list@yquem.inria.fr \
    --cc=nicolas.pouillard@gmail.com \
    --cc=tab@snarc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox