You are here

解決 Ocaml 3.10.0 編譯錯誤的問題

...(以上省略)
make[1]: Entering directory `/nethdd/compile/ocaml-3.10.0/tools'
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver depend.mli
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver depend.ml
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver ocamldep.ml
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver -o ocamldep misc.cmo config.cmo clflags.cmo terminfo.cmo linenum.cmo warnings.cmo location.cmo longident.cmo syntaxerr.cmo parser.cmo lexer.cmo parse.cmo depend.cmo ocamldep.cmo
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver ocamlprof.ml
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver profiling.mli
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver profiling.ml
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver -o ocamlprof misc.cmo config.cmo clflags.cmo terminfo.cmo linenum.cmo warnings.cmo location.cmo longident.cmo syntaxerr.cmo parser.cmo lexer.cmo parse.cmo ocamlprof.cmo
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver ocamlcp.ml
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver -o ocamlcp main_args.cmo ocamlcp.cmo
sed -e 's|%%BINDIR%%|/usr/local/bin|' ocamlmktop.tpl > ocamlmktop
chmod +x ocamlmktop
../build/mkmyocamlbuild_config.sh
cp ../myocamlbuild_config.ml .
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -warn-error A -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver myocamlbuild_config.ml
File "myocamlbuild_config.ml", line 52, characters 11-13:
Syntax error
make[1]: *** [myocamlbuild_config.cmo] Fehler 2
make[1]: Leaving directory `/nethdd/compile/ocaml-3.10.0/tools'
make: *** [ocamltools] Fehler 2

當發現在編譯Ocaml 3.10.0 出現 File "myocamlbuild_config.ml", line 52, characters 11-13: 時, 請將源碼目錄下的config/Makefile內的

ASPP=$(AS)

改成

ASPP=as

然再再 make world 重新編譯

Tags: