Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Compile issues trying to install dune, ocamlfind, etc

$
0
0

@ygutfreund wrote:

The compiler install and opam switch seemed to work fine, , but the opam install of dune, utop, etc. is having issues (see below)

$ opam switch create . ocaml-variants.4.09.0+msvc64c

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-variants.4.09.0+msvc64c] downloaded from https://dl.bintray.com/fdopen/prebuild-win32-ocaml-packages/4.09.0+msvc64c.tar.xz

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base]
∗ installed base-unix.basesed]
∗ installed ocaml-variants.4.09.0+msvc64cl.sh]
∗ installed ocaml-config.1
∗ installed ocaml.4.09.0.09.0]
Done.


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed seq.basemake all] [conf-m4: sh echo | m4] [dune: ocaml bootstrap.ml] [ocamlbuild: patch]
[ERROR] The compilation of dune failed at "D:\\crime\\dune\\_opam\\bin\\ocaml.exe bootstrap.ml -j 11". bootstrap.ml] [ocamlbuild: make configure.make]
∗ installed conf-m4.1
[ERROR] The compilation of cmdliner failed at "D:\\cygwin64\\bin\\make.exe all PREFIX=D:/crime/dune/_opam".h
[ERROR] The compilation of ocamlbuild failed at "D:\\cygwin64\\bin\\make.exe all".
[ERROR] The compilation of ocamlfind failed at "D:\\cygwin64\\bin\\make.exe opt".

#=== ERROR while compiling ocamlfind.1.8.1 ====================================#
# context     2.0.5 | win32/x86_64 | ocaml-variants.4.09.0+msvc64c | git+https://github.com/fdopen/opam-repository-mingw.git#opam2
# path        D:/crime/dune/_opam/.opam-switch/build/ocamlfind.1.8.1
# command     D:\cygwin64\bin\make.exe opt
# exit-code   2
# env-file    ~/.opam/log/ocamlfind-18980-eec089.env
# output-file ~/.opam/log/ocamlfind-18980-eec089.out
### output ###
# for p in findlib; do ( cd src/$p; /usr/bin/make opt ) || exit; done
# make[1]: Entering directory '/cygdrive/d/crime/dune/_opam/.opam-switch/build/ocamlfind.1.8.1/src/findlib'
# ocamlopt -I +compiler-libs -g -opaque -c findlib_config.ml
# 'ml64' is not recognized as an internal or external command,
# operable program or batch file.
# File "findlib_config.ml", line 1:
# Error: Assembler error, input left in file D:\cygwin64\tmp\camlasm20de40.asm
# make[1]: *** [Makefile:163: findlib_config.cmx] Error 2
# make[1]: Leaving directory '/cygdrive/d/crime/dune/_opam/.opam-switch/build/ocamlfind.1.8.1/src/findlib'
# make: *** [Makefile:17: opt] Error 2


#=== ERROR while compiling ocamlbuild.0.14.0 ==================================#
# context     2.0.5 | win32/x86_64 | ocaml-variants.4.09.0+msvc64c | git+https://github.com/fdopen/opam-repository-mingw.git#opam2
# path        D:/crime/dune/_opam/.opam-switch/build/ocamlbuild.0.14.0
# command     D:\cygwin64\bin\make.exe all
# exit-code   2
# env-file    ~/.opam/log/ocamlbuild-18980-8b47d2.env
# output-file ~/.opam/log/ocamlbuild-18980-8b47d2.out
### output ###
# [...]
# ocamlc.opt -w L -w R -w Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/ocamlbuild_unix_plugin.mli
# ocamlc.opt -w L -w R -w Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/ocamlbuild_unix_plugin.ml
# ocamlc.opt -w L -w R -w Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/ocamlbuild.mli
# ocamlc.opt -w L -w R -w Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/ocamlbuild.ml
# ocamlc.opt -I +unix -I src -o ocamlbuild.byte unix.cma src/ocamlbuild_pack.cmo src/ocamlbuild_plugin.cmo src/ocamlbuild_executor.cmo src/ocamlbuild_unix_plugin.cmo src/ocamlbuild.cmo
# ocamlc.opt -a -o src/ocamlbuildlib.cma src/ocamlbuild_pack.cmo src/ocamlbuild_plugin.cmo src/ocamlbuild_executor.cmo src/ocamlbuild_unix_plugin.cmo
# ocamlopt.opt -for-pack Ocamlbuild_pack -w L -w R -w Z -I src -I +unix -safe-string -bin-annot -strict-sequence -c src/const.ml
# 'ml64' is not recognized as an internal or external command,
# operable program or batch file.
# File "src/const.ml", line 1:
# Error: Assembler error, input left in file D:\cygwin64\tmp\camlasme26e2b.asm
# make: *** [Makefile:428: src/const.cmx] Error 2


#=== ERROR while compiling dune.2.1.2 =========================================#
# context     2.0.5 | win32/x86_64 | ocaml-variants.4.09.0+msvc64c | git+https://github.com/fdopen/opam-repository-mingw.git#opam2
# path        D:/crime/dune/_opam/.opam-switch/build/dune.2.1.2
# command     D:\crime\dune\_opam\bin\ocaml.exe bootstrap.ml -j 11
# exit-code   2
# env-file    ~/.opam/log/dune-18980-320155.env
# output-file ~/.opam/log/dune-18980-320155.out
### output ###
# ocamlc -custom -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.ml boot/duneboot.ml
# 'cl' is not recognized as an internal or external command,
# operable program or batch file.
# ** Fatal error: Error while compiling
# File "boot/duneboot.ml", line 1:
# Error: Error while building custom runtime system


#=== ERROR while compiling cmdliner.1.0.4 =====================================#
# context     2.0.5 | win32/x86_64 | ocaml-variants.4.09.0+msvc64c | git+https://github.com/fdopen/opam-repository-mingw.git#opam2
# path        D:/crime/dune/_opam/.opam-switch/build/cmdliner.1.0.4
# command     D:\cygwin64\bin\make.exe all PREFIX=D:/crime/dune/_opam
# exit-code   2
# env-file    ~/.opam/log/cmdliner-18980-09b4f7.env
# output-file ~/.opam/log/cmdliner-18980-09b4f7.out
### output ###
# ocaml build.ml cma
# ocaml build.ml cmxa
# 'ml64' is not recognized as an internal or external command,
# operable program or batch file.
# File "cmdliner_trie.ml", line 1:
# Error: Assembler error, input left in file D:\cygwin64\tmp\camlasm4a8971.asm
# exited with 2: "ocamlopt.opt" "-g" "-bin-annot" "-safe-string" "cmdliner.mli" "cmdliner_base.mli" "cmdliner_manpage.mli" "cmdliner_suggest.mli" "cmdliner_trie.mli" "cmdliner_trie.ml" "cmdliner_suggest.ml" "cmdliner_info.mli" "cmdliner_docgen.mli" "cmdliner_cli
ne.mli" "cmdliner_base.ml" "cmdliner_manpage.ml" "cmdliner_msg.mli" "cmdliner_term.mli" "cmdliner_info.ml" "cmdliner_docgen.ml" "cmdlin[...]
# make: *** [Makefile:53: build-native] Error 1



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build cmdliner   1.0.4
│ λ build dune       2.1.2
│ λ build ocamlbuild 0.14.0
│ λ build ocamlfind  1.8.1
└─
┌─ The following changes have been performed (the rest was aborted)
│ ∗ install conf-m4 1
│ ∗ install seq     base
└─

The former state can be restored with:
    D:\cygwin64\usr\local\bin\opam.exe switch import "D:/crime/dune/_opam/.opam-switch/backup/state-20200128155006.export"

Posts: 14

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles