Poudriere: 尝试创建用于构建 ARM 内容的监狱时,无法检测到 qemu-user-static 已安装。

创建于 2020-12-18  ·  3评论  ·  资料来源: freebsd/poudriere

先决条件

  • [X] 您是否检查过描述您的问题的现有问题?
  • [X] 你运行的是最新版本吗?
  • [X] 你的端口树是最近的吗?
  • [X] 您的 FreeBSD 主机是否在受支持的版本上

描述错误

尝试创建用于构建 ARM 内容的监狱时,无法检测到 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

预期行为

截图

环境

  • 主机操作系统 [例如 12.2 amd64]:FreeBSD nibbles1.vvelox.net 12.1-STABLE FreeBSD 12.1-STABLE r364334 vixen42 amd64
  • 监狱操作系统 [例如 12.0 powerpc]:
  • 浏览器:[例如 chrome、safari]:
  • Poudriere 版本 [例如 3.3.1 或 git hash 或端口版本]: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 等级