Skip to content

qemu master git can no longer be compiled under MacOs Sonoma 14.0

Host environment

  • Operating system: MacOs
  • OS/kernel version: Darwin Kernel Version 23.0.0
    • Architecture: ARM
  • QEMU flavor: qemu-system-ppc````
  • QEMU version:
  • QEMU command line:
    ./qemu-system-x86_64 -M q35 -m 4096 -enable-kvm -hda fedora32.qcow2

Emulated/Virtualized environment

  • Operating system:
  • OS/kernel version:
  • Architecture:

Description of problem

Steps to reproduce

Qemu master git fails to compile under MacOs M1/2, I already tested it with "git-bisect" "git bisect good" and "git bisect bad".All dependencies for qemu are fulfilled and were installed using Homebrew under MacOs.It fails with these commits:

`>>>>> commit 7c3fb52b

Author: Paolo Bonzini pbonzini@redhat.com Date: Tue Aug 8 20:28:25 2023 +0200

configure: never use PyPI for Meson

Since there is a vendored copy, there is no point in choosing online

operation.

Signed-off-by: Paolo Bonzini pbonzini@redhat.com

configure | 6 ------ 1 file changed, 6 deletions(-) `

Additional information

Older sources Qemu 8.1 can be compiled without problems. The only thing that has changed is that I did a major system update and Xcode was also updated. Since then compiling on qemu master version 8.1.50 breaks.

`On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Mac-Studio qemu % ./configure --target-list=ppc-softmmu
Using './build' as the directory for build output
python determined to be '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3'
python version: Python 3.10.8
mkvenv: Creating non-isolated virtual environment at 'pyvenv'
mkvenv: checking for tomli>=1.2.0
mkvenv: installing tomli>=1.2.0
mkvenv: checking for meson>=0.63.0
mkvenv: installing meson==0.63.3
mkvenv: checking for sphinx>=1.6
mkvenv: checking for sphinx_rtd_theme>=0.5

'sphinx==5.3.0' not found:
• Python package 'sphinx' was not found nor installed.
• mkvenv was configured to operate offline and did not check PyPI.


Sphinx not found/usable, disabling docs.
Disabling PIE due to missing toolchain support
The Meson build system
Version: 0.63.3
Source dir: /Users/qemu
Build dir: /Users/qemu/build
Build type: native build
Project name: qemu
Project version: 8.1.50

../meson.build:1:0: ERROR: Unable to detect linker for compiler `cc -Wl,--version`
stdout:
stderr: ld: unknown options: --version
clang: error: linker command failed with exit code 1 (use -v to see invocation)`
Edited by Thomas Huth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information