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=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr 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 788B8BBAF for ; Thu, 23 Apr 2009 09:37:38 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlUCAAO370nRVllDlGdsb2JhbACCJiyTdQEBAQEJCwgJEQOnQQmQYwGCQIE0Bg X-IronPort-AV: E=Sophos;i="4.38,431,1233529200"; d="scan'208,217";a="28138996" Received: from elasmtp-scoter.atl.sa.earthlink.net ([209.86.89.67]) by mail1-smtp-roc.national.inria.fr with ESMTP; 23 Apr 2009 09:37:37 +0200 Received: from [69.139.210.102] (helo=[10.0.1.194]) by elasmtp-scoter.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1LwtV2-0002h7-Hg for caml-list@yquem.inria.fr; Thu, 23 Apr 2009 03:37:36 -0400 Mime-Version: 1.0 (Apple Message framework v753.1) To: caml-list@yquem.inria.fr Message-Id: Content-Type: multipart/alternative; boundary=Apple-Mail-1-172029633 From: David McClain Subject: Threads? Date: Thu, 23 Apr 2009 00:37:14 -0700 X-Mailer: Apple Mail (2.753.1) X-ELNK-Trace: 7a0ab3eafc8cf994b22988ad1c62733440683398e744b8a4dd9375943ccb5ff2d697f4d4df10df002601a10902912494350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 69.139.210.102 X-Spam: no; 0.00; ocamlopt:01 compilation:01 ocamlfind:01 ocamlopt:01 -thread:01 -package:01 camlp:01 -package:01 usr:01 lib:01 ocaml:01 -thread:01 -cclib:01 cmxa:01 cmxa:01 --Apple-Mail-1-172029633 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, It's been about 5 years since I faced this situation. I'm trying to link my program against the Thread module. Things go well until I do the ocamlopt compilation, then it aborts the make with the message: ocamlfind ocamlopt -thread -o sdsp.opt -package camlp4 -package threads -package unix -I ../src -I /usr/local/lib/ocaml/threads \ -thread -cclib threads.a nums.cmxa sdsp.cmxa threads/threads.cmxa \ readline.cmx scmMain.cmx File "_none_", line 1, characters 0-1: Error: No implementations provided for the following modules: Thread referenced from ../src/sdsp.cmxa(SdlPrims) make[1]: *** [sdsp.opt] Error 2 make: *** [subdirs] Error 2 Forgive the excessive number of -thread flags in there... this has been trial and error. I understand that it can't seem to find a .ml file to go along with the thread.mli, because there isn't one provided by the distribution. I also understand that the functionality of the thread module is made up largely of the posix threads C-code in the otherlibs directory. Somehow the system needs to be coaxed to look into the threads subdirectory in the lib/ocaml folder, but I am at wits end at this point.... This make is proceeding on Mac OS X 10.4 I'm sure it is possible to do this, because I have an ancient (unreadable) make script that does so for another system. Surely there is a very simple solution here, short of my inventing an entire Makefile script for this project. Eh? Thanks in advance... Dr. David McClain Chief Technical Officer Refined Audiometrics Laboratory 4391 N. Camino Ferreo Tucson, AZ 85750 email: dbm@refined-audiometrics.com phone: 1.520.390.3995 web: http://www.refined-audiometrics.com --Apple-Mail-1-172029633 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Hi,

It's been about 5 years since I faced this = situation. I'm trying to link my program against the Thread module. = Things go well until I do the ocamlopt compilation, then it aborts the = make with the message:

ocamlfind ocamlopt = -thread -o sdsp.opt =A0 -package camlp4 -package threads -package unix = -I ../src -I /usr/local/lib/ocaml/threads =A0\
-thread = -cclib threads.a =A0nums.cmxa sdsp.cmxa threads/threads.cmxa =A0 = \
= readline.cmx scmMain.cmx=A0

File = "_none_", line 1, characters 0-1:
Error: No implementations = provided for the following modules:
=A0=A0 =A0 =A0 =A0 Thread = referenced from ../src/sdsp.cmxa(SdlPrims)
make[1]: *** = [sdsp.opt] Error 2
make: *** [subdirs] Error = 2


Forgive the excessive number = of -thread flags in there... this has been trial and = error.

I understand that it can't seem to find = a .ml file to go along with the thread.mli, because there isn't one = provided by the distribution. I also understand that the functionality = of the thread module is made up largely of the posix threads C-code in = the otherlibs directory. Somehow the system needs to be coaxed to look = into the threads subdirectory in the lib/ocaml folder, but I am at wits = end at this point....

This make is proceeding = on Mac OS X 10.4=A0

I'm sure it is possible to = do this, because I have an ancient (unreadable) make script that does so = for another system. Surely there is a very simple solution here, short = of my inventing an entire Makefile script for this project. = Eh?

Thanks in advance...

Dr. David McClain
Chief = Technical Officer
Refined Audiometrics = Laboratory
4391 N. Camino Ferreo
Tucson, AZ=A0 85750


=

= --Apple-Mail-1-172029633--