English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] problem with threads and ocamldep
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-22 (13:58)
From: Conway, Christopher L (Christopher)** CTR ** <cconway@l...>
Subject: [Caml-list] problem with threads and ocamldep
I am having a problem adding threads to a large project I am working on. If I added "-thread" and "threads.cmxa" and compile, it works fine. However, when I run ocamldep, it generates a dependency on $(OCAML_BUILD_DIR)/lib/ocaml/thread.cmi which then leads to the following when I run make:

ocamlc -thread <snip> -c $(OCAML_BUILD_DIR)/lib/ocaml/thread.mli
I/O error: $(OCAML_BUILD_DIR)/lib/ocaml/thread.cmi: Permission denied

The dependency on thread.cmi seems to be bogus. Is there a switch I can give ocamldep so that it won't generate this? Is it likely that something in my build process is tricking ocamldep into producing it? I've tried this a number of ways, and can't get the thread code to compile alongside the rest of the project.


To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners