Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re: problem with threads.cmxa #2429

Closed
vicuna opened this issue Apr 27, 2000 · 1 comment
Closed

Re: problem with threads.cmxa #2429

vicuna opened this issue Apr 27, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

@vicuna vicuna commented Apr 27, 2000

Original bug ID: 92
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

I have converted Markus' pcre to ocaml 3.00 and managed to compile
the whole of Vyper using it, but I get the following during a link:
[I'm using native threads, or trying to]

Yes, this is a bug in the Makefile for native threads. The new
feature of remembering C library names in Caml libraries is nice, but
all hell breaks loose when the wrong C library name is stored in a
Caml library.

Quick workaround: manual override!

    ocamlopt.opt ... -noautolink ... threads.cmxa ... -cclib -lthreadsnat

Better fix: apply the patch below to otherlibs/systhreads/Makefile,
change to that directory, and do make clean all allopt install.

Thanks for the bug report,

  • Xavier Leroy

Index: Makefile

RCS file: /net/pauillac/caml/repository/csl/otherlibs/systhreads/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile 2000/03/09 09:12:27 1.20
+++ Makefile 2000/04/27 08:21:42
@@ -50,7 +50,7 @@

threads.cmxa: $(THREAD_OBJS:.cmo=.cmx)
$(CAMLOPT) -a -o threads.cmxa $(THREAD_OBJS:.cmo=.cmx) \

  •      -cclib -lthreads -cclib -lunix $(PTHREAD_LINK)
    
  •      -cclib -lthreadsnat -cclib -lunix $(PTHREAD_LINK)
    

$(THREAD_OBJS:.cmo=.cmx): ../../ocamlopt

@vicuna
Copy link
Author

@vicuna vicuna commented Apr 27, 2000

Comment author: administrator

Fixed 2000/04/27 by Xavier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant