Ich habe durch die LLVM Kaleidoscope Tutorial für OCaml gearbeitet. Auf den third part of the tutorial, ich habe mit dem Beispielcode in dem OrdnerLLVM tutorial OCaml Compilation Assembler Fehler
OCaml-Kaleidoscope\Chapter3
navigiert mir ein Problem ist begegnet, wenn sie mit
ocamlbuild toy.byte
auf Cygwin kompilieren. Dies ist der Code, der im Tutorial zum Kompilieren angegeben wird.
Der Fehler Ich erhalte ist
mkdir 'C:\Users\setup\Compiler\llvm\examples\OCaml-Kaleidoscope\Chapter3\_build'
''ocamlopt.opt unix.cmxa -I 'C:\OCaml\lib\ocamlbuild' 'C:\OCaml\lib\ocamlbuild/ocamlbuildlib.cmxa' myocamlbuild.ml 'C:\OCaml\lib\ocamlbuild/ocamlbuild.cmx' -o myocamlbuild.exe
'x86_64-w64-mingw32-as' is not recognized as an internal or external command,
operable program or batch file.
File "myocamlbuild.ml", line 1:
Error: Assembler error, input left in file C:\cygwin64\tmp\camlasmc2c035.s
Exit code 2 while executing this command:
''ocamlopt.opt unix.cmxa -I 'C:\OCaml\lib\ocamlbuild' 'C:\OCaml\lib\ocamlbuild/ocamlbuildlib.cmxa' myocamlbuild.ml 'C:\OCaml\lib\ocamlbuild/ocamlbuild.cmx' -o myocamlbuild.exe
I Version bin mit 3.8.0 von llvm und Version 4.02.3 von OCaml von this link.
Was muss ich tun, um das Problem zu beheben?
Sie schreiben "diesen Link", aber es gibt keinen Link. Welchen OCaml Installer hast du benutzt? – gasche
Ich habe den Link repariert. – CuriousStudent