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

Cyclic dependency in camlp4/camlp4 make #2662

Closed
vicuna opened this issue Jun 11, 2004 · 2 comments
Closed

Cyclic dependency in camlp4/camlp4 make #2662

vicuna opened this issue Jun 11, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 11, 2004

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

Bug description

Full_Name: Christopher Dutchyn
Version: 3.07+19
OS: FreeBSD 4.10
Submission from: d142-173-52-254.bchsia.telus.net (142.173.52.254)

When I build Ocaml from CVS sources using the BSD make, I get an abort
in camlp4/camlp4 because of a cyclic dependency between pcaml.cmx and
ast2pt.cmx. Using GNU make yields a warning, but the compile
completes successfully. Inspecting the .depend file in that directory
I discover two useful details:

  1. there are two lines for each of pcaml.cmo and pcaml.cmx, and
  2. there is indeed a cycle between the second pcaml.cmx line and
    the ast2pt.cmx line.
    I duplicate my generated camlp4/camlp4/.depend file below.
    ast2pt.cmi: $(OTOP)/parsing/location.cmi $(OTOP)/parsing/longident.cmi mLast.cmi

    $(OTOP)/parsing/parsetree.cmi
    pcaml.cmi: mLast.cmi spretty.cmi
    quotation.cmi: mLast.cmi
    reloc.cmi: mLast.cmi
    argl.cmo: ast2pt.cmi mLast.cmi ../odyl/odyl_main.cmi pcaml.cmi
    argl.cmx: ast2pt.cmx mLast.cmi ../odyl/odyl_main.cmx pcaml.cmx
    ast2pt.cmo: $(OTOP)/parsing/asttypes.cmi $(OTOP)/parsing/location.cmi
    $(OTOP)/parsing/longident.cmi mLast.cmi $(OTOP)/parsing/parsetree.cmi
    pcaml.cmi ast2pt.cmi
    ast2pt.cmx: $(OTOP)/parsing/asttypes.cmi $(OTOP)/parsing/location.cmx
    $(OTOP)/parsing/longident.cmx mLast.cmi $(OTOP)/parsing/parsetree.cmi
    pcaml.cmx ast2pt.cmi
    pcaml.cmo: mLast.cmi quotation.cmi reloc.cmi spretty.cmi pcaml.cmi
    pcaml.cmx: mLast.cmi quotation.cmx reloc.cmx spretty.cmx pcaml.cmi
    crc.cmo: $(OTOP)/otherlibs/dynlink/dynlink.cmi
    crc.cmx: $(OTOP)/otherlibs/dynlink/dynlink.cmx
    pcaml.cmo: ast2pt.cmi mLast.cmi quotation.cmi reloc.cmi spretty.cmi pcaml.cmi
    pcaml.cmx: ast2pt.cmx mLast.cmi quotation.cmx reloc.cmx spretty.cmx pcaml.cmi
    quotation.cmo: mLast.cmi quotation.cmi
    quotation.cmx: mLast.cmi quotation.cmi
    reloc.cmo: mLast.cmi reloc.cmi
    reloc.cmx: mLast.cmi reloc.cmi
    spretty.cmo: spretty.cmi
    spretty.cmx: spretty.cmi
@vicuna
Copy link
Author

vicuna commented Jun 22, 2004

Comment author: administrator

Christopher,

Thanks for your report. I have fixed it in the CVS (nightly updated).

-- Michel

cdutchyn@cs.ubc.ca wrote/écrivait (Fri, Jun 11, 2004 at 07:26:34AM +0200):

Full_Name: Christopher Dutchyn
Version: 3.07+19
OS: FreeBSD 4.10
Submission from: d142-173-52-254.bchsia.telus.net (142.173.52.254)

When I build Ocaml from CVS sources using the BSD make, I get an abort
in camlp4/camlp4 because of a cyclic dependency between pcaml.cmx and
ast2pt.cmx.

@vicuna
Copy link
Author

vicuna commented Jun 22, 2004

Comment author: administrator

Fixed by MM, 2004-06-22.

@vicuna vicuna closed this as completed Jun 22, 2004
@vicuna vicuna added the bug label Mar 19, 2019
dra27 pushed a commit to dra27/ocaml that referenced this issue Feb 27, 2021
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