[llvm-bugs] [Bug 44551] New: Impossible to build Go and OCaml bindings on Windows using MSYS2
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 14 19:08:02 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44551
Bug ID: 44551
Summary: Impossible to build Go and OCaml bindings on Windows
using MSYS2
Product: libraries
Version: trunk
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: stephen.gutekanst at gmail.com
CC: llvm-bugs at lists.llvm.org
It is currently impossible to build the Go and OCaml bindings on Windows
natively under e.g. MSYS2 due to two issues in the build configuration/scripts:
1.
[`build.sh`](https://github.com/llvm/llvm-project/blob/master/llvm/bindings/go/build.sh#L11)
cannot handle quoted arguments, which prevents passing `-G "MSYS Makefiles"` to
the script -- making it impossible to generate MSYS-compatible Makefiles.
2. In
[`config-ix.cmake`](https://github.com/llvm/llvm-project/blob/master/llvm/cmake/config-ix.cmake#L546-L547)
WIN32 (i.e. non-Cygwin environments like MSYS or native Windows) explicitly
disables building the Go bindings without any way to attempt building them.
I have a simple patch here which resolves the issue for Go (but I haven't
tested OCaml, there could be other issues there). I have not yet had a chance
to submit this via LLVM's patch submission process, but hope to do so soon:
https://github.com/hexops/llvm-project/commit/3dd7f1a23d70c9e809fdda5b1d0f15175d6bfe8a?w=1
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200115/4276aac4/attachment.html>
More information about the llvm-bugs
mailing list