Poudriere: ARMのものを構築するためのjailを作成しようとしたときに、qemu-user-staticがインストールされていることを検出できません。

作成日 2020年12月18日  ·  3コメント  ·  ソース: freebsd/poudriere

前提条件

  • [X]問題を説明する既存の問題を確認しましたか?
  • [X]最新バージョンを実行していますか?
  • [X]あなたのportsツリーは最近ですか?
  • [X] FreeBSDホストはサポートされて

バグを説明する

ARMのものを構築するためのjailを作成しようとしたときに、qemu-user-staticがインストールされていることを検出できません。

再現する方法

[root@nibbles1]130|/src/FreeBSD/base/stable/12/sys/arm64/conf>poudriere jail -c -j 12stableAARCH64 -m src=/src/FreeBSD/base/stable/12 -a aarch64     
[00:00:00] Cross-building ports for aarch64 on amd64 requires QEMU
[00:00:00] Error: You need to install the qemu-user-static package or setup an emulator with binmiscctl(8) for aarch64
[root@nibbles1]0|/src/FreeBSD/base/stable/12/sys/arm64/conf>poudriere jail -c -j 12stableAARCH64 -m src=/src/FreeBSD/base/stable/12 -a arm.aarch64 
[00:00:00] Cross-building ports for arm.aarch64 on amd64 requires QEMU
[00:00:00] Error: You need to install the qemu-user-static package or setup an emulator with binmiscctl(8) for aarch64
[root@nibbles1]1|/src/FreeBSD/base/stable/12/sys/arm64/conf>pkg info qemu-user-static
qemu-user-static-3.1.0_8
Name           : qemu-user-static
Version        : 3.1.0_8
Installed on   : Fri Dec 18 10:27:38 2020 CST
Origin         : emulators/qemu-user-static
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : emulators
Licenses       : GPLv2
Maintainer     : [email protected]
WWW            : http://wiki.qemu.org/Main_Page
Comment        : QEMU CPU Emulator (github bsd-user branch)
Annotations    :
        FreeBSD_version: 1202502
        repo_type      : binary
        repository     : n1
Flat size      : 71.2MiB
Description    :
QEMU is a FAST! processor emulator using dynamic translation to achieve
good emulation speed.
QEMU has two operating modes:

    * Full system emulation. In this mode, QEMU emulates a full system
(for example a PC), including a processor and various peripherials.
It can be used to launch different Operating Systems without rebooting
the PC or to debug system code.
    * User mode emulation (Linux host only). In this mode, QEMU can launch
Linux processes compiled for one CPU on another CPU. It can be used to
launch the Wine Windows API emulator or to ease cross-compilation and
cross-debugging.

As QEMU requires no host kernel patches to run, it is very safe and easy to use.

This port builds static bsd-user targets named like qemu-mips-static. While
still being experimental, people have already built many armv6/mips/mips64 ports
using these and, e.g., poudriere.  Some notes are also here:

        http://wiki.freebsd.org/QemuUserModeHowTo

WWW: http://wiki.qemu.org/Main_Page

予想される行動

スクリーンショット

環境

  • ホストOS [例:12.2 amd64]:FreeBSD nibbles1.vvelox.net 12.1-STABLE FreeBSD 12.1-STABLE r364334 vixen42 amd64
  • Jail OS [例:12.0 powerpc]:
  • ブラウザ:[例:chrome、safari]:
  • Poudriereバージョン[例:3.3.1またはgitハッシュまたはポートバージョン]:3.3.6
  • ポートのブランチとリビジョン[例:2020Q3 r550754]:r558303

追加のコンテキスト

Blocker Easy bug

最も参考になるコメント

エラーメッセージは不完全だと思います。 qemu-user-staticインストールするだけでは不十分です。 service qemu-user-static onestartを実行する必要があります。

全てのコメント3件

わかった。 悪いエラーメッセージ。

そのため、binmiscctlは構成されておらず、エラーメッセージにエラーが表示されたため、元々はそれを想定していなかったため、qemuをインストールする代わりの方法のように見えました。

エラー:qemu-user-staticパッケージをインストールするか、aarch64用にbinmiscctl(8)を使用してエミュレーターをセットアップする必要があります

これは本当に理解するのが難しいです

私にとっては、qemuが自動構成されていることを意味します。正直に言うと、おそらく次のようになります。

エラーメッセージは不完全だと思います。 qemu-user-staticインストールするだけでは不十分です。 service qemu-user-static onestartを実行する必要があります。

このページは役に立ちましたか?
0 / 5 - 0 評価