Mantis - Bisect
Erweiterte Problemanzeige
108 general kleinerer Fehler immer 2012-11-13 10:12 2012-11-13 10:14
edwin  
 
normal  
neu 1.3  
offen  
keine    
keine  
0000108: bisect 1.3: doesn't install bisectThread*
When running bisect on an ocaml program that uses threads (for example by linking with lwt) I get an error:
Error: Cannot find file /home/edwin/.opam/4.00.1/lib/bisect/bisectThread.cmx
Command exited with code 2.

It looks like bisectThread* was not installed at all.
The Makefile looks for $(PATH_BUILD)/src/$(PROJECT_NAME)Thread.cm*, but the file is actually in a subdirectory: $(PATH_BUILD)/src/threads/$(PROJECT_NAME)Thread.cm*
Problem-Historie
2012-11-13 10:12 edwin Neues Problem
2012-11-13 10:14 edwin Problemnotiz hinzugefügt: 0000262

Notiz
(0000262)
edwin   
2012-11-13 10:14   
There doesn't seem to be a way to attach bugs on this bug tracker, so here is a patch for Makefile:

--- a/Makefile 2012-11-03 22:21:53.000000000 +0200
+++ b/Makefile 2012-11-13 11:08:26.377616618 +0200
@@ -89,9 +89,9 @@
          $(PATH_OCAMLFIND) query $(PROJECT_NAME) && $(PATH_OCAMLFIND) remove $(PROJECT_NAME) || true; \
          $(PATH_OCAMLFIND) install $(PROJECT_NAME) META -optional \
            $(PATH_BUILD)/$(PROJECT_NAME)_pp.cmo \
- $(PATH_BUILD)/src/$(PROJECT_NAME)Thread.cm* \
- $(PATH_BUILD)/src/$(PROJECT_NAME)Thread.o \
- $(PATH_BUILD)/src/$(PROJECT_NAME)Thread.jo \
+ $(PATH_BUILD)/src/threads/$(PROJECT_NAME)Thread.cm* \
+ $(PATH_BUILD)/src/threads/$(PROJECT_NAME)Thread.o \
+ $(PATH_BUILD)/src/threads/$(PROJECT_NAME)Thread.jo \
            $(PATH_BUILD)/$(PROJECT_NAME).a \
            $(PATH_BUILD)/$(PROJECT_NAME).cma \
            $(PATH_BUILD)/$(PROJECT_NAME).cmi \
@@ -106,7 +106,7 @@
            cp $(PATH_BUILD)/$(PROJECT_NAME)_pp.cmo $(PATH_INSTALL); \
          fi; \
          for ext in cmi cmo cmx o cmj jo; do \
- test -f $(PATH_BUILD)/src/$(PROJECT_NAME)Thread.$$ext && cp $(PATH_BUILD)/src/$(PROJECT_NAME)Thread.$$ext $(PATH_INSTALL) || true; \
+ test -f $(PATH_BUILD)/src/threads/$(PROJECT_NAME)Thread.$$ext && cp $(PATH_BUILD)/src/threads/$(PROJECT_NAME)Thread.$$ext $(PATH_INSTALL) || true; \
          done; \
          for ext in a cmi cmo cmx cma cmxa cmja ja; do \
            test -f $(PATH_BUILD)/$(PROJECT_NAME).$$ext && cp $(PATH_BUILD)/$(PROJECT_NAME).$$ext $(PATH_INSTALL) || true; \