Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm 7.0 bindings fail to install on windows under cygwin #14082

Closed
travisstaloch opened this issue May 4, 2019 · 2 comments
Closed

llvm 7.0 bindings fail to install on windows under cygwin #14082

travisstaloch opened this issue May 4, 2019 · 2 comments

Comments

@travisstaloch
Copy link
Contributor

travisstaloch commented May 4, 2019

I'm following along with https://llvm.org/docs/tutorial/OCamlLangImpl7.html and want to be able to

open Llvm
open Llvm_executionengine
open Llvm_target
open Llvm_scalar_opts

I have a working llvm 7 installation on the machine which is in my path and can be run from cygwin:

$ llvm-config.exe --version
7.0.0

Using opam, I was able to install the other dependencies for llvm including conf-cmake and conf-llvm along with one other i think.

Here is the output of opam install llvm

$ opam install llvm
The following actions will be performed:
  ∗ install llvm 7.0.0

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[llvm.7.0.0] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The installation of llvm failed at "bash -ex install.sh llvm-config
        F:/Users/Travis/AppData/Local/OCaml64/home/Travis/.opam/ocaml-variants.4.07.1+mingw64c/lib
        cmake make".

#=== ERROR while installing llvm.7.0.0 ========================================#
# context     2.0.3 | win32/x86_64 | ocaml-variants.4.07.1+mingw64c | git://github.com/fdopen/opam-repository-mingw.git#opam2
# path        ~/.opam/ocaml-variants.4.07.1+mingw64c/.opam-switch/build/llvm.7.0.0
# command     F:\Users\Travis\AppData\Local\OCaml64\bin\bash.exe -ex install.sh llvm-config F:/Users/Travis/AppData/Local/OCaml64/home/Travis/.opam/ocaml-variants.4.07.1+mingw64c/lib cmake make
# exit-code   2
# env-file    ~/.opam/log/llvm-1892-05296d.env
# output-file ~/.opam/log/llvm-1892-05296d.out
### output ###
# [...]
# -- Generating done
# CMake Warning:
#   Manually-specified variables were not used by the project:
#
#     LLVM_OCAML_EXTERNAL_LLVM_LIBDIR
#     LLVM_OCAML_INSTALL_PATH
#     LLVM_OCAML_OUT_OF_TREE
#
#
# -- Build files have been written to: F:/Users/Travis/AppData/Local/OCaml64/home/Travis/.opam/ocaml-variants.4.07.1+mingw64c/.opam-switch/build/llvm.7.0.0/build
# + make ocaml_all
# make: *** No rule to make target 'ocaml_all'.  Stop.

Not sure if its related, but when I run opam update, i'm getting this error:

$ opam update

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git://github.com/fdopen/opam-repository-mingw.git#opam2
[ERROR] Could not update repository "default":
        "F:\\Users\\Travis\\AppData\\Local\\OCaml64\\bin\\patch.exe -p1 -i
        /home/Travis/.opam/log/processed-patch-3444-42bb52" exited with code 2
$ opam config report
# opam config report
# opam-version      2.0.3
# self-upgrade      no
# system            arch=x86_64 os=win32 os-distribution=cygwinports os-version=10.0.17134
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              7
# repositories      1 (version-controlled)
# pinned            0
# current-switch    ocaml-variants.4.07.1+mingw64c

Does anyone understand whats going on here? Is this the correct place to post this issue? Any suggestions or advice are greatly appreciated.

@dra27
Copy link
Member

dra27 commented Jun 14, 2019

Does the error with opam update occur every single time you do an opam update - if so, please could you open an issue on https://github.com/ocaml/opam/issues and we'll go from there.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove the stale label, or comment, or this will be closed in 15 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants