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

Problèmes d'installation de ocamlopt sous windows. #2472

Closed
vicuna opened this issue Jun 6, 2000 · 1 comment
Closed

Problèmes d'installation de ocamlopt sous windows. #2472

vicuna opened this issue Jun 6, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 6, 2000

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

Bug description

J'ai récemment installé le système Caml sur mon pc ( à partir du cd
joint avec le livre
"Developpement d'applications avec Objective Caml" chez O'Reilly). Le
compilateur bytecode
ocamlc fonctionne très bien, mais par contre le compilateur natif
ocamlopt plante
systématiquement avec un message d'erreur qui semble concerner un module
assembleur. J'ai
pourtant bien installé l'éxécutable Masm 6.11 que j'ai été rechercher
chez Microsoft comme
indiqué dans le fichier Readme.gen de l'installation.
J'ai aussi bien ajouté le chemein d'accès à Masm 6.11 dans le path.
L'éxécutable Masm 6.11 étant obtenu de manière indirecte après
"dézipage" deux fichiers et
execution d'un "auto-install", je n'ai gardé que l'éxécutable généré
correspondant à Masm 6.11
(qui ne porte pas ce nom d'ailleurs), et j'ai vérifié que l'éxécutable
fonctionnait correctement (en
tout cas son lancement). Ai-je oublié quelque chose?

Pour permettre un diagnostique plus précis, je vous donne ci-dessous la
configuration complète
du PC, les variables d'environnement ainsi que le message d'erreur
envoyé par ocmalopt.

Merci par avance de votre aide.


Configuration:

PC

Windows NT 4.0

Objective Caml 2.04.

VC 6.0

Masm 6.11

Environnement:

CAMLLIB = D:\Yann\Applications\OCaml\lib
LIB = ...;D:\Applications\Microsoft Visual Studio\VC98\Lib
PATH = ...;D:\Yann\Applications\OCaml\bin;D:\Applications\Microsoft
Visual
Studio\Vc98\bin;D:\Yann\Applications\OCaml\Masm\bin

// Appel de ocamlopt sans argument : OK
D:\Yann\Applications\OCaml\Dev>ocamlopt

// Appel de ocamlopt avec l'option -o sans argument : OK
D:\Yann\Applications\OCaml\Dev>ocamlopt -o
D:\Yann\Applications\OCaml\bin\ocamlopt.exe: option `-o' needs an
argument.

// Appel de ocamlopt avec l'option -o et un argument : NOK

Programme "essai.ml":

let f x = x + 1;;
print_int(f 18);;
print_newline();;

Résultat:

D:\Yann\Applications\OCaml\Dev>ocamlopt -o temp2.exe essai.ml
Le nom spécifié n'est pas reconnu comme étant une commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Assembler error, input left in file C:\TEMP\camlasm5.asm

@vicuna
Copy link
Author

vicuna commented Jun 8, 2000

Comment author: administrator

See response under #2477

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