qemu-8.1.0 won't build on FreeBSD 13.2

System is amd64/13.2-RELEASE-p3

Currently have qemu-8.0.2 installed, trying to build qemu-8.1.0 which is what the emulators/qemu port is currently at, and am running into a build failure. I tried this on a fresh install of 13.2-RELEASE with the same results.

Not urgent, but thought I'd see if anyone had a similar experience as I haven't had any luck finding anything on the web. Here is the build output:

Code:
===>  Configuring for qemu-8.1.0
Using './build' as the directory for build output
python determined to be '/usr/local/bin/python3.8'
python version: Python 3.8.18
mkvenv: Creating non-isolated virtual environment at 'pyvenv'
mkvenv: checking for meson>=0.63.0
mkvenv: checking for sphinx>=1.6.0, sphinx-rtd-theme>=0.5.0
The Meson build system
Version: 1.2.1
Source dir: /usr/ports/emulators/qemu/work-default/qemu-8.1.0
Build dir: /usr/ports/emulators/qemu/work-default/qemu-8.1.0/build
Build type: native build
Project name: qemu
Project version: 8.1.0
C compiler for the host machine: cc -m64 -mcx16 (clang 14.0.5 "FreeBSD clang version 14.0.5 ([URL]https://github.com/llvm/llvm-project.git[/URL] llvmorg-14.0.5-0-gc12386ae247c)")
C linker for the host machine: cc -m64 -mcx16 ld.lld 14.0.5
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/bin/python3.8 /usr/ports/emulators/qemu/work-default/qemu-8.1.0/scripts/symlink-install-tree.py)
Program sh found: YES (/bin/sh)

../meson.build:89:26: ERROR: <PythonExternalProgram 'python3' -> ['/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/bin/python3.8']> is not a valid python or it is missing distutils

A full log can be found at /usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/meson-logs/meson-log.txt

ERROR: meson setup failed

===>  Script "configure" failed unexpectedly.
Please report the problem to [EMAIL]bofh@FreeBSD.org[/EMAIL] [maintainer] and attach the
"/usr/ports/emulators/qemu/work-default/qemu-8.1.0/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/qemu
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/qemu

Here is what was contained in the meson-log.txt file that was referenced:

Code:
-----
Running test binary command:  /usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc -m64 -mcx16 (clang 14.0.5 "FreeBSD clang version 14.0.5 ([URL]https://github.com/llvm/llvm-project.git[/URL] llvmorg-14.0.5-0-gc12386ae247c)")
C linker for the build machine: cc -m64 -mcx16 ld.lld 14.0.5
-----------
Detecting linker via: `ar --version` -> 0
stdout:
BSD ar 1.1.0 - libarchive 3.6.2
-----------
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program scripts/symlink-install-tree.py found: YES (/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/bin/python3.8 /usr/ports/emulators/qemu/work-default/qemu-8.1.0/scripts/symlink-install-tree.py)
Program sh found: YES (/bin/sh)
Could not introspect Python (['/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/bin/python3.8', '/usr/local/lib/python3.8/site-packages/mesonbuild/scripts/python_info.py']): exit code 1
Program stdout:


Program stderr:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/mesonbuild/scripts/python_info.py", line 77, in <module>
    'link_libpython': links_against_libpython(),
  File "/usr/local/lib/python3.8/site-packages/mesonbuild/scripts/python_info.py", line 52, in links_against_libpython
    cmd = Distribution().get_command_obj('build_ext')
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/setuptools/dist.py", line 434, in __init__
    _Distribution.__init__(self, {
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 293, in __init__
    self.finalize_options()
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/setuptools/dist.py", line 742, in finalize_options
    for ep in sorted(eps, key=by_order):
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/setuptools/dist.py", line 741, in <lambda>
    eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group))
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in load
    self.require(*args, **kwargs)
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2472, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (setuptools 56.0.0 (/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/lib/python3.8/site-packages), Requirement.parse('setuptools>=62.4'))


../meson.build:89:26: ERROR: <PythonExternalProgram 'python3' -> ['/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/bin/python3.8']> is not a valid python or it is missing distutils
 
Code:
python determined to be '/usr/local/bin/python3.8' python version: Python 3.8.18
...
../meson.build:89:26: ERROR: <PythonExternalProgram 'python3' -> ['/usr/ports/emulators/qemu/work-default/qemu-8.1.0/build/pyvenv/bin/python3.8']> is not a valid python or it is missing distutils
It seems to have a problem with your Python version. The default Python version is 3.9, you have 3.8. Did you set DEFAULT_VERSIONS or haven't updated Python yet?
 
It seems to have a problem with your Python version. The default Python version is 3.9, you have 3.8. Did you set DEFAULT_VERSIONS or haven't updated Python yet?
Good call, I am still on py38, haven't updated to 39 so maybe that is what I'm missing, let me give it a go.
 
Back
Top