Error: hyperkit: no bottle available!

オープン
#330 コメント 3 件 リアクション 6 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, macos

調査の方向性

まず Homebrew のソースビルドを再現し、src/lib/vmm/intel/vmx_msr.c と、hv_vcpuid_t エラー周辺の関連する src/lib/vmm/intel/vmx ソースを調査します。失敗するビルドのコンテキストを HyperKit のソースおよび macOS 環境と比較します。完了条件は、報告されているソースからのインストールがこれらのコンパイラーエラーなしで正常にビルドされることです。

索引モデルが issue の本文から書いたものです。

説明

While installing hyperkit on mac using brew I am getting this error.

Error: hyperkit: no bottle available!
You can try to install from source with:
  brew install --build-from-source hyperkit
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels

So I ran brew install --build-from-source hyperkit and got this error,

==> Downloading https://github.com/Homebrew/homebrew-core/files/6405545/tinycorelinux_8.x.tar.gz
Already downloaded: /Users/satyaki.das/Library/Caches/Homebrew/downloads/840a6f58d851f8ac4dbfee434980e81b172cdb88593b1f5bfacf1fb074f981c5--tinycorelinux_8.x.tar.gz
==> Downloading https://github.com/moby/hyperkit/archive/v0.20200908.tar.gz
Already downloaded: /Users/satyaki.das/Library/Caches/Homebrew/downloads/c64ec9afae5c38df6a44b8ebcc74aeb71804de95b750c81c5c8a4124b4861857--hyperkit-0.20200908.tar.gz
==> opam init --disable-sandboxing --no-setup
==> opam config exec -- opam install -y uri.3.1.0 qcow.0.11.0 conduit.2.1.0 lwt.5.3.0 qcow-tool.0.11.0 mirage
==> opam config exec -- make GIT_VERSION=0.20200908
Last 15 lines from /Users/satyaki.das/Library/Logs/Homebrew/hyperkit/03.opam:
        hv_vcpu_enable_native_msr(((hv_vcpuid_t) vcpuid), MSR_CSTAR, 1);
                                    ^
src/lib/vmm/intel/vmx_msr.c:215:30: error: use of undeclared identifier 'hv_vcpuid_t'
        hv_vcpu_enable_native_msr(((hv_vcpuid_t) vcpuid), MSR_STAR, 1);
                                    ^
src/lib/vmm/intel/vmx_msr.c:216:30: error: use of undeclared identifier 'hv_vcpuid_t'
        hv_vcpu_enable_native_msr(((hv_vcpuid_t) vcpuid), MSR_SF_MASK, 1);
                                    ^
src/lib/vmm/intel/vmx_msr.c:217:30: error: use of undeclared identifier 'hv_vcpuid_t'
        hv_vcpu_enable_native_msr(((hv_vcpuid_t) vcpuid), MSR_KGSBASE, 1);
                                    ^
20 errors generated.
11 errors generated.
make: *** [build/lib/vmm/intel/vmx.o] Error 1
make: *** [build/lib/vmm/intel/vmx_msr.o] Error 1

READ THIS: https://docs.brew.sh/Troubleshooting

Any idea on why this is happening and how to solve this?

主要言語
C
スター
3.7k
フォーク
336
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moby/hyperkit のほかの issue

moby/hyperkit の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。