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

Erreur de compilation sous Ocaml 3.07 #8482

Closed
vicuna opened this issue Feb 10, 2004 · 2 comments
Closed

Erreur de compilation sous Ocaml 3.07 #8482

vicuna opened this issue Feb 10, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 10, 2004

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

Bug description

Full_Name: Philippe Veber
Version: 3.07
OS: Linux
Submission from: cache.jouy.inra.fr (138.102.1.123)

Source qui pose problème :

oops.ml:

ignore (Thread.create ignore ());;

Commandes pour compiler :

ocamlc -thread -c oops.ml
ocamlc -thread -o oops threads.cma -cclib -lthreads oops.cmo
Error while linking /home/mig/pveber//lib/ocaml/threads/threads.cma(Thread):
Reference to undefined global `Unix'

Tentative de correction

ocamlc -thread -c oops.ml
ocamlc -thread -o oops unix.cma -cclib -lunix threads.cma -cclib -lthreads
oops.cmo
Files /home/mig/pveber//lib/ocaml/threads/unix.cma(Unix)
and /home/mig/pveber//lib/ocaml/stdlib.cma(List)
make inconsistent assumptions over interface List

Ces résultats sont obtenus avec Ocaml 3.07

Avec Ocaml 3.06:

ocamlc -thread -c mlmake.ml
ocamlc -thread -o mlmake threads.cma -cclib -lthreads mlmake.cmo

passe très bien (sur 3.04 aussi).

Vraiment désolé s'il ne s'agit que d'une erreur de ma part, mais ça me donne
l'occasion de féliciter l'équipe pour le travail qu'elle réalise.

Cordialement,
Philippe Veber.

@vicuna
Copy link
Author

vicuna commented Feb 10, 2004

Comment author: administrator

Full_Name: Philippe Veber
Version: 3.07
OS: Linux
Submission from: cache.jouy.inra.fr (138.102.1.123)

Source qui pose problème :

oops.ml:

ignore (Thread.create ignore ());;

Commandes pour compiler :

ocamlc -thread -c oops.ml
ocamlc -thread -o oops threads.cma -cclib -lthreads oops.cmo
Error while linking /home/mig/pveber//lib/ocaml/threads/threads.cma(Thread):
Reference to undefined global `Unix'

Tentative de correction

ocamlc -thread -c oops.ml
ocamlc -thread -o oops unix.cma -cclib -lunix threads.cma -cclib -lthreads
oops.cmo
Files /home/mig/pveber//lib/ocaml/threads/unix.cma(Unix)
and /home/mig/pveber//lib/ocaml/stdlib.cma(List)
make inconsistent assumptions over interface List

Ces résultats sont obtenus avec Ocaml 3.07

Avec Ocaml 3.06:

ocamlc -thread -c mlmake.ml
ocamlc -thread -o mlmake threads.cma -cclib -lthreads mlmake.cmo

passe très bien (sur 3.04 aussi).

Vraiment désolé s'il ne s'agit que d'une erreur de ma part, mais ça me donne
l'occasion de féliciter l'équipe pour le travail qu'elle réalise.

Cordialement,
Philippe Veber.

Merci de votre intérêt pour Caml et de vos félicitations :)

Le symptôme que vous observez est typique d'une installation
partielle: le compilateur n'est pas en phase avec les bibliothèques
déjà installées par ailleurs.

Pourriez-vous réinstaller le compilateur après avoir supprimé
/home/mig/pveber/lib/ocaml/ ?

Si tout ne rentre pas dans l'ordre, faites-nous le savoir ...

Cordialement,

Pierre Weis

INRIA, Projet Cristal, http://pauillac.inria.fr/~weis

@vicuna
Copy link
Author

vicuna commented Apr 1, 2004

Comment author: administrator

Couldn't reproduce.

@vicuna vicuna closed this as completed Apr 1, 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