OCaml用のLLVM万華鏡チュートリアルで作業しています。 third part of the tutorialで、私はcygwinの上LLVMチュートリアルOCamlコンパイルアセンブラエラー
ocamlbuild toy.byte
でコンパイルするとき、私は問題が発生していたフォルダ
OCaml-Kaleidoscope\Chapter3
のコード例にナビゲートしています。これはチュートリアルでコンパイルするコードです。私はthis linkからLLVMとのOCamlのバージョン4.02.3のバージョン3.8.0を使用しています
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
私は取得していますエラーです。
これを修正するには何が必要ですか?
「このリンク」は書いてありますが、リンクはありません。どのOCamlインストーラを使いましたか? – gasche
私はリンクを修正しました。 – CuriousStudent