Closed MisterDA closed 1 year ago
I still have this error on Cygwin+mingw64, and msys2+mingw64. I think that I’ve eliminated what I was doing wrong in my build script. I’m using OCaml 4.10 and Opam’s master.
I’m still having this error. The file cc64
is empty.
Command [2] exited with code 2:
$ (cd _build/default/src/stubs && C:\Users\User\Downloads\ocaml-platform-master\opam-def89fc4fc1af53bf1f8d420129abc398751
cd6c\bootstrap\ocaml\bin\ocaml.exe build-putenv.ml opam-putenv.exe opam-putenv.c cc64)
Exception: End_of_file.
Raised at file "stdlib.ml", line 441, characters 20-31
Called from file "stdlib.ml", line 456, characters 28-39
Called from file ".\build-putenv.ml", line 8, characters 14-26
Re-raised at file ".\build-putenv.ml", line 11, characters 49-50
Called from file "toplevel/toploop.ml", line 180, characters 17-56
Instructions to reproduce are here.
The problem is noted here:
configure: WARNING: Complementary C compiler not found - opam-putenv will not be built
the bug is that Dune is then trying to build opam-putenv!
(the workaround is to install mingw64-i686-gcc-core
)
Fixed by https://github.com/ocaml/opam/pull/5522. If you're still having the issue, please feel free to reopen.
Hi! I’m compiling OCaml 4.10 and Opam's master (8da623adb121a48c51c1ec1bf850fe3db8bafc68) on MSYS2 with MinGW. This is an excerpt of the script I’m using to compile:
Note the line
configure: WARNING: Complementary C compiler not found - opam-putenv will not be built
. This is the error:This may be related to
Originally posted by @dra27 in https://github.com/ocaml/opam/issues/3834#issuecomment-487379936
Any help would be greatly appreciated.