caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David McClain <dbm@refined-audiometrics.com>
To: caml-list@yquem.inria.fr
Subject: Threads?
Date: Thu, 23 Apr 2009 00:37:14 -0700	[thread overview]
Message-ID: <CA490C1C-1279-4EDD-B2A7-51E9D678FBBD@refined-audiometrics.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1716 bytes --]

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




[-- Attachment #2: Type: text/html, Size: 6369 bytes --]

             reply	other threads:[~2009-04-23  7:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23  7:37 David McClain [this message]
2009-04-23  7:42 ` [Caml-list] Threads? Mark Shinwell
2009-04-23  8:23   ` David McClain
2009-04-23  8:24 ` David Allsopp

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=CA490C1C-1279-4EDD-B2A7-51E9D678FBBD@refined-audiometrics.com \
    --to=dbm@refined-audiometrics.com \
    --cc=caml-list@yquem.inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).