OCaml Forge

Detail: [#1722] Compilation broken on Windows

Bugs: Browse | Download .csv | Monitor

[#1722] Compilation broken on Windows

Date:
2016-12-22 18:11
Priority:
3
State:
Open
Submitted by:
Max Mouratov (mmouratov)
Assigned to:
Nobody (None)
Hardware:
PC
Resolution:
None
Severity:
blocker
Version:
None
Component:
None
Operating System:
Windows NT
Product:
None
 
URL:
Summary:
Compilation broken on Windows

Detailed description
This is what I get when doing "opam install ocamlmod" with the official Windows installer:

#=== ERROR while installing ocamlify.0.0.1 ====================================#
# opam-version 1.2.2
# os cygwin
# command ocaml setup.ml -install
# path /home/mrm/.opam/system/build/ocamlify.0.0.1
# compiler system (4.02.3)
# exit-code 1
# env-file /home/mrm/.opam/system/build/ocamlify.0.0.1/ocamlify-3844-865888.env
# stdout-file /home/mrm/.opam/system/build/ocamlify.0.0.1/ocamlify-3844-865888.out
# stderr-file /home/mrm/.opam/system/build/ocamlify.0.0.1/ocamlify-3844-865888.err
### stderr ###
# I: Creating directory '/home/mrm/.opam/system\bin'
# I: Running command 'md "/home/mrm/.opam/system\bin"'
# ▒訡▒▒ ▒ ᨭ⠪▒▒ ▒▒▒▒▒▒▒.
# E: Command 'md "/home/mrm/.opam/system\bin"' terminated with error code 1

Apparently, the problem is that the build system attempts to call "md", which is not an executable, but rather a command built into cmd.exe.

How about using "mkdir" instead? It's a part of both Cygwin and MSYS.

By the way, this bug blocks building OASIS on Windows.

Followup

Message
Date: 2016-12-22 18:13
Sender: Max Mouratov

On second thought: why does it try to create /home/mrm/.opam/system/bin? The folder already exists.

Attached Files:

Changes:

No Changes Have Been Made to This Item