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

Pb compilation d'un toplevel #3301

Closed
vicuna opened this issue Apr 16, 2002 · 2 comments
Closed

Pb compilation d'un toplevel #3301

vicuna opened this issue Apr 16, 2002 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Apr 16, 2002

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

Bug description

Full_Name: Laurent MAGDELAINE
Version: 3.04
OS: RedHat 6.2
Submission from: ca-ol-bordeaux-2-241.abo.wanadoo.fr (62.161.105.241)

Le probléme apparait lorsque je compile un nouveau toplevel,
vaec la commande "ocamlmktop", si je tente de lier un module dont
le nom est Misc (misc.ml).
Etrangement, le probléme disparait si le module en question porte un autre nom.

Lors de la commande suivante :

ocamlc -a -o mylib.cma -linkall misc.cmo others.cmo
ocamlmktop -custom -o mytop -linkall bigarray.cma mylib.cma

Le message d'erreur est le sivant :

Files /usr/local/lib/ocaml/topmain.cmo and graal.cma(Misc)
make inconsistent assumptions over interface Misc

Est-ce normal ?

Merci par avance pour votre reponse, et bravo a toute l'equipe.
Vive O'Caml !

@vicuna
Copy link
Author

vicuna commented Apr 17, 2002

Comment author: administrator

Full_Name: Laurent MAGDELAINE
Version: 3.04
OS: RedHat 6.2
Submission from: ca-ol-bordeaux-2-241.abo.wanadoo.fr (62.161.105.241)

Le probléme apparait lorsque je compile un nouveau toplevel,
vaec la commande "ocamlmktop", si je tente de lier un module dont
le nom est Misc (misc.ml).
Etrangement, le probléme disparait si le module en question porte un autre nom.

Lors de la commande suivante :

ocamlc -a -o mylib.cma -linkall misc.cmo others.cmo
ocamlmktop -custom -o mytop -linkall bigarray.cma mylib.cma

Le message d'erreur est le sivant :

Files /usr/local/lib/ocaml/topmain.cmo and graal.cma(Misc)
make inconsistent assumptions over interface Misc

Est-ce normal ?

Oui, c'est normal.
ocamlmktop est une abbreviation pour la commande suivante:
ocamlc -linkall toplevellib.cma -o mytop bigarray.cma mylib.cma topmain.cmo

Ca signifie que tous les noms de modules utilises par topmain.cmo sont
"intouchables".
La liste exhaustive est:
Arg, Clflags, Config, Errors, Filename, Format, List, Misc,
Printexc, Sys, Topdirs, Toploop, Warnings

Certains de ces noms ne semblent demander qu'a` etre reutilises...
L'utilisation de packages devrait regler le probleme dans le futur.

Jacques

@vicuna
Copy link
Author

vicuna commented Apr 24, 2002

Comment author: administrator

Fixed 2002-04-23 by XL as follows: topmain is now part of toplevellib.cma,
and the last module linked is topstart, which only references topmain.

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