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

ocamlebug: load_printer #3184

Closed
vicuna opened this issue Feb 5, 2002 · 2 comments
Closed

ocamlebug: load_printer #3184

vicuna opened this issue Feb 5, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 5, 2002

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

Bug description

Full_Name:
Version: 3.04
OS: linux
Submission from: pc803.lri.fr (129.175.8.114)

dans ocamldebug, si on fait load_printer "b.cmo" et que le module B dépend
d'un a.cmi sans .cmo associé (un module A n'introduisant que des types) alors
ocamldebug échoue dans le chargement de "b.cmo", réclamant un "a.cmo"

En détail :


% cat > a.mli
type t = int
% cat > b.ml
type t = A.t
let x = 1
% ocamlc -c -g a.mli
% ocamlc -c -g b.ml
% ocamlc -g b.cmo
% ocamldebug a.out
Objective Caml Debugger version 3.04

(ocd) load_printer "b.cmo"
Cannot find file a.cmo
(ocd)

@vicuna
Copy link
Author

vicuna commented Feb 6, 2002

Comment author: administrator

From: filliatr@lri.fr

dans ocamldebug, si on fait load_printer "b.cmo" et que le module B dépend
d'un a.cmi sans .cmo associé (un module A n'introduisant que des types) alors
ocamldebug échoue dans le chargement de "b.cmo", réclamant un "a.cmo"

C'est un probleme connu. On peut le resoudre facilement avec
% cp a.mli a.ml
% ocamlc -c a.ml

J'ignore si il y a un projet pour le resoudre de facon plus radicale.
Ca pourrait etre interessant, car le meme probleme se produit avec dynlink.

Jacques Garrigue

@vicuna
Copy link
Author

vicuna commented Jun 16, 2004

Comment author: administrator

this bug has disappeared at some point between 3.04 and 3.07+21 -- DD
2004-06-16

@vicuna vicuna closed this as completed Jun 16, 2004
@vicuna vicuna added the bug label Mar 19, 2019
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