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

Probleme avec ocamlopt #3404

Closed
vicuna opened this issue Dec 28, 2004 · 2 comments
Closed

Probleme avec ocamlopt #3404

vicuna opened this issue Dec 28, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 28, 2004

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

Bug description

Bonjour,

Nous utilisons ocaml pour compiler un executable nommé modelicac utilisé
par scicos (scicos implicit).

Je rencontre un probleme lors de la compilation du makefile ci-joint.
Sous Windows XP cela fonctionne (l'executable modelicac.exe est créé et
fonctionne), mais pas sous Windows 2000 ...

J'ai isolé la ligne qui semble poser probleme :
sous XP il n'y a aucun message d'erreurs
ocamlopt -c parseTree.ml

     sous Windows 2000 :

ocamlopt.exe -c parseTree.ml
'ml' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Assembler error, input left in file
C:\DOCUME1\scilab\LOCALS1\Temp\camlasmcb7ddb.asm

Pourriez-vous nous aider ?

Cordialement

Allan CORNET

==============================================
Allan CORNET
INRIA - Unité de Recherche de Rocquencourt
Domaine de Voluceau - B.P. 105
78153 Le Chesnay Cedex

==============================================
Projet Scilab
Bâtiment 23 - Bureau 34
Email : allan.cornet@inria.fr




Bonjour,

Nous utilisons ocaml pour compiler un executable nommé modelicac utilisé par scicos (scicos implicit).

Je rencontre un probleme lors de la compilation du makefile ci-joint.
Sous Windows XP cela fonctionne (l'executable modelicac.exe est créé et fonctionne), mais pas sous Windows 2000 ...

J'ai isolé la ligne qui semble poser probleme :
        sous XP il n'y a aucun message d'erreurs
 ocamlopt -c parseTree.ml

        sous Windows 2000 :
ocamlopt.exe -c parseTree.ml
'ml' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Assembler error, input left in file C:\DOCUME~1\scilab\LOCALS~1\Temp\camlasmcb7ddb.asm

Pourriez-vous nous aider ?

Cordialement

Allan CORNET







==============================================
Allan CORNET
INRIA - Unité de Recherche de Rocquencourt
Domaine de Voluceau - B.P. 105
78153 Le Chesnay Cedex

==============================================
Projet Scilab
Bâtiment 23 - Bureau 34
Email : allan.cornet@inria.fr




OCAMLPATH=C:\Progra1\Object1
OCAMLPATHBIN=$(OCAMLPATH)\bin
OCAMLPATHLIB=$(OCAMLPATH)\lib
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
CAMLP4=camlp4
OCAMLYACC=ocamlyacc
OCAMLLEX=ocamllex
RM=del
EXEC=modelicac.exe

MLS=parseTree.ml parser.ml lexer.ml
precompilation.ml compilation.ml instantiation.ml
graphNodeSet.ml symbolicExpression.ml
squareSparseMatrix.ml bipartiteGraph.ml hungarianMethod.ml
causalityGraph.ml
optimization.ml optimizingCompiler.ml
scicosCodeGeneration.ml scicosOptimizingCompiler.ml

CMACMO=nums.cma parseTree.cmo parser.cmo
lexer.cmo precompilation.cmo compilation.cmo
instantiation.cmo graphNodeSet.cmo symbolicExpression.cmo
squareSparseMatrix.cmo bipartiteGraph.cmo hungarianMethod.cmo
causalityGraph.cmo optimization.cmo scicosCodeGeneration.cmo
optimizingCompiler.cmo

CMXACMX=nums.cmxa parseTree.cmx parser.cmx
lexer.cmx precompilation.cmx compilation.cmx
instantiation.cmx graphNodeSet.cmx symbolicExpression.cmx
squareSparseMatrix.cmx bipartiteGraph.cmx hungarianMethod.cmx
causalityGraph.cmx optimization.cmx scicosCodeGeneration.cmx
optimizingCompiler.cmx

all:: step1 step2 step3 step4 step5 step6

step1:
@"$(OCAMLPATHBIN)$(OCAMLYACC)" parser.mly
@$(RM) parser.mli
@"$(OCAMLPATHBIN)$(OCAMLLEX)" lexer.mll

step2:
@"$(OCAMLPATHBIN)$(OCAMLDEP)" $(MLS)

step3:
@"$(OCAMLPATHBIN)$(OCAMLC)" -c parseTree.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c parseTree.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c parser.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c lexer.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c precompilation.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c precompilation.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c compilation.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c compilation.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c instantiation.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c instantiation.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c graphNodeSet.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c graphNodeSet.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c symbolicExpression.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c symbolicExpression.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c squareSparseMatrix.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c squareSparseMatrix.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c bipartiteGraph.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c bipartiteGraph.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c hungarianMethod.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c hungarianMethod.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c causalityGraph.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c causalityGraph.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c optimization.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c optimization.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c optimizingCompiler.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c optimizingCompiler.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c scicosCodeGeneration.mli
@"$(OCAMLPATHBIN)$(OCAMLC)" -c scicosCodeGeneration.ml
@"$(OCAMLPATHBIN)$(OCAMLC)" -c scicosOptimizingCompiler.ml

step4:
@"$(OCAMLPATHBIN)$(OCAMLC)" -o $(EXEC) $(CMACMO)

step5:
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c parseTree.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c parser.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c lexer.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c precompilation.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c compilation.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c instantiation.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c graphNodeSet.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c symbolicExpression.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c squareSparseMatrix.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c bipartiteGraph.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c hungarianMethod.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c causalityGraph.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c optimization.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c scicosCodeGeneration.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c optimizingCompiler.ml
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -c scicosOptimizingCompiler.ml

step6:
@"$(OCAMLPATHBIN)$(OCAMLOPT)" -o $(EXEC) $(CMXACMX)
@copy $(EXEC) ..\bin$(EXEC)

clean::
-$(RM) *.cmi
-$(RM) *.cmo
-$(RM) *.cmx
-$(RM) *.obj
-$(RM) parser.ml
-$(RM) lexer.ml
-$(RM) *.exe
-$(RM) ..\bin$(EXEC)

distclean::
-$(RM) *.cmi
-$(RM) *.cmo
-$(RM) *.cmx
-$(RM) *.obj
-$(RM) parser.ml
-$(RM) lexer.ml
-$(RM) *.exe


@vicuna
Copy link
Author

vicuna commented Jan 18, 2005

Comment author: administrator

Bonjour,

J'ai isol=E9 la ligne qui semble poser probleme :
sous XP il n'y a aucun message d'erreurs
ocamlopt -c parseTree.ml

     sous Windows 2000 :

ocamlopt.exe -c parseTree.ml
'ml' n'est pas reconnu en tant que commande interne
ou externe, un programme ex=E9cutable ou un fichier de commandes.
Assembler error, input left in file=20
C:\DOCUME1\scilab\LOCALS1\Temp\camlasmcb7ddb.asm

"ml" est le nom du macro-assembleur Microsoft, qui est nécessaire pour
utiliser ocamlopt dans le portage "MSVC" d'OCaml. Vous pouvez ou bien
récupérer et installer ce programme comme suggéré dans le fichier
README.win32 de la distribution (ce programme est gratuit mais
difficile à trouver), ou bien installer le portage "MinGW" d'OCaml,
qui n'a pas besoin de l'assembleur Microsoft.

Cordialement,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jan 20, 2005

Comment author: administrator

User had to install MASM

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