build-platforms.rst 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .. _Supported-build-platforms:
  2. Supported build platforms
  3. =========================
  4. QEMU aims to support building and executing on multiple host OS
  5. platforms. This appendix outlines which platforms are the major build
  6. targets. These platforms are used as the basis for deciding upon the
  7. minimum required versions of 3rd party software QEMU depends on. The
  8. supported platforms are the targets for automated testing performed by
  9. the project when patches are submitted for review, and tested before and
  10. after merge.
  11. If a platform is not listed here, it does not imply that QEMU won't
  12. work. If an unlisted platform has comparable software versions to a
  13. listed platform, there is every expectation that it will work. Bug
  14. reports are welcome for problems encountered on unlisted platforms
  15. unless they are clearly older vintage than what is described here.
  16. Note that when considering software versions shipped in distros as
  17. support targets, QEMU considers only the version number, and assumes the
  18. features in that distro match the upstream release with the same
  19. version. In other words, if a distro backports extra features to the
  20. software in their distro, QEMU upstream code will not add explicit
  21. support for those backports, unless the feature is auto-detectable in a
  22. manner that works for the upstream releases too.
  23. The `Repology`_ site is a useful resource to identify
  24. currently shipped versions of software in various operating systems,
  25. though it does not cover all distros listed below.
  26. You can find how to install build dependencies for different systems on the
  27. :ref:`setup-build-env` page.
  28. Supported host architectures
  29. ----------------------------
  30. Those hosts are officially supported, with various accelerators:
  31. .. list-table::
  32. :header-rows: 1
  33. * - CPU Architecture
  34. - Accelerators
  35. * - Arm
  36. - hvf (64 bit only), kvm (64 bit only), tcg, xen
  37. * - MIPS (64 bit little endian only)
  38. - kvm, tcg
  39. * - PPC
  40. - kvm, tcg
  41. * - RISC-V
  42. - kvm, tcg
  43. * - s390x
  44. - kvm, tcg
  45. * - SPARC
  46. - tcg
  47. * - x86
  48. - hvf (64 bit only), kvm, nvmm, tcg, whpx (64 bit only), xen
  49. Other host architectures are not supported. It is possible to build QEMU system
  50. emulation on an unsupported host architecture using the configure
  51. ``--enable-tcg-interpreter`` option to enable the TCI support, but note that
  52. this is very slow and is not recommended for normal use. QEMU user emulation
  53. requires host-specific support for signal handling, therefore TCI won't help
  54. on unsupported host architectures.
  55. Non-supported architectures may be removed in the future following the
  56. :ref:`deprecation process<Deprecated features>`.
  57. Linux OS, macOS, FreeBSD, NetBSD, OpenBSD
  58. -----------------------------------------
  59. The project aims to support the most recent major version at all times for
  60. up to five years after its initial release. Support
  61. for the previous major version will be dropped 2 years after the new major
  62. version is released or when the vendor itself drops support, whichever comes
  63. first. In this context, third-party efforts to extend the lifetime of a distro
  64. are not considered, even when they are endorsed by the vendor (eg. Debian LTS);
  65. the same is true of repositories that contain packages backported from later
  66. releases (e.g. Debian backports). Within each major release, only the most
  67. recent minor release is considered.
  68. For the purposes of identifying supported software versions available on Linux,
  69. the project will look at CentOS, Debian, Fedora, openSUSE, RHEL, SLES and
  70. Ubuntu LTS. Other distros will be assumed to ship similar software versions.
  71. For FreeBSD and OpenBSD, decisions will be made based on the contents of the
  72. respective ports repository, while NetBSD will use the pkgsrc repository.
  73. For macOS, `Homebrew`_ will be used, although `MacPorts`_ is expected to carry
  74. similar versions.
  75. Some build dependencies may follow less conservative rules:
  76. Python runtime
  77. Distributions with long-term support often provide multiple versions
  78. of the Python runtime. While QEMU will initially aim to support the
  79. distribution's default runtime, it may later increase its minimum version
  80. to any newer python that is available as an option from the vendor.
  81. In this case, it will be necessary to use the ``--python`` command line
  82. option of the ``configure`` script to point QEMU to a supported
  83. version of the Python runtime.
  84. As of QEMU |version|, the minimum supported version of Python is 3.8.
  85. Python build dependencies
  86. Some of QEMU's build dependencies are written in Python. Usually these
  87. are only packaged by distributions for the default Python runtime.
  88. If QEMU bumps its minimum Python version and a non-default runtime is
  89. required, it may be necessary to fetch python modules from the Python
  90. Package Index (PyPI) via ``pip``, in order to build QEMU.
  91. Rust build dependencies
  92. QEMU is generally conservative in adding new Rust dependencies, and all
  93. of them are included in the distributed tarballs. One exception is the
  94. bindgen tool, which is too big to package and distribute. The minimum
  95. supported version of bindgen is 0.60.x. For distributions that do not
  96. include bindgen or have an older version, it is recommended to install
  97. a newer version using ``cargo install bindgen-cli``.
  98. Developers may want to use Cargo-based tools in the QEMU source tree;
  99. this requires Cargo 1.74.0. Note that Cargo is not required in order
  100. to build QEMU.
  101. Optional build dependencies
  102. Build components whose absence does not affect the ability to build
  103. QEMU may not be available in distros, or may be too old for QEMU's
  104. requirements. Many of these, such as the Avocado testing framework
  105. or various linters, are written in Python and therefore can also
  106. be installed using ``pip``. Cross compilers are another example
  107. of optional build-time dependency; in this case it is possible to
  108. download them from repositories such as EPEL, to use container-based
  109. cross compilation using ``docker`` or ``podman``, or to use pre-built
  110. binaries distributed with QEMU.
  111. Windows
  112. -------
  113. The project aims to support the two most recent versions of Windows that are
  114. still supported by the vendor. The minimum Windows API that is currently
  115. targeted is "Windows 8", so theoretically the QEMU binaries can still be run
  116. on older versions of Windows, too. However, such old versions of Windows are
  117. not tested anymore, so it is recommended to use one of the latest versions of
  118. Windows instead.
  119. The project supports building QEMU with current versions of the MinGW
  120. toolchain, either hosted on Linux (Debian/Fedora) or via `MSYS2`_ on Windows.
  121. A more recent Windows version is always preferred as it is less likely to have
  122. problems with building via MSYS2. The building process of QEMU involves some
  123. Python scripts that call os.symlink() which needs special attention for the
  124. build process to successfully complete. On newer versions of Windows 10,
  125. unprivileged accounts can create symlinks if Developer Mode is enabled.
  126. When Developer Mode is not available/enabled, the SeCreateSymbolicLinkPrivilege
  127. privilege is required, or the process must be run as an administrator.
  128. Only 64-bit Windows is supported.
  129. .. _Homebrew: https://brew.sh/
  130. .. _MacPorts: https://www.macports.org/
  131. .. _MSYS2: https://www.msys2.org/
  132. .. _Repology: https://repology.org/