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

.depend in stdlib seems not to be exact #7079

Closed
vicuna opened this issue Dec 8, 2015 · 3 comments
Closed

.depend in stdlib seems not to be exact #7079

vicuna opened this issue Dec 8, 2015 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Dec 8, 2015

Original bug ID: 7079
Reporter: @bobzhang
Status: closed (set by @bobzhang on 2015-12-09T17:03:55Z)
Resolution: open
Priority: normal
Severity: minor
Category: standard library

Bug description

pervasives.cmx file as a dependency seems to be missing.
for example list.cmx depends on pervasives.cmx since it uses Pervasives.failwith

@vicuna
Copy link
Author

vicuna commented Dec 8, 2015

Comment author: @bobzhang

btw, I found the problem since parallel building behaves not exactly the same as non-parallel build

@vicuna
Copy link
Author

vicuna commented Dec 9, 2015

Comment author: @xavierleroy

Yes, ocamldep doesn't track the implicit open of Pervasives. The Makefiles in stdlib/ do, however:

Dependencies on Pervasives (not tracked by ocamldep)

$(OTHERS) std_exit.cmo: pervasives.cmi
$(OTHERS:.cmo=.cmi) std_exit.cmi: pervasives.cmi
$(OBJS:.cmo=.cmx) std_exit.cmx: pervasives.cmi
$(OBJS:.cmo=.p.cmx) std_exit.p.cmx: pervasives.cmi
$(OTHERS:.cmo=.cmx) std_exit.cmx: pervasives.cmx
$(OTHERS:.cmo=.p.cmx) std_exit.p.cmx: pervasives.cmx

So, what is the problem, exactly?

@vicuna
Copy link
Author

vicuna commented Dec 9, 2015

Comment author: @bobzhang

sorry, it's my bad, I only copied .depend and forgot to update Makefile

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

No branches or pull requests

1 participant