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

Correction bug fait planter compil #2974

Closed
vicuna opened this issue Sep 28, 2001 · 4 comments
Closed

Correction bug fait planter compil #2974

vicuna opened this issue Sep 28, 2001 · 4 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 28, 2001

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

Bug description

Salut,

La correction du bug #2925 fait planter le "make opt.opt" dans Camlp4:

make[2]: Entering directory `/home/verdot/ddr/work/ocaml/camlp4/meta'
../../boot/ocamlrun ../boot/camlp4r -nolib -I ../boot -o pr_dump.ppo -warn_seq -verbose pr_dump.ml
../../boot/ocamlrun ../../ocamlopt -I ../../stdlib -I ../camlp4 -I ../boot -I ../../utils -c -impl pr_dump.ppo
parsetree.cmi was not found in compiler's load path

C'est pour quoi, ce message? Ça me le faisait pas, avant. Il n'y a pas
d'accès (direct) au module Parsetree dans pr_dump.ml. Faut-il que
j'ajoute quand même l'accès au répertoire ../../parsing (où se trouve
parsetree.cmi) dans mon Makefile? Et pourquoi devrais-je faire ça si
je ne l'utilise pas directement?

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Sep 28, 2001

Comment author: administrator

daniel.de_rauglaudre@inria.fr wrote:

Salut,

La correction du bug #2925 fait planter le "make opt.opt" dans Camlp4:

Ca le fait aussi quand on fait 'make bootstrap' dans la version cvs de
la distrib ...

@vicuna
Copy link
Author

vicuna commented Sep 28, 2001

Comment author: administrator

Fixed 2001-09-29 by JG. Se mefier de Env.find_type.

@vicuna vicuna closed this as completed Sep 28, 2001
@vicuna
Copy link
Author

vicuna commented Sep 29, 2001

Comment author: administrator

La correction du bug #2925 fait planter le "make opt.opt" dans Camlp4:
parsetree.cmi was not found in compiler's load path

C'est pour quoi, ce message? Ça me le faisait pas, avant. Il n'y a pas
d'accès (direct) au module Parsetree dans pr_dump.ml. Faut-il que
j'ajoute quand même l'accès au répertoire ../../parsing (où se trouve
parsetree.cmi) dans mon Makefile? Et pourquoi devrais-je faire ça si
je ne l'utilise pas directement?

Aargh, mea culpa, mea maxima culpa.
Petite erreur de semantique.
C'est maintenant corrige' plus directement.
Remarque que le resultat de cette semantique est un message d'erreur
bizarre pour l' exemple du PR:

File "t.ml", line 27, characters 28-29:
This expression has type
behav = < elements : string -> Lib.LibT3.cvs_info list; foo : string >
but is here used with type 'a T2.behav

Quand on n'a pas acces au module d'origine, le sous-typage change de
semantique...

    Jacques

@vicuna
Copy link
Author

vicuna commented Oct 1, 2001

Comment author: administrator

Aargh, mea culpa, mea maxima culpa.
Petite erreur de semantique.
C'est maintenant corrige' plus directement.
Remarque que le resultat de cette semantique est un message d'erreur
bizarre pour l' exemple du PR:

File "t.ml", line 27, characters 28-29:
This expression has type
behav = < elements : string -> Lib.LibT3.cvs_info list; foo : string >
but is here used with type 'a T2.behav

Quand on n'a pas acces au module d'origine, le sous-typage change de
semantique...

C'est vrai aussi pour l'équivalence entre types: si A.t est une
abréviation mais qu'on ne trouve pas A.cmi, on traite A.t comme
abstrait. Je sais que c'est un peu bizarre, mais sinon on peut être
obligé de mettre plein de -I pour que le compilo arrive à "dérouler"
de longues dépendances de types. Donc, laissons comme cela pour le
moment.

  • Xavier

@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